public class PurgeTestMain
extends org.lsst.ccs.Subsystem
implements org.lsst.ccs.framework.HasLifecycle
| Constructor and Description |
|---|
PurgeTestMain()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
build()
Build phase
|
List<String> |
getFanNames()
Gets the list of fan names.
|
PurgeTestState |
getFullState()
Gets the subsystem state.
|
List<String> |
getHeaterNames()
Gets the list of heater names.
|
List<String> |
getSwitchNames()
Gets the list of switch names.
|
List<String> |
getValveNames()
Gets the list of valve names.
|
void |
postInit()
Subsystem post-initialization
|
void |
postStart()
Starts the subsystem.
|
void |
setFanDeltaTemp(String name,
double temp)
Sets a fan delta temperature (using its name).
|
void |
setFanSpeed(String name,
double speed)
Sets a fan speed (using its name).
|
void |
setFanState(String name,
FanState state)
Sets a fan state (using its name).
|
void |
setHeaterState(String name,
HeaterState state)
Sets a heater control state (using its name).
|
void |
setHeaterValue(String name,
double value)
Sets a heater value (using its name).
|
void |
setSwitchOn(String name,
boolean on)
Turns a switch on or off (using its name).
|
void |
setUpdatePeriod(int period)
Sets the update (tick) period.
|
void |
setValvePosition(String name,
double position)
Sets a valve position (using its name).
|
void |
setValveState(String name,
ValveState state)
Sets a valve state (using its name).
|
void |
setVpcState(VpcControlState state)
Sets the VPC control state.
|
getLogHandler, getNumberCommandThreads, ping, printRunningCommands, setLogFormat, setLogHandlerLevel, setLogLevel, setStackTraceDepthbroadcastStatus, checkAllHardwareStopped, createHelper, executeCommandRequest, getAgentInfo, getAgentPersistenceService, getAgentService, getAgentServices, getCCSVersions, getCommandCount, getComponentConfigurationEnvironment, getComponentConfigurationEnvironmentByName, getComponentLookup, getCurrentAction, getDescription, getDistributionInfo, getEnvironmentLockService, getEnvironmentMessagingAccess, getLogger, getMessagingAccess, getName, getScheduler, getStatusBroadcastPeriod, helper, internalCheckHardware, isConnectedToTheBuses, isInEngineeringMode, populateComponentLookup, preBuild, printComponentNodeTree, publishSubsystemDataOnStatusBus, sendAck, sendNack, sendStatusMessage, setAgentName, shutdownAgent, startAgent, vetoTransitionToNormalModeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic void build()
build in interface org.lsst.ccs.framework.HasLifecyclepublic void postInit()
postInit in interface org.lsst.ccs.framework.HasLifecyclepublic void postStart()
postStart in interface org.lsst.ccs.framework.HasLifecycle@Command(type=QUERY,
description="Get the full state")
public PurgeTestState getFullState()
@Command(type=QUERY,
description="Get list of switch names")
public List<String> getSwitchNames()
@Command(type=ACTION,
description="Turn on/off a named switch")
public void setSwitchOn(@Argument(description="The switch name")
String name,
@Argument(description="Whether to turn on")
boolean on)
throws UtilityException
name - The switch name.on - Whether to turn on or offUtilityException@Command(type=QUERY,
description="Get list of fan names")
public List<String> getFanNames()
@Command(type=ACTION,
description="Set a fan control state")
public void setFanState(@Argument(description="The fan name")
String name,
@Argument(description="The control state")
FanState state)
throws UtilityException
name - The fan namestate - The state to setUtilityException@Command(type=ACTION,
description="Set a fan speed")
public void setFanSpeed(@Argument(description="The fan name")
String name,
@Argument(description="The fan speed")
double speed)
throws UtilityException
name - The fan namespeed - The fan speedUtilityException@Command(type=ACTION,
description="Set the VPC control state")
public void setVpcState(@Argument(description="The control state")
VpcControlState state)
throws UtilityException
state - The state to setUtilityException@Command(type=QUERY,
description="Get list of valve names")
public List<String> getValveNames()
@Command(type=ACTION,
description="Set a valve control state")
public void setValveState(@Argument(description="The valve name")
String name,
@Argument(description="The control state")
ValveState state)
throws UtilityException
name - The valve namestate - The state to setUtilityException@Command(type=ACTION,
description="Set a valve position")
public void setValvePosition(@Argument(description="The valve name")
String name,
@Argument(description="The valve position")
double position)
throws UtilityException
name - The valve nameposition - The valve positionUtilityException@Command(type=ACTION,
description="Set a delta temperature")
public void setFanDeltaTemp(@Argument(description="The fan name")
String name,
@Argument(description="The delta temperature")
double temp)
throws UtilityException
name - The fan nametemp - The delta temperature to setUtilityException@Command(type=QUERY,
description="Get list of heater names")
public List<String> getHeaterNames()
@Command(type=ACTION,
description="Set a heater control state")
public void setHeaterState(@Argument(description="The heater name")
String name,
@Argument(description="The control state")
HeaterState state)
throws UtilityException
name - The heater namestate - The state to setUtilityException@Command(type=ACTION,
description="Set a heater power")
public void setHeaterValue(@Argument(description="The heater name")
String name,
@Argument(description="The value")
double value)
throws UtilityException
name - The heater namevalue - The heater value (power duty cycle or delta rtemperature)UtilityException@Command(type=ACTION,
description="Set the update period")
public void setUpdatePeriod(@Argument(name="period",description="The tick period (msecs)")
int period)
period - The update period (milliseconds) to set.Copyright © 2020 LSST. All rights reserved.