neosim.iface
Class Event

java.lang.Object
  |
  +--neosim.iface.Event
Direct Known Subclasses:
SpikeEvent

public class Event
extends java.lang.Object
implements java.lang.Cloneable, java.io.Serializable

A basic event just has a time stamp and a class id. Derived types of event can include extra data and methods.

See Also:
Serialized Form

Field Summary
protected  Connection c
           
protected  ClassID cid
           
protected  int iType
           
 
Constructor Summary
Event(Time t)
           
Event(Time t, EntityID srce, PortID srcport)
           
Event(Time t, EntityID srce, PortID srcport, int iType)
           
 
Method Summary
 java.lang.Object clone()
           
 ClassID getClassID()
           
 Connection getConnection()
           
 EventClass getEventClass()
           
 NeosimClass getNeosimClass()
           
 EntityID getSrcEntityID()
           
 PortID getSrcEntityPortID()
           
 Time getTime()
           
 int getType()
           
 boolean isEntityEvent()
           
 boolean isSystemEvent()
           
 ClassID registerClass(NeosimClasses nc)
           
 void setConnection(Connection c)
           
 void setSrcEntityID(EntityID srce)
           
 void setSrcPortID(PortID srcport)
           
 void setTime(Time t)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cid

protected ClassID cid

c

protected Connection c

iType

protected int iType
Constructor Detail

Event

public Event(Time t)

Event

public Event(Time t,
             EntityID srce,
             PortID srcport)

Event

public Event(Time t,
             EntityID srce,
             PortID srcport,
             int iType)
Method Detail

setSrcEntityID

public void setSrcEntityID(EntityID srce)

setSrcPortID

public void setSrcPortID(PortID srcport)

getTime

public Time getTime()

setTime

public void setTime(Time t)

getType

public int getType()

getClassID

public ClassID getClassID()

getNeosimClass

public NeosimClass getNeosimClass()

getEventClass

public EventClass getEventClass()

getSrcEntityID

public EntityID getSrcEntityID()

getSrcEntityPortID

public PortID getSrcEntityPortID()

getConnection

public Connection getConnection()

setConnection

public void setConnection(Connection c)

isEntityEvent

public boolean isEntityEvent()

isSystemEvent

public boolean isSystemEvent()

registerClass

public ClassID registerClass(NeosimClasses nc)

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object