Enum Class FlowRateDistributionPolicy
java.lang.Object
java.lang.Enum<FlowRateDistributionPolicy>
com.amalgamasimulation.discreterate.FlowRateDistributionPolicy
- All Implemented Interfaces:
Serializable,Comparable<FlowRateDistributionPolicy>,Constable
Represents a policy to control the distribution of the incoming or outgoing material flow rate among several connections.
Can be applied to Merge and Split flow elements.
When the PRIORITY policy is used, the (incoming or outgoing) flow rate is distributed across the flow connections according to the connections' priorities. 'Priority' of a connection is expressed as a non-negative continuous value: the lower the value, the higher the priority of the connection. Connections with high priority are used first.
For the PROPORTIONAL policy, a rate fraction of each incoming (see Merge.setInflowRateFraction(FlowConnection, double))
or outgoing (see Split.setOutflowRateFraction(FlowConnection, double)) flow connection
is additionally set, and the flow rate is distributed among connections according to the rate fraction settings.
- Author:
- Alexander Morozov
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic FlowRateDistributionPolicyReturns the enum constant of this class with the specified name.static FlowRateDistributionPolicy[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PRIORITY
-
PROPORTIONAL
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-