Expand description
Explore the total space of states of communicating finite state machines.
This is just the API reference documentation; see the README for an overview and links to example code.
Macros§
- action_
change_ and_ sends - A macro for an action changing the state and sending several messages.
- action_
sends - A macro for an action sending several messages.
- activity_
alternatives - A macro for activity processing one out several payloads.
- agent_
index - A macro for accessing a global variable containing agent index.
- agent_
states_ iter - A macro for iterating on all the agents of some type in a configuration.
- agents_
count - A macro for accessing the number of agent instances.
- assert_
configuration_ hash_ entry_ size - A macro for static assertion on the size of the configuration hash entry.
- declare_
agent_ index - A macro for declaring a global variable containing singleton agent index.
- declare_
agent_ indices - A macro for declaring a global variable containing agent indices.
- declare_
agent_ type_ data - A macro for declaring a global variable containing an agent type.
- impl_
enum_ data - A macro for implementing data-like (states, payload) for an
enum
. - impl_
struct_ data - A macro for implementing data-like (states, payload) for a
struct
with a name field. - index_
type - A macro for implementing some
IndexLike
type. - init_
agent_ index - A macro for initializing a global variable containing singleton agent index.
- init_
agent_ indices - A macro for initializing a global variable containing singleton agent index.
- init_
agent_ type_ data - A macro for initializing a global variable containing an agent type.
- messages_
iter - A macro for iterating on all the in-flight messages configuration.
- reaction_
alternatives - A macro for one of several alternatives reaction.
Structs§
- Agent
Type Data - The data we need to implement an agent type.
- Configuration
- A complete system configuration.
- Container
Of1Type Data - The data we need to implement an container agent type.
- Container
Of2Type Data - The data we need to implement an container agent type.
- Message
- A message in-flight between agents.
- Message
Index - The type of the index of a message in the configuration.
- Model
- A complete model.
Enums§
- Action
- Specify an action the agent may take when handling an event.
- Activity
- The reaction of an agent to time passing.
- Emit
- A message sent by an agent as part of an alternative action triggered by some event.
- Instances
- Specify the number of agent instances to use.
- Invalid
- An indicator that something is invalid.
- Message
Order - Possible way to order a message.
- Reaction
- The reaction of an agent to receiving a message.
Constants§
- MAX_
COUNT - The maximal number of alternative actions in a reaction, payloads in an activity or emitted messages within an action.
Traits§
- Agent
Instances - A trait partially describing some agent instances of the same type.
- Agent
State - A trait for a single agent state.
- Agent
Type - A trait fully describing some agent instances of the same type.
- Clap
Model - Execute operations on a model using clap commands.
- Container
Of1State - A trait for a container agent state.
- Container
Of2State - A trait for a container agent state.
- Index
Like - A trait for anything we use as a zero-based index.
- Meta
Model - Allow querying the model’s meta-parameters for public types.
- Name
- A trait for data having a short name.
- Part
Type - Allow access to state of parts.
Functions§
- add_
clap - Add clap commands and flags to a clap application.
- model_
size - Parse the model size parameter.