Package jazzparser :: Package data :: Package corpora :: Module temperley :: Class Event
[hide private]
[frames] | no frames]

Class Event

source code

object --+
         |
        Event
Known Subclasses:

Superclass of all events that occur in the data.

Nested Classes [hide private]
  __metaclass__
Instance Methods [hide private]
 
to_line(self)
Generates a string representation suitable for writing out to a line of a file.
source code
 
__str__(self)
str(x)
source code
 
_get_sort_key(self) source code
 
__cmp__(self, other) source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __subclasshook__

Static Methods [hide private]
 
from_line(line)
Creates an instance of the appropriate event type given a line of an input file.
source code
Class Variables [hide private]
  EVENT_NAME = None
The identifier that begins the line of an input file for this event.
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

from_line(line)
Static Method

source code 

Creates an instance of the appropriate event type given a line of an input file.

All subclasses should define a from_line that creates an instance of them given the list of string arguments from a line of an input file.

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)