org.hypergraphdb.peer.workflow
Class FSMActivity

java.lang.Object
  extended by org.hypergraphdb.peer.workflow.Activity
      extended by org.hypergraphdb.peer.workflow.FSMActivity
Direct Known Subclasses:
AffirmIdentity

public abstract class FSMActivity
extends Activity

An activity implementation based on a finite state machine defined through method annotations.

Author:
Borislav Iordanov

Constructor Summary
FSMActivity(HyperGraphPeer thisPeer)
           
FSMActivity(HyperGraphPeer thisPeer, java.util.UUID id)
           
 
Method Summary
 void handleMessage(Message message)
          Empty method - can't override because message handling for FSMActivity is automated by the framework.
 void initiate()
          Empty method - override to implement activity initiation.
 
Methods inherited from class org.hypergraphdb.peer.workflow.Activity
getFuture, getId, getState, getType, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FSMActivity

public FSMActivity(HyperGraphPeer thisPeer)

FSMActivity

public FSMActivity(HyperGraphPeer thisPeer,
                   java.util.UUID id)
Method Detail

initiate

public void initiate()

Empty method - override to implement activity initiation.

Specified by:
initiate in class Activity

handleMessage

public final void handleMessage(Message message)

Empty method - can't override because message handling for FSMActivity is automated by the framework.

Specified by:
handleMessage in class Activity
Parameters:
message - The full message.