Package crypto.rules
Class StateMachineGraph
- java.lang.Object
-
- crypto.rules.StateMachineGraph
-
- All Implemented Interfaces:
FiniteStateMachine<StateNode>,Serializable
public final class StateMachineGraph extends Object implements FiniteStateMachine<StateNode>, Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description StateMachineGraph()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAllOutgoingEdgesFromOneNodeToOtherNodes(StateNode node, Collection<StateNode> otherNodes)BooleanaddNode(StateNode node)StateNodeaggregateNodesToOneNode(Set<StateNode> endNodes, StateNode newNode)Collection<StateNode>aggregateNodestoOtherNodes(Collection<StateNode> nodesToAggr, Collection<StateNode> startNodes)booleancreateNewEdge(List<CrySLMethod> methods, StateNode left, StateNode right)StateNodecreateNewNode()Collection<StateNode>getAcceptingStates()Set<TransitionEdge>getAllOutgoingEdges(StateNode node)Collection<TransitionEdge>getAllTransitions()List<TransitionEdge>getEdges()TransitionEdgegetInitialTransition()Collection<TransitionEdge>getInitialTransitions()Set<StateNode>getNodes()StringtoString()voidwrapUpCreation()
-
-
-
Method Detail
-
createNewNode
public StateNode createNewNode()
-
createNewEdge
public boolean createNewEdge(List<CrySLMethod> methods, StateNode left, StateNode right)
-
wrapUpCreation
public void wrapUpCreation()
-
getAllOutgoingEdges
public Set<TransitionEdge> getAllOutgoingEdges(StateNode node)
-
addAllOutgoingEdgesFromOneNodeToOtherNodes
public void addAllOutgoingEdgesFromOneNodeToOtherNodes(StateNode node, Collection<StateNode> otherNodes)
-
aggregateNodesToOneNode
public StateNode aggregateNodesToOneNode(Set<StateNode> endNodes, StateNode newNode)
-
aggregateNodestoOtherNodes
public Collection<StateNode> aggregateNodestoOtherNodes(Collection<StateNode> nodesToAggr, Collection<StateNode> startNodes)
-
getEdges
public List<TransitionEdge> getEdges()
-
getInitialTransition
public TransitionEdge getInitialTransition()
- Specified by:
getInitialTransitionin interfaceFiniteStateMachine<StateNode>
-
getInitialTransitions
public Collection<TransitionEdge> getInitialTransitions()
-
getAcceptingStates
public Collection<StateNode> getAcceptingStates()
- Specified by:
getAcceptingStatesin interfaceFiniteStateMachine<StateNode>
-
getAllTransitions
public Collection<TransitionEdge> getAllTransitions()
- Specified by:
getAllTransitionsin interfaceFiniteStateMachine<StateNode>
-
-