pub struct ProductionOrderGenerator { /* private fields */ }Expand description
Generates ProductionOrder instances with realistic routing operations,
costing, and lifecycle status distributions.
Implementations§
Source§impl ProductionOrderGenerator
impl ProductionOrderGenerator
Sourcepub fn set_temporal_context(&mut self, ctx: Arc<TemporalContext>)
pub fn set_temporal_context(&mut self, ctx: Arc<TemporalContext>)
Set the shared TemporalContext so production-order dates (planned
start/end, actual start/end, operation started_at/completed_at) snap
to business days.
Sourcepub fn generate(
&mut self,
company_code: &str,
material_ids: &[(String, String)],
period_start: NaiveDate,
period_end: NaiveDate,
config: &ProductionOrderConfig,
costing: &ManufacturingCostingConfig,
routing: &RoutingConfig,
) -> Vec<ProductionOrder>
pub fn generate( &mut self, company_code: &str, material_ids: &[(String, String)], period_start: NaiveDate, period_end: NaiveDate, config: &ProductionOrderConfig, costing: &ManufacturingCostingConfig, routing: &RoutingConfig, ) -> Vec<ProductionOrder>
Generate production orders for the given period based on configuration.
§Arguments
company_code- Company code for all generated orders.material_ids- Available materials as(material_id, description)tuples.period_start- Start of the generation period.period_end- End of the generation period.config- Production order configuration parameters.costing- Manufacturing costing parameters.routing- Routing configuration parameters.
Auto Trait Implementations§
impl !Freeze for ProductionOrderGenerator
impl RefUnwindSafe for ProductionOrderGenerator
impl Send for ProductionOrderGenerator
impl Sync for ProductionOrderGenerator
impl Unpin for ProductionOrderGenerator
impl UnsafeUnpin for ProductionOrderGenerator
impl UnwindSafe for ProductionOrderGenerator
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.