org.ceno.protocol.event
Class ResourceEvent

java.lang.Object
  extended by org.ceno.protocol.event.ResourceEvent
All Implemented Interfaces:
java.io.Serializable, IEvent
Direct Known Subclasses:
ActivateResourceEvent, CloseResourceEvent, DeactivateResourceEvent, OpenResourceEvent

public abstract class ResourceEvent
extends java.lang.Object
implements IEvent, java.io.Serializable

Since:
0.0.1
Version:
0.0.1
Author:
Andre Albert <andre.albert82@googlemail.com>
See Also:
Serialized Form

Constructor Summary
ResourceEvent(Resource resource, Developer sender)
           
 
Method Summary
 Resource getResource()
           
 Developer getSender()
           
 long getTimestamp()
          Get the timestamp when this event was created i.e. thrown
 void setResource(Resource resource)
           
 void setSender(Developer sender)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.ceno.protocol.event.IEvent
getSignalId
 

Constructor Detail

ResourceEvent

public ResourceEvent(Resource resource,
                     Developer sender)
Parameters:
resource -
Method Detail

getTimestamp

public long getTimestamp()
Get the timestamp when this event was created i.e. thrown

Specified by:
getTimestamp in interface IEvent
Returns:
a long value representing the Millisecond in UTC

getResource

public Resource getResource()
Returns:
the resource

setResource

public void setResource(Resource resource)
Parameters:
resource - the resource to set

getSender

public Developer getSender()
Returns:
the sender

setSender

public void setSender(Developer sender)
Parameters:
sender - the sender to set