Trait total_space::ClapModel[][src]

pub trait ClapModel {
    fn do_compute(&mut self, arg_matches: &ArgMatches<'_>);
fn do_clap_agents(
        &mut self,
        arg_matches: &ArgMatches<'_>,
        stdout: &mut dyn Write
    ) -> bool;
fn do_clap_conditions(
        &mut self,
        arg_matches: &ArgMatches<'_>,
        stdout: &mut dyn Write
    ) -> bool;
fn do_clap_compute(
        &mut self,
        arg_matches: &ArgMatches<'_>,
        stdout: &mut dyn Write
    ) -> bool;
fn do_clap_configurations(
        &mut self,
        arg_matches: &ArgMatches<'_>,
        stdout: &mut dyn Write
    ) -> bool;
fn do_clap_transitions(
        &mut self,
        arg_matches: &ArgMatches<'_>,
        stdout: &mut dyn Write
    ) -> bool;
fn do_clap_path(
        &mut self,
        arg_matches: &ArgMatches<'_>,
        stdout: &mut dyn Write
    ) -> bool;
fn do_clap_sequence(
        &mut self,
        arg_matches: &ArgMatches<'_>,
        stdout: &mut dyn Write
    ) -> bool;
fn do_clap_states(
        &mut self,
        arg_matches: &ArgMatches<'_>,
        stdout: &mut dyn Write
    ) -> bool; fn do_clap(&mut self, arg_matches: &ArgMatches<'_>, stdout: &mut dyn Write) { ... } }

Execute operations on a model using clap commands.

Required methods

fn do_compute(&mut self, arg_matches: &ArgMatches<'_>)[src]

Compute the model.

fn do_clap_agents(
    &mut self,
    arg_matches: &ArgMatches<'_>,
    stdout: &mut dyn Write
) -> bool
[src]

Execute the agents clap subcommand, if requested to.

This doesn’t compute the model.

fn do_clap_conditions(
    &mut self,
    arg_matches: &ArgMatches<'_>,
    stdout: &mut dyn Write
) -> bool
[src]

Execute the conditions clap subcommand, if requested to.

This doesn’t compute the model.

fn do_clap_compute(
    &mut self,
    arg_matches: &ArgMatches<'_>,
    stdout: &mut dyn Write
) -> bool
[src]

Only compute the model (no output).

fn do_clap_configurations(
    &mut self,
    arg_matches: &ArgMatches<'_>,
    stdout: &mut dyn Write
) -> bool
[src]

Execute the configurations clap subcommand, if requested to.

This computes the model.

fn do_clap_transitions(
    &mut self,
    arg_matches: &ArgMatches<'_>,
    stdout: &mut dyn Write
) -> bool
[src]

Execute the transitions clap subcommand, if requested to.

This computes the model.

fn do_clap_path(
    &mut self,
    arg_matches: &ArgMatches<'_>,
    stdout: &mut dyn Write
) -> bool
[src]

Execute the path clap subcommand, if requested to.

fn do_clap_sequence(
    &mut self,
    arg_matches: &ArgMatches<'_>,
    stdout: &mut dyn Write
) -> bool
[src]

Execute the sequence clap subcommand, if requested to.

fn do_clap_states(
    &mut self,
    arg_matches: &ArgMatches<'_>,
    stdout: &mut dyn Write
) -> bool
[src]

Execute the states clap subcommand, if requested to.

Loading content...

Provided methods

fn do_clap(&mut self, arg_matches: &ArgMatches<'_>, stdout: &mut dyn Write)[src]

Execute the chosen clap subcommand.

Return whether a command was executed.

Loading content...

Implementors

impl<StateId: IndexLike, MessageId: IndexLike, InvalidId: IndexLike, ConfigurationId: IndexLike, Payload: DataLike, const MAX_AGENTS: usize, const MAX_MESSAGES: usize> ClapModel for Model<StateId, MessageId, InvalidId, ConfigurationId, Payload, MAX_AGENTS, MAX_MESSAGES>[src]

Loading content...