pub struct ProcessFlow {
pub commodity: Rc<Commodity>,
pub coeff: FlowPerActivity,
pub kind: FlowType,
pub cost: MoneyPerFlow,
pub is_primary_output: bool,
}
Expand description
Represents a maximum annual commodity coeff for a given process
Fields§
§commodity: Rc<Commodity>
The commodity produced or consumed by this flow
coeff: FlowPerActivity
Maximum annual commodity flow quantity relative to other commodity flows.
Positive value indicates flow out and negative value indicates flow in.
kind: FlowType
Identifies if a flow is fixed or flexible.
cost: MoneyPerFlow
Cost per unit flow.
For example, cost per unit of natural gas produced. The user can apply it to any specified flow.
is_primary_output: bool
Whether this flow is the primary output for the process
Implementations§
Source§impl ProcessFlow
impl ProcessFlow
Sourcepub fn get_total_cost(
&self,
region_id: &RegionID,
year: u32,
time_slice: &TimeSliceID,
) -> MoneyPerActivity
pub fn get_total_cost( &self, region_id: &RegionID, year: u32, time_slice: &TimeSliceID, ) -> MoneyPerActivity
Get the cost for this flow with the given parameters.
This includes cost per unit flow and levies/incentives, if any.
Sourcefn get_levy(
&self,
region_id: &RegionID,
year: u32,
time_slice: &TimeSliceID,
) -> MoneyPerFlow
fn get_levy( &self, region_id: &RegionID, year: u32, time_slice: &TimeSliceID, ) -> MoneyPerFlow
Get the levy/incentive for this process flow with the given parameters, if any
Trait Implementations§
Source§impl Clone for ProcessFlow
impl Clone for ProcessFlow
Source§fn clone(&self) -> ProcessFlow
fn clone(&self) -> ProcessFlow
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ProcessFlow
impl Debug for ProcessFlow
Source§impl PartialEq for ProcessFlow
impl PartialEq for ProcessFlow
impl StructuralPartialEq for ProcessFlow
Auto Trait Implementations§
impl Freeze for ProcessFlow
impl RefUnwindSafe for ProcessFlow
impl !Send for ProcessFlow
impl !Sync for ProcessFlow
impl Unpin for ProcessFlow
impl UnwindSafe for ProcessFlow
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more