pub struct ProcessFlow {
pub commodity: Rc<Commodity>,
pub coeff: FlowPerActivity,
pub kind: FlowType,
pub cost: MoneyPerFlow,
}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: FlowPerActivityMaximum annual commodity flow quantity relative to other commodity flows.
Positive value indicates flow out and negative value indicates flow in.
kind: FlowTypeIdentifies if a flow is fixed or flexible.
cost: MoneyPerFlowCost per unit flow.
For example, cost per unit of natural gas produced. The user can apply it to any specified flow.
Implementations§
Source§impl ProcessFlow
impl ProcessFlow
Sourcepub fn get_total_cost_per_flow(
&self,
region_id: &RegionID,
year: u32,
time_slice: &TimeSliceID,
) -> MoneyPerFlow
pub fn get_total_cost_per_flow( &self, region_id: &RegionID, year: u32, time_slice: &TimeSliceID, ) -> MoneyPerFlow
Get the cost per unit flow for a given region, year, and time slice.
Includes flow costs and levies/incentives, if any.
Sourcepub fn get_total_cost_per_activity(
&self,
region_id: &RegionID,
year: u32,
time_slice: &TimeSliceID,
) -> MoneyPerActivity
pub fn get_total_cost_per_activity( &self, region_id: &RegionID, year: u32, time_slice: &TimeSliceID, ) -> MoneyPerActivity
Get the cost for this flow per unit of activity for a given region, year, and time slice.
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
Sourcepub fn direction(&self) -> FlowDirection
pub fn direction(&self) -> FlowDirection
Direction of the flow
Trait Implementations§
Source§impl Clone for ProcessFlow
impl Clone for ProcessFlow
Source§fn clone(&self) -> ProcessFlow
fn clone(&self) -> ProcessFlow
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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
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>
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>
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