public class CommandImpl extends DeviceBehaviorObject implements Comparable<CommandImpl>, IPollable
| Modifier and Type | Field and Description |
|---|---|
static int |
TANGO_EXPERT_CMD |
static int |
TANGO_OPERATOR_CMD |
| Constructor and Description |
|---|
CommandImpl(ICommandBehavior behavior,
String deviceName) |
| Modifier and Type | Method and Description |
|---|---|
void |
addErrorToHistory(fr.esrf.Tango.DevFailed e) |
void |
addToHistory(Object value) |
int |
compareTo(CommandImpl o) |
void |
configurePolling(int pollingPeriod) |
boolean |
equals(Object obj) |
Object |
execute(Object dataIn)
Execute the command.
|
ICommandBehavior |
getBehavior() |
double |
getDeltaTime() |
fr.esrf.Tango.DispLevel |
getDisplayLevel() |
double |
getExecutionDuration() |
CommandHistory |
getHistory() |
int |
getInTangoType() |
org.tango.command.CommandTangoType |
getInType()
Return the input parameter type.
|
String |
getInTypeDesc()
Return the input parameter description.
|
String |
getLastDevFailed() |
double |
getLastUpdateTime() |
String |
getName()
Return the command name.
|
int |
getOutTangoType() |
org.tango.command.CommandTangoType |
getOutType()
Return the output parameter type.
|
String |
getOutTypeDesc()
Return the output parameter description.
|
int |
getPollingPeriod() |
int |
getPollRingDepth() |
int |
getTag() |
int |
hashCode() |
boolean |
isArginPrimitive() |
boolean |
isPolled() |
void |
resetPolling() |
void |
setDisplayLevel(fr.esrf.Tango.DispLevel level) |
void |
setPollingStats(double executionDuration,
double lastUpdateTime,
double deltaTime) |
void |
setPollRingDepth(int pollRingDepth) |
String |
toString() |
void |
updatePollingConfigFromDB() |
getDeniedStates, getEndState, isAllowed, setDeniedStates, setEndState, setStateMachinepublic static final int TANGO_OPERATOR_CMD
public static final int TANGO_EXPERT_CMD
public CommandImpl(ICommandBehavior behavior, String deviceName) throws fr.esrf.Tango.DevFailed
fr.esrf.Tango.DevFailedpublic Object execute(Object dataIn) throws fr.esrf.Tango.DevFailed
fr.esrf.Tango.DevFailedpublic String getName()
public org.tango.command.CommandTangoType getInType()
public int getInTangoType()
public boolean isArginPrimitive()
public org.tango.command.CommandTangoType getOutType()
public int getOutTangoType()
public String getInTypeDesc()
public String getOutTypeDesc()
public int getTag()
public fr.esrf.Tango.DispLevel getDisplayLevel()
public void setDisplayLevel(fr.esrf.Tango.DispLevel level)
public void addToHistory(Object value) throws fr.esrf.Tango.DevFailed
fr.esrf.Tango.DevFailedpublic void addErrorToHistory(fr.esrf.Tango.DevFailed e)
throws fr.esrf.Tango.DevFailed
fr.esrf.Tango.DevFailedpublic CommandHistory getHistory()
public String toString()
toString in class DeviceBehaviorObjectpublic ICommandBehavior getBehavior()
public int getPollingPeriod()
getPollingPeriod in interface IPollablepublic void configurePolling(int pollingPeriod)
throws fr.esrf.Tango.DevFailed
configurePolling in interface IPollablefr.esrf.Tango.DevFailedpublic void resetPolling()
throws fr.esrf.Tango.DevFailed
resetPolling in interface IPollablefr.esrf.Tango.DevFailedpublic void updatePollingConfigFromDB()
throws fr.esrf.Tango.DevFailed
fr.esrf.Tango.DevFailedpublic int compareTo(CommandImpl o)
compareTo in interface Comparable<CommandImpl>public int getPollRingDepth()
getPollRingDepth in interface IPollablepublic void setPollRingDepth(int pollRingDepth)
setPollRingDepth in interface IPollablepublic double getExecutionDuration()
getExecutionDuration in interface IPollablepublic double getLastUpdateTime()
getLastUpdateTime in interface IPollablepublic double getDeltaTime()
getDeltaTime in interface IPollablepublic void setPollingStats(double executionDuration,
double lastUpdateTime,
double deltaTime)
setPollingStats in interface IPollablepublic String getLastDevFailed()
getLastDevFailed in interface IPollableCopyright © 2012–2017 Tango Controls. All rights reserved.