com.monad.homerun.event
Class Event

java.lang.Object
  extended by com.monad.homerun.event.Event
All Implemented Interfaces:
java.io.Serializable

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

Event represents an atomic change that an emitter can emit

See Also:
Serialized Form

Constructor Summary
Event()
           
Event(java.lang.Object event, java.lang.String actor)
           
 
Method Summary
 java.lang.String getActor()
          Returns the actor or agent responsible for the event
 java.lang.Object getEvent()
          Returns the event object
 long getEventTime()
          Returns the time the event occured
 void setActor(java.lang.String actor)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Event

public Event()

Event

public Event(java.lang.Object event,
             java.lang.String actor)
Method Detail

getEvent

public java.lang.Object getEvent()
Returns the event object

Returns:
object the event object

getEventTime

public long getEventTime()
Returns the time the event occured

Returns:
event time the event occurrance

getActor

public java.lang.String getActor()
Returns the actor or agent responsible for the event

Returns:
actor the event actor's name

setActor

public void setActor(java.lang.String actor)


Copyright © 2006-2009 Richard Rodgers. All Rights Reserved.