Class TransitionSystem
java.lang.Object
org.tweetyproject.action.transitionsystem.TransitionSystem
This class represents an action transition system for a fixed action
signature with a set of states and a set of transitions between states.
Transition systems are used to capture the meaning of action descriptions.
For a collection of action languages defined in terms of transition systems,
see: [Gelfond, Michael and Lifschitz, Vladimir: Action Languages. ETAI:
Electronic Transactions on AI, 1998.]
- Author:
- Sebastian Homann
-
Constructor Summary
ConstructorDescriptionTransitionSystem
(Set<State> states, Set<Transition> transitions, ActionSignature signature) Creates a new transition system.TransitionSystem
(Set<State> states, ActionSignature signature) Creates a new transition system.TransitionSystem
(ActionSignature signature) Creates a new empty transition system with the given ActionSignature. -
Method Summary
Modifier and TypeMethodDescriptionCreates a new state and adds it to this transition system.void
Adds a state to this transition system.void
Adds a given transition to this transition system.Returns the action signature of this transition system.Returns the state that maps the given fluents to true, if it exists, otherwise null.Creates a HashSet with all states contained in this transition system.Creates a HashSet with all transitions contained in this transition system.boolean
Returns the value of a fluent in a state in this transition system.Returns this transition system in dot-format with collapsed transitions, which may be further processed using a graph drawing library such as graphviz.toString()
-
Constructor Details
-
TransitionSystem
Creates a new transition system.- Parameters:
states
- A set of states which is contained in this transition system.transitions
- A set of transitions which is contained in this transition system.signature
- The action signature for this transition system.
-
TransitionSystem
Creates a new transition system.- Parameters:
states
- A set of states which is contained in this transition system.signature
- The action signature for this transition system.
-
TransitionSystem
Creates a new empty transition system with the given ActionSignature.- Parameters:
signature
- the action signature of this transition system
-
-
Method Details
-
addState
-
addState
-
getState
-
addTransition
Adds a given transition to this transition system.- Parameters:
t
- a new transition
-
getStates
-
getTransitions
Creates a HashSet with all transitions contained in this transition system.- Returns:
- all transitions contained in this transition system.
-
getValue
-
toDotFormat
Returns this transition system in dot-format with collapsed transitions, which may be further processed using a graph drawing library such as graphviz. For more information, see http://www.graphviz.org- Returns:
- This transition system in dot format.
-
getSignature
Returns the action signature of this transition system.- Returns:
- the action signature of this transition system.
-
toString
-