public class CmdLogicBoard extends Control.CommandGroup
Modifier and Type | Class and Description |
---|---|
static class |
CmdLogicBoard.ClbEvent |
static class |
CmdLogicBoard.ClbState
Allowed CLB states.
|
static class |
CmdLogicBoard.ClbSysState |
static class |
CmdLogicBoard.ClbUpdate
System update event class
|
static class |
CmdLogicBoard.Interval
Interval of variables
|
Modifier and Type | Field and Description |
---|---|
static int |
CLB_SUB_ACS
Acoustics subsystem
|
static int |
CLB_SUB_ALL
Wild-card subsystem (ALL)
|
static int |
CLB_SUB_BSE
DU base subsystem
|
static int |
CLB_SUB_CNT
No of subsystems
|
static int |
CLB_SUB_INS
Instrumentation subsystem
|
static int |
CLB_SUB_NET
Networking subsystem
|
static int |
CLB_SUB_OPT
Optics subsystem
|
static int |
CLB_SUB_SYS
CLB System subsystem
|
EventDispenser<java.util.List<CmdLogicBoard.ClbSysState>> |
stateChange |
EventDispenser<CmdLogicBoard.ClbUpdate> |
update
Event dispenser for the system update task.
|
EventDispenser<java.util.Map<java.lang.Integer,java.lang.Object>> |
varUpdate
Event dispenser for the variable update task.
|
ctl, msg
Modifier | Constructor and Description |
---|---|
protected |
CmdLogicBoard(Control ctl,
MessageProcessor msg) |
Modifier and Type | Method and Description |
---|---|
Response<java.lang.Void> |
clearErrorState(int subsys)
Clears the error state for a specific subysstem.
|
Response<java.lang.Void> |
event(int subsys,
CmdLogicBoard.ClbEvent event)
Initiates a subsystem change to the specified state.
|
Response<java.util.List<CmdLogicBoard.ClbSysState>> |
getExtendedStatus() |
Response<java.util.Map<java.lang.Integer,java.lang.Object>> |
getVars(int... varIds)
Queries the CLB for a number of variables.
|
Response<java.lang.Void> |
setVar(int varId,
java.lang.Object obj) |
Response<java.lang.Void> |
setVars(java.util.Map<java.lang.Integer,java.lang.Object> toModify)
Sets the value to a number of variables.
|
Response<java.lang.Void> |
subscribeVars(CmdLogicBoard.Interval iv,
int... varIds)
Subscribes to a number of variables with a single rate, or interval.
|
Response<java.lang.Void> |
subscribeVars(int... varIds)
Subscribes to a number of variables.
|
Response<java.lang.Void> |
unsubscribeVars(int[] varIds)
Unsubscribes to a number of variables.
|
public static final int CLB_SUB_SYS
public static final int CLB_SUB_NET
public static final int CLB_SUB_OPT
public static final int CLB_SUB_ACS
public static final int CLB_SUB_INS
public static final int CLB_SUB_BSE
public static final int CLB_SUB_CNT
public static final int CLB_SUB_ALL
public final EventDispenser<java.util.List<CmdLogicBoard.ClbSysState>> stateChange
public final EventDispenser<CmdLogicBoard.ClbUpdate> update
public final EventDispenser<java.util.Map<java.lang.Integer,java.lang.Object>> varUpdate
protected CmdLogicBoard(Control ctl, MessageProcessor msg)
public Response<java.lang.Void> event(int subsys, CmdLogicBoard.ClbEvent event)
subsys
- The subsystem, or CLB_SUB_ALL for all.clbState
- The state to go to.public Response<java.lang.Void> clearErrorState(int subsys)
subsys
- The subsystem ID to clear.public Response<java.util.List<CmdLogicBoard.ClbSysState>> getExtendedStatus()
public Response<java.lang.Void> subscribeVars(int... varIds)
varIds
- A list of variable IDs.public Response<java.lang.Void> subscribeVars(CmdLogicBoard.Interval iv, int... varIds)
iv
- IntervalvarIds
- A list of variable IDs.public Response<java.lang.Void> unsubscribeVars(int[] varIds)
varIds
- A list of variable IDs.public Response<java.util.Map<java.lang.Integer,java.lang.Object>> getVars(int... varIds)
varIds
- A list of variable IDs.public Response<java.lang.Void> setVars(java.util.Map<java.lang.Integer,java.lang.Object> toModify)
toModify
- A map of varID / value association.public Response<java.lang.Void> setVar(int varId, java.lang.Object obj)