pub struct Scenario<SCENARIODEFINITION, AGENT, SCENARIO> { /* private fields */ }
Expand description
An estimated or analytical logical collection of higher level processes used for budgeting, analysis, plan refinement, etc.
Implementations§
source§impl<SCENARIODEFINITION, AGENT, SCENARIO> Scenario<SCENARIODEFINITION, AGENT, SCENARIO>
impl<SCENARIODEFINITION, AGENT, SCENARIO> Scenario<SCENARIODEFINITION, AGENT, SCENARIO>
sourcepub fn defined_as_mut(&mut self) -> &mut Option<SCENARIODEFINITION>
pub fn defined_as_mut(&mut self) -> &mut Option<SCENARIODEFINITION>
The scenario definition for this scenario, for example yearly budget.
sourcepub fn has_beginning_mut(&mut self) -> &mut Option<DateTime<Utc>>
pub fn has_beginning_mut(&mut self) -> &mut Option<DateTime<Utc>>
The planned or actual beginning of a flow or process.
sourcepub fn has_end_mut(&mut self) -> &mut Option<DateTime<Utc>>
pub fn has_end_mut(&mut self) -> &mut Option<DateTime<Utc>>
The planned or actual end of a flow or process.
sourcepub fn in_scope_of_mut(&mut self) -> &mut Vec<AGENT>
pub fn in_scope_of_mut(&mut self) -> &mut Vec<AGENT>
In the context of an agent, a grouping generally used for accounting, reporting.
sourcepub fn name_mut(&mut self) -> &mut String
pub fn name_mut(&mut self) -> &mut String
An informal or formal textual identifier for an object. Does not imply uniqueness.
pub fn note_mut(&mut self) -> &mut Option<String>
sourcepub fn refinement_of_mut(&mut self) -> &mut Option<SCENARIO>
pub fn refinement_of_mut(&mut self) -> &mut Option<SCENARIO>
This scenario or plan refines another scenario, often as time moves closer or for more detail.
source§impl<SCENARIODEFINITION, AGENT, SCENARIO> Scenario<SCENARIODEFINITION, AGENT, SCENARIO>
impl<SCENARIODEFINITION, AGENT, SCENARIO> Scenario<SCENARIODEFINITION, AGENT, SCENARIO>
sourcepub fn set_defined_as(&mut self, val: Option<SCENARIODEFINITION>) -> &mut Self
pub fn set_defined_as(&mut self, val: Option<SCENARIODEFINITION>) -> &mut Self
The scenario definition for this scenario, for example yearly budget.
sourcepub fn set_has_beginning(&mut self, val: Option<DateTime<Utc>>) -> &mut Self
pub fn set_has_beginning(&mut self, val: Option<DateTime<Utc>>) -> &mut Self
The planned or actual beginning of a flow or process.
sourcepub fn set_has_end(&mut self, val: Option<DateTime<Utc>>) -> &mut Self
pub fn set_has_end(&mut self, val: Option<DateTime<Utc>>) -> &mut Self
The planned or actual end of a flow or process.
sourcepub fn set_in_scope_of(&mut self, val: Vec<AGENT>) -> &mut Self
pub fn set_in_scope_of(&mut self, val: Vec<AGENT>) -> &mut Self
In the context of an agent, a grouping generally used for accounting, reporting.
sourcepub fn set_name(&mut self, val: String) -> &mut Self
pub fn set_name(&mut self, val: String) -> &mut Self
An informal or formal textual identifier for an object. Does not imply uniqueness.
pub fn set_note(&mut self, val: Option<String>) -> &mut Self
sourcepub fn set_refinement_of(&mut self, val: Option<SCENARIO>) -> &mut Self
pub fn set_refinement_of(&mut self, val: Option<SCENARIO>) -> &mut Self
This scenario or plan refines another scenario, often as time moves closer or for more detail.
source§impl<SCENARIODEFINITION, AGENT, SCENARIO> Scenario<SCENARIODEFINITION, AGENT, SCENARIO>
impl<SCENARIODEFINITION, AGENT, SCENARIO> Scenario<SCENARIODEFINITION, AGENT, SCENARIO>
sourcepub fn defined_as(&self) -> &Option<SCENARIODEFINITION>
pub fn defined_as(&self) -> &Option<SCENARIODEFINITION>
The scenario definition for this scenario, for example yearly budget.
sourcepub fn has_beginning(&self) -> &Option<DateTime<Utc>>
pub fn has_beginning(&self) -> &Option<DateTime<Utc>>
The planned or actual beginning of a flow or process.
sourcepub fn has_end(&self) -> &Option<DateTime<Utc>>
pub fn has_end(&self) -> &Option<DateTime<Utc>>
The planned or actual end of a flow or process.
sourcepub fn in_scope_of(&self) -> &Vec<AGENT>
pub fn in_scope_of(&self) -> &Vec<AGENT>
In the context of an agent, a grouping generally used for accounting, reporting.
sourcepub fn name(&self) -> &String
pub fn name(&self) -> &String
An informal or formal textual identifier for an object. Does not imply uniqueness.
pub fn note(&self) -> &Option<String>
sourcepub fn refinement_of(&self) -> &Option<SCENARIO>
pub fn refinement_of(&self) -> &Option<SCENARIO>
This scenario or plan refines another scenario, often as time moves closer or for more detail.
source§impl<SCENARIODEFINITION, AGENT, SCENARIO> Scenario<SCENARIODEFINITION, AGENT, SCENARIO>
impl<SCENARIODEFINITION, AGENT, SCENARIO> Scenario<SCENARIODEFINITION, AGENT, SCENARIO>
sourcepub fn builder() -> ScenarioBuilder<SCENARIODEFINITION, AGENT, SCENARIO>
pub fn builder() -> ScenarioBuilder<SCENARIODEFINITION, AGENT, SCENARIO>
Create an empty builder object for Scenario
sourcepub fn into_builder(
self
) -> ScenarioBuilder<SCENARIODEFINITION, AGENT, SCENARIO>
pub fn into_builder( self ) -> ScenarioBuilder<SCENARIODEFINITION, AGENT, SCENARIO>
Turns Scenario into ScenarioBuilder