public class UtilTrunkMain
extends org.lsst.ccs.Subsystem
implements org.lsst.ccs.framework.HasLifecycle
| Constructor and Description |
|---|
UtilTrunkMain()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
build()
Build phase
|
String |
calibrateFan(String name)
Calibrates a fan (using its name).
|
List<String> |
getFanNames()
Gets the list of fan names.
|
UtilTrunkState |
getFullState()
Gets the subsystem state.
|
List<String> |
getHeaterNames()
Gets the list of heater names.
|
List<String> |
getValveNames()
Gets the list of valve names.
|
void |
init()
Init phase.
|
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 |
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, getLogHandlerLevel, getLogLevel, getNumberCommandThreads, isLogLevelInherited, ping, printLoggersLevel, printLogHandlersLevel, printRunningCommands, setLogFormat, setLogHandlerLevel, setLogLevel, setStackTraceDepthcreateHelper, executeCommandRequest, getAgentInfo, getAgentPersistenceService, getAgentService, getAgentServices, getCommandCount, getComponentConfigurationEnvironment, getComponentConfigurationEnvironmentByName, getComponentLookup, getCurrentAction, getDescription, getEnvironmentLockService, getEnvironmentMessagingAccess, getLogger, getMessagingAccess, getName, getScheduler, helper, initAgent, initLogBusHandler, isInEngineeringMode, populateComponentLookup, preInit, preStart, printComponentNodeTree, publishMonitoringDataOnStatusBus, publishSubsystemDataOnStatusBus, sendAck, sendNack, sendStatusMessage, setAgentName, shutdownAgent, shutdownAgent, startAgent, vetoTransitionToNormalModeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic void build()
build in interface org.lsst.ccs.framework.HasLifecyclepublic void init()
init 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 UtilTrunkState getFullState()
@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="Calibrate a fan",
autoAck=false)
public String calibrateFan(@Argument(description="The fan name")
String name)
throws UtilityException
name - The fan nameUtilityException@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 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 temperature)UtilityException@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 setUtilityExceptionCopyright © 2024 LSST. All rights reserved.