cartago
Class EventRegistry

java.lang.Object
  extended by cartago.EventRegistry

public class EventRegistry
extends java.lang.Object

Factory of CArtAgO events.

Author:
aricci

Constructor Summary
EventRegistry()
           
 
Method Summary
 long getNextTimestamp()
          Get the timestamp of the next event
 cartago.events.ActionFailedEvent makeActionFailedEvent(long actionId, java.lang.String failureMsg, Tuple failureReason, Op op)
           
 cartago.events.ActionSucceededEvent makeActionSucceededEvent(long actionId, ArtifactId aid, Op op)
           
 cartago.events.ConsultManualSucceededEvent makeConsultManualSucceededEvent(long actionId, ArtifactId aid, Op op, Manual man)
           
 cartago.events.FocusSucceededEvent makeFocusActionSucceededEvent(long actionId, ArtifactId aid, Op op, ArtifactId target, java.util.List<ArtifactObsProperty> props)
           
 cartago.events.FocussedArtifactDisposedEvent makeFocussedArtifactDisposedEvent(ArtifactId target, java.util.List<ArtifactObsProperty> props)
           
 cartago.events.JoinWSPSucceededEvent makeJoinWSPSucceededEvent(long actionId, ArtifactId aid, Op op, WorkspaceId wspId, ICartagoContext ctx)
           
 cartago.events.ObsArtListChangedEvent makeObsArtListChangedEvent(java.util.List<ObservableArtifactInfo> newFocused, java.util.List<ObservableArtifactInfo> noMoreFocused)
           
 cartago.events.ArtifactObsEvent makeObsEvent(ArtifactId src, Tuple signal, ArtifactObsProperty[] changed, ArtifactObsProperty[] added, ArtifactObsProperty[] removed)
           
 cartago.events.QuitWSPSucceededEvent makeQuitWSPSucceededEvent(long actionId, ArtifactId aid, Op op, WorkspaceId wspId)
           
 cartago.events.StopFocusSucceededEvent makeStopFocusActionSucceededEvent(long actionId, ArtifactId aid, Op op, ArtifactId target, java.util.List<ArtifactObsProperty> props)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventRegistry

public EventRegistry()
Method Detail

getNextTimestamp

public long getNextTimestamp()
Get the timestamp of the next event

Returns:

makeObsEvent

public cartago.events.ArtifactObsEvent makeObsEvent(ArtifactId src,
                                                    Tuple signal,
                                                    ArtifactObsProperty[] changed,
                                                    ArtifactObsProperty[] added,
                                                    ArtifactObsProperty[] removed)

makeFocussedArtifactDisposedEvent

public cartago.events.FocussedArtifactDisposedEvent makeFocussedArtifactDisposedEvent(ArtifactId target,
                                                                                      java.util.List<ArtifactObsProperty> props)

makeActionSucceededEvent

public cartago.events.ActionSucceededEvent makeActionSucceededEvent(long actionId,
                                                                    ArtifactId aid,
                                                                    Op op)

makeActionFailedEvent

public cartago.events.ActionFailedEvent makeActionFailedEvent(long actionId,
                                                              java.lang.String failureMsg,
                                                              Tuple failureReason,
                                                              Op op)

makeFocusActionSucceededEvent

public cartago.events.FocusSucceededEvent makeFocusActionSucceededEvent(long actionId,
                                                                        ArtifactId aid,
                                                                        Op op,
                                                                        ArtifactId target,
                                                                        java.util.List<ArtifactObsProperty> props)

makeStopFocusActionSucceededEvent

public cartago.events.StopFocusSucceededEvent makeStopFocusActionSucceededEvent(long actionId,
                                                                                ArtifactId aid,
                                                                                Op op,
                                                                                ArtifactId target,
                                                                                java.util.List<ArtifactObsProperty> props)

makeJoinWSPSucceededEvent

public cartago.events.JoinWSPSucceededEvent makeJoinWSPSucceededEvent(long actionId,
                                                                      ArtifactId aid,
                                                                      Op op,
                                                                      WorkspaceId wspId,
                                                                      ICartagoContext ctx)

makeQuitWSPSucceededEvent

public cartago.events.QuitWSPSucceededEvent makeQuitWSPSucceededEvent(long actionId,
                                                                      ArtifactId aid,
                                                                      Op op,
                                                                      WorkspaceId wspId)

makeConsultManualSucceededEvent

public cartago.events.ConsultManualSucceededEvent makeConsultManualSucceededEvent(long actionId,
                                                                                  ArtifactId aid,
                                                                                  Op op,
                                                                                  Manual man)

makeObsArtListChangedEvent

public cartago.events.ObsArtListChangedEvent makeObsArtListChangedEvent(java.util.List<ObservableArtifactInfo> newFocused,
                                                                        java.util.List<ObservableArtifactInfo> noMoreFocused)


>DEIS - University of Bologna