Class State

java.lang.Object
org.chenile.stm.State
All Implemented Interfaces:
Serializable

public class State extends Object implements Serializable
An encapsulation of what constitutes a state. In this framework, a state is a combination of flowId and stateId. The flowId is used so that the same STM can be used in different flows.The state Id is namespaced by the flow.
Author:
Raja Shankar Kolluru
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • stateId

      private String stateId
    • flowId

      private String flowId
    • DEFAULT_FLOW_ID

      public static final String DEFAULT_FLOW_ID
      If flow Id is not specified, it is assumed to be the default flow.
      See Also:
  • Constructor Details

    • State

      public State(String stateId, String flowId)
    • State

      public State()
  • Method Details

    • setStateId

      public void setStateId(String stateId)
    • getStateId

      public String getStateId()
    • setFlowId

      public void setFlowId(String flowId)
    • getFlowId

      public String getFlowId()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object