org.objectweb.jorm.api

Class 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

Method Summary

static byte
nextStatePBinding(byte currentstate, byte action)
It defines the state graph that represents the lifecycle of PBinding objects.

Method Details

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.