LiveGraph
data visualisation and analysis framework

org.LiveGraph.events
Class Event<ET extends EventType>

java.lang.Object
  extended by org.LiveGraph.events.Event<ET>

public class Event<ET extends EventType>
extends java.lang.Object


Field Summary
private  java.util.List<EventAnnotation> annotations
           
private  java.lang.Class<? extends ET> domain
           
private  java.util.List<EventAnnotation> exposedAnnotations
           
private  boolean hasValidated
           
 boolean infoBoolean
           
 double infoDouble
           
 long infoLong
           
 java.lang.Object infoObject
           
private  EventProducer producer
           
static boolean SAFE_EVENT_CAST
           
private  ET type
           
 
Constructor Summary
Event(EventProducer producer, java.lang.Class<? extends ET> domain, ET type)
           
Event(EventProducer producer, java.lang.Class<? extends ET> domain, ET type, boolean info)
           
Event(EventProducer producer, java.lang.Class<? extends ET> domain, ET type, boolean infoBoolean, long infoLong, double infoDouble, java.lang.Object infoObject)
           
Event(EventProducer producer, java.lang.Class<? extends ET> domain, ET type, double info)
           
Event(EventProducer producer, java.lang.Class<? extends ET> domain, ET type, long info)
           
Event(EventProducer producer, java.lang.Class<? extends ET> domain, ET type, java.lang.Object info)
           
 
Method Summary
 void addAnnotation(EventListener listener, java.lang.Object annotationInfo)
           
<T extends EventType>
Event<T>
cast(java.lang.Class<T> domain)
           
 java.util.List<EventAnnotation> getAnnotations()
           
 java.util.List<EventAnnotation> getAnnotations(EventListener byListener)
           
 java.lang.Class<? extends ET> getDomain()
           
 boolean getInfoBoolean()
           
 double getInfoDouble()
           
 long getInfoLong()
           
 java.lang.Object getInfoObject()
           
 EventProducer getProducer()
           
 ET getType()
           
 Validation.Requirement getValidationRequirement()
           
protected  void setValidated(boolean validated)
           
 java.lang.String toString()
           
 boolean validated()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SAFE_EVENT_CAST

public static final boolean SAFE_EVENT_CAST
See Also:
Constant Field Values

producer

private EventProducer producer

domain

private java.lang.Class<? extends ET extends EventType> domain

type

private ET extends EventType type

hasValidated

private boolean hasValidated

infoBoolean

public boolean infoBoolean

infoLong

public long infoLong

infoDouble

public double infoDouble

infoObject

public java.lang.Object infoObject

annotations

private java.util.List<EventAnnotation> annotations

exposedAnnotations

private java.util.List<EventAnnotation> exposedAnnotations
Constructor Detail

Event

public Event(EventProducer producer,
             java.lang.Class<? extends ET> domain,
             ET type)

Event

public Event(EventProducer producer,
             java.lang.Class<? extends ET> domain,
             ET type,
             boolean info)

Event

public Event(EventProducer producer,
             java.lang.Class<? extends ET> domain,
             ET type,
             long info)

Event

public Event(EventProducer producer,
             java.lang.Class<? extends ET> domain,
             ET type,
             double info)

Event

public Event(EventProducer producer,
             java.lang.Class<? extends ET> domain,
             ET type,
             java.lang.Object info)

Event

public Event(EventProducer producer,
             java.lang.Class<? extends ET> domain,
             ET type,
             boolean infoBoolean,
             long infoLong,
             double infoDouble,
             java.lang.Object infoObject)
Method Detail

cast

public <T extends EventType> Event<T> cast(java.lang.Class<T> domain)

getProducer

public EventProducer getProducer()

getDomain

public java.lang.Class<? extends ET> getDomain()

getType

public ET getType()

validated

public boolean validated()

setValidated

protected void setValidated(boolean validated)

getValidationRequirement

public Validation.Requirement getValidationRequirement()

getInfoBoolean

public boolean getInfoBoolean()

getInfoLong

public long getInfoLong()

getInfoDouble

public double getInfoDouble()

getInfoObject

public java.lang.Object getInfoObject()

addAnnotation

public void addAnnotation(EventListener listener,
                          java.lang.Object annotationInfo)

getAnnotations

public java.util.List<EventAnnotation> getAnnotations()

getAnnotations

public java.util.List<EventAnnotation> getAnnotations(EventListener byListener)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

LiveGraph
data visualisation and analysis framework