FDR
4.2.7(6ecbe5a21b71ab020e8fcaeccfe5ebaad0599f4f)
|
5 #include <fdr/lts/events.h>
6 #include <fdr/tasks/canceller.h>
32 std::shared_ptr<Node> destination_;
54 virtual std::shared_ptr<Node>
root_node()
const = 0;
60 virtual std::vector<CompiledEvent>
initials(
const Node& node)
const = 0;
68 virtual std::vector<std::shared_ptr<Node>>
afters(
const Node& node,
const CompiledEvent event)
const = 0;
108 virtual std::vector<CompiledEvent>
alphabet(
bool include_tau)
const = 0;
virtual bool has_minimal_acceptance_labellings() const =0
Does this GLTS have explicit minimal acceptance labels.
CompiledEvent event() const
The label of the arc this transition represents.
virtual std::vector< std::vector< CompiledEvent > > minimal_acceptances(const Node &node) const =0
The set of minimal acceptances of the given node.
const std::shared_ptr< Node > & destination() const
The destination of the arc.
Transition()
Creates a new, empty transition.
A compiled state machine (a GLTS).
Definition: machine.h:43
virtual std::vector< Transition > transitions(const Node &node) const =0
The transitions available from the given node.
virtual bool has_divergence_labellings() const =0
Does this GLTS have explicit divergence labels.
virtual std::vector< std::shared_ptr< Node > > afters(const Node &node, const CompiledEvent event) const =0
The set of states reachable from the given node via the given event.
virtual std::vector< CompiledEvent > alphabet(bool include_tau) const =0
Returns the set of events used by this Machine.
A node (also known as state) in a GLTS.
Definition: node.h:15
virtual bool is_divergent(const Node &node, Canceller *canceller) const =0
True if the state is considered to diverge.
virtual std::vector< CompiledEvent > initials(const Node &node) const =0
The set of events that the node can perform immediately.
Allows cancellation of a running task to be requested.
Definition: canceller.h:53
Transition(CompiledEvent event, const std::shared_ptr< Node > &destination)
Creates a transition with the given label and destination.
virtual bool is_explicitly_divergent(const Node &node) const =0
Is the state labelled as explicitly divergent.
A single transition of a Machine.
Definition: machine.h:16
virtual std::shared_ptr< Node > root_node() const =0
Returns the root, i.e. initial, node of this state machine.