-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from ApexRMS/kb-stock-flow-multipliers
Kb stock flow multipliers
- Loading branch information
Showing
55 changed files
with
3,069 additions
and
2,553 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
// stsim-stockflow: SyncroSim Add-On Package (to stsim) for integrating stocks and flows into state-and-transition simulation models in ST-Sim. | ||
// Copyright © 2007-2023 Apex Resource Management Solutions Ltd. (ApexRMS). All rights reserved. | ||
|
||
using SyncroSim.STSim; | ||
using SyncroSim.StochasticTime; | ||
|
||
namespace SyncroSim.STSimStockFlow | ||
{ | ||
internal class FlowMultiplierByStock : STSimDistributionBase | ||
{ | ||
private readonly int? m_StateClassId; | ||
private readonly int? m_FlowMultiplierTypeId; | ||
private readonly int m_FlowGroupID; | ||
private readonly int m_StockGroupId; | ||
private readonly double m_StockValue; | ||
|
||
public FlowMultiplierByStock( | ||
int? iteration, int? timestep, int? stratumId, int? secondaryStratumId, int? tertiaryStratumId, | ||
int? stateClassId, int? flowMultiplierTypeId, int flowGroupId, int stockGroupId, double stockValue, double? multiplier, | ||
int? distributionTypeId, DistributionFrequency? distributionFrequency, double? distributionSD, | ||
double? distributionMin, double? distributionMax) : base(iteration, timestep, stratumId, secondaryStratumId, tertiaryStratumId, multiplier, distributionTypeId, distributionFrequency, distributionSD, distributionMin, distributionMax) | ||
{ | ||
this.m_StateClassId = stateClassId; | ||
this.m_FlowMultiplierTypeId = flowMultiplierTypeId; | ||
this.m_FlowGroupID = flowGroupId; | ||
this.m_StockGroupId = stockGroupId; | ||
this.m_StockValue = stockValue; | ||
|
||
} | ||
|
||
public int? StateClassId | ||
{ | ||
get | ||
{ | ||
return this.m_StateClassId; | ||
} | ||
} | ||
|
||
public int? FlowMultiplierTypeId | ||
{ | ||
get | ||
{ | ||
return this.m_FlowMultiplierTypeId; | ||
} | ||
} | ||
|
||
public int FlowGroupId | ||
{ | ||
get | ||
{ | ||
return this.m_FlowGroupID; | ||
} | ||
} | ||
|
||
public int StockGroupId | ||
{ | ||
get | ||
{ | ||
return this.m_StockGroupId; | ||
} | ||
} | ||
|
||
public double StockValue | ||
{ | ||
get | ||
{ | ||
return this.m_StockValue; | ||
} | ||
} | ||
|
||
public override STSimDistributionBase Clone() | ||
{ | ||
return new FlowMultiplierByStock( | ||
this.Iteration, this.Timestep, this.StratumId, this.SecondaryStratumId, this.TertiaryStratumId, | ||
this.StateClassId, this.FlowMultiplierTypeId, this.FlowGroupId, this.StockGroupId, this.StockValue, | ||
this.DistributionValue, this.DistributionTypeId, this.DistributionFrequency, this.DistributionSD, | ||
this.DistributionMin, this.DistributionMax); | ||
} | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// stsim-stockflow: SyncroSim Add-On Package (to stsim) for integrating stocks and flows into state-and-transition simulation models in ST-Sim. | ||
// Copyright © 2007-2023 Apex Resource Management Solutions Ltd. (ApexRMS). All rights reserved. | ||
|
||
using System.Collections.ObjectModel; | ||
|
||
namespace SyncroSim.STSimStockFlow | ||
{ | ||
internal class FlowMultiplierByStockCollection : Collection<FlowMultiplierByStock> | ||
{ | ||
} | ||
} |
Oops, something went wrong.