gcspy.interpreter
Class Events

java.lang.Object
  extended by gcspy.interpreter.Events

public class Events
extends java.lang.Object

List of the events for a given interpreter

Author:
Tony Printezis

Constructor Summary
Events()
          Constructors
Events(java.lang.String[] names)
          Create new events
 
Method Summary
 void deserialise(BufferedInput input)
          Deserialise events
 void dump()
          Debugging
 java.lang.String getName(int id)
          The name of an event
 java.lang.String[] getNames()
          Get the event names
 int getNum()
          Get the number of events
 void serialise(BufferedOutput output)
          Serialise these events
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Events

public Events()
Constructors


Events

public Events(java.lang.String[] names)
Create new events

Parameters:
names - The names of the events
Method Detail

serialise

public void serialise(BufferedOutput output)
Serialise these events

Parameters:
output - The BufferedOutput into which the events are serialised

deserialise

public void deserialise(BufferedInput input)
Deserialise events

Parameters:
input - The BufferedInput from which the events are serialised

getName

public java.lang.String getName(int id)
The name of an event

Parameters:
id - The event number
Returns:
the event's name

getNames

public java.lang.String[] getNames()
Get the event names

Returns:
the names of all the events

getNum

public int getNum()
Get the number of events

Returns:
the number of events

dump

public void dump()
Debugging