Enum Class Conveyor.DownstreamInflowRateShortagePolicy
java.lang.Object
java.lang.Enum<Conveyor.DownstreamInflowRateShortagePolicy>
com.amalgamasimulation.discreterate.Conveyor.DownstreamInflowRateShortagePolicy
- All Implemented Interfaces:
Serializable,Comparable<Conveyor.DownstreamInflowRateShortagePolicy>,Constable
public static enum Conveyor.DownstreamInflowRateShortagePolicy
extends Enum<Conveyor.DownstreamInflowRateShortagePolicy>
Defines the behavior of a Conveyor when
the current rate of its currently exported
ConveyorRateRecord exceeds the rate at which material
can be imported by the downstream FlowElement.- 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 ConstantsEnum ConstantDescriptionIf the rate of the currentConveyorRateRecordbeing exported exceeds the rate at which material can be imported by the downstream flow element, the speed of this Conveyor is reduced accordingly, which causes the current rate of the currentConveyorRateRecordto decrease.If the rate of the currentConveyorRateRecordbeing exported exceeds the rate at which material can be imported by the downstreamFlowElement, this Conveyor is stopped. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
STOP_CONVEYOR
If the rate of the currentConveyorRateRecordbeing exported exceeds the rate at which material can be imported by the downstreamFlowElement, this Conveyor is stopped. The Conveyor starts moving again when the downstream flow element becomes available for receiving material at the rate of theConveyorRateRecordbeing exported. -
CHANGE_SPEED
If the rate of the currentConveyorRateRecordbeing exported exceeds the rate at which material can be imported by the downstream flow element, the speed of this Conveyor is reduced accordingly, which causes the current rate of the currentConveyorRateRecordto decrease. At the same time, the max inflow rate of the Conveyor is reduced proportionally. After the currentConveyorRateRecordhas been exported, the speed of the Conveyor and its initial max inflow rate are restored.
-
-
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
-