|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.huguesjohnson.tiamat.Sequence
public class Sequence
Sequence - class to represent a sequence
Constructor Summary | |
---|---|
Sequence(SequenceFrame[] frames,
Event[] exitEvents)
Create a new instance of Sequence. |
Method Summary | |
---|---|
void |
addExitEvent(Event event)
Adds an exit event. |
void |
addFrame(SequenceFrame frame)
Adds a frame. |
Event |
getExitEvent(int index)
Returns the exit event at the specified index. |
int |
getExitEventCount()
Returns the number of exit events in this sequence. |
Event[] |
getExitEvents()
Returns All exit events in this sequence. |
SequenceFrame |
getFrame(int index)
Returns the frame at the specified index. |
int |
getFrameCount()
Returns the number of frames in this sequence. |
SequenceFrame[] |
getFrames()
Returns All frames in this sequence. |
void |
onDeserialize(Formatter formatter,
java.lang.String absoluteDir)
The onDeserialize event should be fired after an object is de-serialized. |
void |
removeExitEvent(int index)
Removes an exit event. |
void |
removeFrame(int index)
Removes a frame. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Sequence(SequenceFrame[] frames, Event[] exitEvents)
frames
- The frames in this sequence.exitEvents
- The events to fire when this sequence is complete.Method Detail |
---|
public int getFrameCount()
public void addFrame(SequenceFrame frame)
frame
- The frame to add.public void removeFrame(int index)
index
- The index of the frame to remove.public SequenceFrame getFrame(int index)
index
- The index of the frame to get.
public SequenceFrame[] getFrames()
public int getExitEventCount()
public void addExitEvent(Event event)
event
- The exit event to add.public void removeExitEvent(int index)
index
- The index of the exit event to remove.public Event getExitEvent(int index)
index
- The index of the exit event to get.
public Event[] getExitEvents()
public void onDeserialize(Formatter formatter, java.lang.String absoluteDir)
onDeserialize
in interface Storable
formatter
- the formatter to use to load any storable membersabsoluteDir
- the working directory since all paths stored in the object should be relative
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |