gr.uoa.di.madgik.execution.event
Class ExecutionCompletedStateEvent

java.lang.Object
  extended by java.util.Observable
      extended by gr.uoa.di.madgik.execution.event.ExecutionStateEvent
          extended by gr.uoa.di.madgik.execution.event.ExecutionCompletedStateEvent

public class ExecutionCompletedStateEvent
extends ExecutionStateEvent

Event signaling that the execution of a plan has completed

Author:
gpapanikos

Nested Class Summary
 
Nested classes/interfaces inherited from class gr.uoa.di.madgik.execution.event.ExecutionStateEvent
ExecutionStateEvent.EventName
 
Constructor Summary
ExecutionCompletedStateEvent()
          Instantiates a new execution completed state event.
 
Method Summary
 void Decode(byte[] buf)
          Decode.
 byte[] Encode()
          Encode.
 long GetEmitTimestamp()
          Gets the timestamp the event was emitted.
 ExecutionStateEvent.EventName GetEventName()
          Gets the event name.
 
Methods inherited from class gr.uoa.di.madgik.execution.event.ExecutionStateEvent
SetChanged
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExecutionCompletedStateEvent

public ExecutionCompletedStateEvent()
Instantiates a new execution completed state event.

Method Detail

GetEventName

public ExecutionStateEvent.EventName GetEventName()
Description copied from class: ExecutionStateEvent
Gets the event name.

Specified by:
GetEventName in class ExecutionStateEvent
Returns:
the event name

GetEmitTimestamp

public long GetEmitTimestamp()
Description copied from class: ExecutionStateEvent
Gets the timestamp the event was emitted.

Specified by:
GetEmitTimestamp in class ExecutionStateEvent
Returns:
the long

Decode

public void Decode(byte[] buf)
            throws ExecutionSerializationException
Description copied from class: ExecutionStateEvent
Decode.

Specified by:
Decode in class ExecutionStateEvent
Parameters:
buf - the byte array containing the encoded event as serialized by ExecutionStateEvent.Encode()
Throws:
ExecutionSerializationException - A serialization error occurred

Encode

public byte[] Encode()
              throws ExecutionSerializationException
Description copied from class: ExecutionStateEvent
Encode.

Specified by:
Encode in class ExecutionStateEvent
Returns:
the byte array containing the encoded event
Throws:
ExecutionSerializationException - A serialization error occurred


Copyright © 2012. All Rights Reserved.