jasi.simple.model
Class SimpleEvent

java.lang.Object
  extended by jasi.sim.basic.value.AbstractSimValueType
      extended by jasi.sim.basic.value.AbstractComparableObject<Event>
          extended by jasi.sim.basic.event.AbstractEventBean
              extended by jasi.simple.model.SimpleEvent
All Implemented Interfaces:
Event, SimObject, ExtendedComparable<Event>, SimValue, java.io.Serializable, java.lang.Comparable<Event>

public class SimpleEvent
extends AbstractEventBean

A simple event.

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface jasi.sim.basic.event.Event
COMPARATOR, DEFAULT_PRIORITY
 
Constructor Summary
SimpleEvent(Time time, int priority)
          Constructor for Events.
SimpleEvent(Time time, int priority, SimpleObject object)
          Constructor.
SimpleEvent(Time time, SimpleObject object)
          Constructor with default priority.
 
Method Summary
 Id getObject()
          Get the event's simple object.
 void setObject(Id object)
          Set the event's simple object.
 java.lang.String toString()
          Returns a string representation of this object.
 
Methods inherited from class jasi.sim.basic.event.AbstractEventBean
addEventListener, calendar, compareTo, equals, getEventListeners, getId, getPriority, getTime, hashCode, imported, inform, isInitialized, isPopped, isPushed, popped, pushed, removeEventListener, setId, setPriority, setTime
 
Methods inherited from class jasi.sim.basic.value.AbstractComparableObject
isEQ, isGE, isGT, isLE, isLT, isNE
 
Methods inherited from class jasi.sim.basic.value.AbstractSimValueType
getContent
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface jasi.sim.basic.value.ExtendedComparable
isEQ, isGE, isGT, isLE, isLT, isNE
 

Constructor Detail

SimpleEvent

public SimpleEvent(Time time,
                   int priority)
Constructor for Events.

Parameters:
time - The event's time.
priority - The event's priority.

SimpleEvent

public SimpleEvent(Time time,
                   int priority,
                   SimpleObject object)
Constructor.

Parameters:
time - The event's time.
priority - The event's priority.
object - The event object.

SimpleEvent

public SimpleEvent(Time time,
                   SimpleObject object)
Constructor with default priority.

Parameters:
time - The event's time.
object - The event's object.
Method Detail

toString

public java.lang.String toString()
Returns a string representation of this object.

Overrides:
toString in class AbstractEventBean
Returns:
The string.

getObject

public Id getObject()
Get the event's simple object.

Returns:
The event object.

setObject

public void setObject(Id object)
Set the event's simple object.

Parameters:
object - The event object.