Struct total_space::ContainerOf1TypeData [−][src]
The data we need to implement an container agent type.
This should be placed in a Singleton
to allow the agent states to get services from it.
Implementations
impl<State: DataLike, Part: DataLike, StateId: IndexLike, Payload: DataLike, const MAX_PARTS: usize> ContainerOf1TypeData<State, Part, StateId, Payload, MAX_PARTS>
[src]
pub fn new(
name: &'static str,
instances: Instances,
part_type: Rc<dyn PartType<Part, StateId>>,
prev_type: Rc<dyn AgentType<StateId, Payload>>
) -> Self
[src]
name: &'static str,
instances: Instances,
part_type: Rc<dyn PartType<Part, StateId>>,
prev_type: Rc<dyn AgentType<StateId, Payload>>
) -> Self
Create new agent type data with the specified name and number of instances.
impl<State: DataLike + ContainerOf1State<State, Part, Payload>, Part: DataLike + AgentState<Part, Payload>, StateId: IndexLike, Payload: DataLike, const MAX_PARTS: usize> ContainerOf1TypeData<State, Part, StateId, Payload, MAX_PARTS>
[src]
pub fn set_order(&mut self, instance: usize, order: usize)
[src]
Set the horizontal order of an instance of the agent in a sequence diagram.
Trait Implementations
impl<State: DataLike + ContainerOf1State<State, Part, Payload>, Part: DataLike + AgentState<Part, Payload>, StateId: IndexLike, Payload: DataLike, const MAX_PARTS: usize> AgentInstances<StateId, Payload> for ContainerOf1TypeData<State, Part, StateId, Payload, MAX_PARTS>
[src]
fn prev_agent_type(&self) -> Option<Rc<dyn AgentType<StateId, Payload>>>
[src]
fn first_index(&self) -> usize
[src]
fn next_index(&self) -> usize
[src]
fn is_singleton(&self) -> bool
[src]
fn instances_count(&self) -> usize
[src]
fn instance_order(&self, instance: usize) -> usize
[src]
fn display_state(&self, state_id: StateId) -> Rc<String>
[src]
fn terse_id(&self, state_id: StateId) -> StateId
[src]
fn display_terse(&self, terse_id: StateId) -> String
[src]
impl<State: DataLike + ContainerOf1State<State, Part, Payload>, Part: DataLike + AgentState<Part, Payload>, StateId: IndexLike, Payload: DataLike, const MAX_PARTS: usize> AgentType<StateId, Payload> for ContainerOf1TypeData<State, Part, StateId, Payload, MAX_PARTS>
[src]
fn reaction(
&self,
instance: usize,
state_ids: &[StateId],
payload: &Payload
) -> Reaction<StateId, Payload>
[src]
&self,
instance: usize,
state_ids: &[StateId],
payload: &Payload
) -> Reaction<StateId, Payload>
fn activity(&self, instance: usize, state_ids: &[StateId]) -> Activity<Payload>
[src]
fn state_is_deferring(&self, instance: usize, state_ids: &[StateId]) -> bool
[src]
fn state_invalid_because(
&self,
instance: usize,
state_ids: &[StateId]
) -> Option<&'static str>
[src]
&self,
instance: usize,
state_ids: &[StateId]
) -> Option<&'static str>
fn state_max_in_flight_messages(
&self,
instance: usize,
state_ids: &[StateId]
) -> Option<usize>
[src]
&self,
instance: usize,
state_ids: &[StateId]
) -> Option<usize>
fn states_count(&self) -> usize
[src]
fn compute_terse(&self)
[src]
impl<State: DataLike, Part: DataLike, StateId: IndexLike, Payload: DataLike, const MAX_PARTS: usize> Name for ContainerOf1TypeData<State, Part, StateId, Payload, MAX_PARTS>
[src]
Auto Trait Implementations
impl<State, Part, StateId, Payload, const MAX_PARTS: usize> !RefUnwindSafe for ContainerOf1TypeData<State, Part, StateId, Payload, MAX_PARTS>
impl<State, Part, StateId, Payload, const MAX_PARTS: usize> !Send for ContainerOf1TypeData<State, Part, StateId, Payload, MAX_PARTS>
impl<State, Part, StateId, Payload, const MAX_PARTS: usize> !Sync for ContainerOf1TypeData<State, Part, StateId, Payload, MAX_PARTS>
impl<State, Part, StateId, Payload, const MAX_PARTS: usize> Unpin for ContainerOf1TypeData<State, Part, StateId, Payload, MAX_PARTS> where
Payload: Unpin,
State: Unpin,
StateId: Unpin,
Payload: Unpin,
State: Unpin,
StateId: Unpin,
impl<State, Part, StateId, Payload, const MAX_PARTS: usize> !UnwindSafe for ContainerOf1TypeData<State, Part, StateId, Payload, MAX_PARTS>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,