de.unihalle.informatik.Alida.workflows.events
Class ALDWorkflowEvent

java.lang.Object
  extended by java.util.EventObject
      extended by de.unihalle.informatik.Alida.operator.events.ALDEvent
          extended by de.unihalle.informatik.Alida.workflows.events.ALDWorkflowEvent
All Implemented Interfaces:
java.io.Serializable

public class ALDWorkflowEvent
extends ALDEvent

Event type related to Alida work flows.

Author:
posch
See Also:
Serialized Form

Nested Class Summary
static class ALDWorkflowEvent.ALDWorkflowEventType
          Types of events.
 
Field Summary
protected  ALDWorkflowEvent.ALDWorkflowEventType eType
          Type of the event.
protected  java.lang.Object info
          ID of work flow object
private static java.lang.Integer nextTimeStamp
          Count for (almost) unique time stamps (we allow wrap around).
private  java.lang.Integer timeStamp
          This is not a real time stamp rather an integer incremented each time a new event is instantiate with the only exception of using new ALDWorkflowEvent( event)
 
Fields inherited from class de.unihalle.informatik.Alida.operator.events.ALDEvent
eventMessage
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ALDWorkflowEvent(ALDWorkflowEvent event)
          Constructor.
ALDWorkflowEvent(java.lang.Object s, ALDWorkflowEvent.ALDWorkflowEventType e)
          Constructor.
ALDWorkflowEvent(java.lang.Object s, ALDWorkflowEvent.ALDWorkflowEventType e, java.lang.Object info)
          Constructor.
ALDWorkflowEvent(java.lang.Object s, ALDWorkflowEvent.ALDWorkflowEventType e, java.lang.String msg, java.lang.Object info)
          Constructor.
 
Method Summary
 ALDWorkflowEvent createCopy()
          Create a clone of this event with the same time stamp
 ALDWorkflowEvent.ALDWorkflowEventType getEventType()
          Returns type of event.
 java.lang.Object getId()
          Returns the index of the even
 java.lang.Integer getTimeStamp()
          Returns the timestamp of this event.
 
Methods inherited from class de.unihalle.informatik.Alida.operator.events.ALDEvent
getEventMessage, getEventMessage
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

eType

protected ALDWorkflowEvent.ALDWorkflowEventType eType
Type of the event.


info

protected java.lang.Object info
ID of work flow object


nextTimeStamp

private static java.lang.Integer nextTimeStamp
Count for (almost) unique time stamps (we allow wrap around).


timeStamp

private final java.lang.Integer timeStamp
This is not a real time stamp rather an integer incremented each time a new event is instantiate with the only exception of using new ALDWorkflowEvent( event)

Constructor Detail

ALDWorkflowEvent

public ALDWorkflowEvent(ALDWorkflowEvent event)
Constructor. essentially clone the event

Parameters:
event -

ALDWorkflowEvent

public ALDWorkflowEvent(java.lang.Object s,
                        ALDWorkflowEvent.ALDWorkflowEventType e)
Constructor.

Parameters:
s - Source object of the event.
e - Event type.

ALDWorkflowEvent

public ALDWorkflowEvent(java.lang.Object s,
                        ALDWorkflowEvent.ALDWorkflowEventType e,
                        java.lang.Object info)
Constructor.

Parameters:
aldWorkflow - Source object of the event.
e - Event type.
info - Information associated with this event.

ALDWorkflowEvent

public ALDWorkflowEvent(java.lang.Object s,
                        ALDWorkflowEvent.ALDWorkflowEventType e,
                        java.lang.String msg,
                        java.lang.Object info)
Constructor.

Parameters:
s - Source object of the event.
e - Event type.
msg - Message for the event.
info - Id of work flow object associated with this event.
Method Detail

createCopy

public ALDWorkflowEvent createCopy()
Create a clone of this event with the same time stamp

Returns:

getEventType

public ALDWorkflowEvent.ALDWorkflowEventType getEventType()
Returns type of event.

Returns:
event type

getId

public java.lang.Object getId()
Returns the index of the even

Returns:
the index

getTimeStamp

public java.lang.Integer getTimeStamp()
Returns the timestamp of this event.

Returns:
the timeStamp