org.objectweb.jorm.api
Class PStateGraph

java.lang.Object
  extended byorg.objectweb.jorm.api.PStateGraph

public class PStateGraph
extends java.lang.Object

This class, which is entirely static, defines the state graphs for various JORM objects.

Author:
P. Dechamboux

Constructor Summary
PStateGraph()
           
 
Method Summary
static byte nextStatePBinding(byte currentstate, byte action)
          It defines the state graph that represents the lifecycle of PBinding objects.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PStateGraph

public PStateGraph()
Method Detail

nextStatePBinding

public static byte nextStatePBinding(byte currentstate,
                                     byte action)
It defines the state graph that represents the lifecycle of PBinding objects. This means that, knowing a particular state and the action to be performed, it computes the transition to the next state that should be taken by this PBinding after the execution of this action.

Parameters:
currentstate - The state before the execution of the action.
action - The action to be performed.
Returns:
The state after the execution of the action.