Class DigitalInputsConfigs
- All Implemented Interfaces:
ParentConfiguration, Cloneable
Contains float-state settings and when to assert the S1/S2 inputs.
-
Field Summary
FieldsModifier and TypeFieldDescriptionWhat value the Signal 1 input (S1IN) needs to be for the CTR Electronics' CANdi™ to detect as Closed.The floating state of the Signal 1 input (S1IN).What value the Signal 2 input (S2IN) needs to be for the CTR Electronics' CANdi™ to detect as Closed.The floating state of the Signal 2 input (S2IN). -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()final StatusCodedeserialize(String to_deserialize) Take a string and deserialize it to this configuration group.final StringGet the serialized form of this configuration group.toString()final DigitalInputsConfigswithS1CloseState(S1CloseStateValue newS1CloseState) Modifies this configuration's S1CloseState parameter and returns itself for method-chaining and easier to use config API.final DigitalInputsConfigswithS1FloatState(S1FloatStateValue newS1FloatState) Modifies this configuration's S1FloatState parameter and returns itself for method-chaining and easier to use config API.final DigitalInputsConfigswithS2CloseState(S2CloseStateValue newS2CloseState) Modifies this configuration's S2CloseState parameter and returns itself for method-chaining and easier to use config API.final DigitalInputsConfigswithS2FloatState(S2FloatStateValue newS2FloatState) Modifies this configuration's S2FloatState parameter and returns itself for method-chaining and easier to use config API.
-
Field Details
-
S1FloatState
The floating state of the Signal 1 input (S1IN).- Default Value:
S1FloatStateValue.FloatDetect
- Default Value:
-
S2FloatState
The floating state of the Signal 2 input (S2IN).- Default Value:
S2FloatStateValue.FloatDetect
- Default Value:
-
S1CloseState
What value the Signal 1 input (S1IN) needs to be for the CTR Electronics' CANdi™ to detect as Closed.Devices using the S1 input as a remote limit switch will treat the switch as closed when the S1 input is this state.
- Default Value:
S1CloseStateValue.CloseWhenNotFloating
- Default Value:
-
S2CloseState
What value the Signal 2 input (S2IN) needs to be for the CTR Electronics' CANdi™ to detect as Closed.Devices using the S2 input as a remote limit switch will treat the switch as closed when the S2 input is this state.
- Default Value:
S2CloseStateValue.CloseWhenNotFloating
- Default Value:
-
-
Constructor Details
-
DigitalInputsConfigs
public DigitalInputsConfigs()
-
-
Method Details
-
withS1FloatState
Modifies this configuration's S1FloatState parameter and returns itself for method-chaining and easier to use config API.The floating state of the Signal 1 input (S1IN).
- Default Value:
S1FloatStateValue.FloatDetect
- Parameters:
newS1FloatState- Parameter to modify- Returns:
- Itself
- Default Value:
-
withS2FloatState
Modifies this configuration's S2FloatState parameter and returns itself for method-chaining and easier to use config API.The floating state of the Signal 2 input (S2IN).
- Default Value:
S2FloatStateValue.FloatDetect
- Parameters:
newS2FloatState- Parameter to modify- Returns:
- Itself
- Default Value:
-
withS1CloseState
Modifies this configuration's S1CloseState parameter and returns itself for method-chaining and easier to use config API.What value the Signal 1 input (S1IN) needs to be for the CTR Electronics' CANdi™ to detect as Closed.
Devices using the S1 input as a remote limit switch will treat the switch as closed when the S1 input is this state.
- Default Value:
S1CloseStateValue.CloseWhenNotFloating
- Parameters:
newS1CloseState- Parameter to modify- Returns:
- Itself
- Default Value:
-
withS2CloseState
Modifies this configuration's S2CloseState parameter and returns itself for method-chaining and easier to use config API.What value the Signal 2 input (S2IN) needs to be for the CTR Electronics' CANdi™ to detect as Closed.
Devices using the S2 input as a remote limit switch will treat the switch as closed when the S2 input is this state.
- Default Value:
S2CloseStateValue.CloseWhenNotFloating
- Parameters:
newS2CloseState- Parameter to modify- Returns:
- Itself
- Default Value:
-
toString
-
serialize
Get the serialized form of this configuration group.- Specified by:
serializein interfaceParentConfiguration- Returns:
- Serialized form of this config group
-
deserialize
Take a string and deserialize it to this configuration group.- Specified by:
deserializein interfaceParentConfiguration- Parameters:
to_deserialize- The serialized configuration- Returns:
- Return code of the deserialize method
-
clone
-