Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Automaton ¶
type Automaton struct {
Name string `json:"name"`
Transitions Transitions `json:"transitions"`
}
Automaton represents a single automaton present on the `network` block
func (*Automaton) AddTransition ¶
func (a *Automaton) AddTransition(t *Transition)
AddTransition adds a Transition to the automaton
type Events ¶
type Events []*Event
Events represent a collection of events present on the `events` block
type Identifier ¶
type Identifier struct {
Name string `json:"name"`
Type string `json:"type"`
Value interface{} `json:"value"`
}
Identifier represents a single identifier that has been parsed from the `identifiers` block
type Identifiers ¶
type Identifiers []*Identifier
Identifiers represent a collection of identifiers present on the `identifiers` block
type Model ¶
type Model struct {
Identifiers Identifiers `json:"identifiers"`
Events Events `json:"events"`
Reachability *Reachability `json:"reachability"`
Network *Network `json:"network"`
Results Results `json:"results"`
}
Model represents a model that has been parsed from a .san file
func (*Model) AddIdentifier ¶
func (m *Model) AddIdentifier(i *Identifier)
AddIdentifier adds an Identifier to the model
type Network ¶
type Network struct {
Name string `json:"name"`
Type string `json:"type"`
Automata Automata `json:"automata"`
}
Network aggregates automata information from the `network` block
func (*Network) AddAutomaton ¶
AddAutomaton adds an Automaton to a network
type Reachability ¶
Reachability represents the reachability information about the model network
type Results ¶
type Results []*Result
Results represents a collection of results present on the `results` block
type Transition ¶
type Transition struct {
From string `json:"from"`
To string `json:"to"`
Events TransitionEvents `json:"events"`
}
Transition represents a single automaton transition
type TransitionEvent ¶
type TransitionEvent struct {
EventName string `json:"name"`
Probability string `json:"probability"`
}
TransitionEvent represents a single automaton transition event
type TransitionEvents ¶
type TransitionEvents []*TransitionEvent
TransitionEvents represents a collection of transition events
type Transitions ¶
type Transitions []*Transition
Transitions represent a collection of automaton transitions