dguitar.players.sound
Class PerformanceEvent

java.lang.Object
  extended bydguitar.players.sound.PerformanceEvent
Direct Known Subclasses:
PerformanceNoteEvent, PerformanceTimerEvent

public class PerformanceEvent
extends java.lang.Object

Author:
Chris

Field Summary
(package private)  EventStream eventStream
          The event stream within which this performance event lies.
(package private)  PerformanceEvent next
          The next performance event within this event stream.
(package private)  int offset
          The time offset into the performance, in resolution units.
 
Constructor Summary
PerformanceEvent(EventStream stream, int offset)
           
 
Method Summary
 PerformanceEvent getNext()
           
 int getOffset()
           
 void setNext(PerformanceEvent perfEvent)
          Chain this performance event to the next one in the same event stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

eventStream

EventStream eventStream
The event stream within which this performance event lies.


offset

int offset
The time offset into the performance, in resolution units.


next

PerformanceEvent next
The next performance event within this event stream.

Constructor Detail

PerformanceEvent

public PerformanceEvent(EventStream stream,
                        int offset)
Parameters:
stream -
offset -
Method Detail

setNext

public void setNext(PerformanceEvent perfEvent)
Chain this performance event to the next one in the same event stream.

Parameters:
perfEvent -

getNext

public PerformanceEvent getNext()
Returns:
Returns the next.

getOffset

public int getOffset()
Returns:
Returns the offset.