Package org.yamcs.studio.script
Class Yamcs
java.lang.Object
org.yamcs.studio.script.Yamcs
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Stringstatic StringgetGenerationTime(IPV pv) Returns an ISO-8601 stringstatic StringReturns the "monitoring result" of a Yamcs parameter.static ParameterInfogetParameterInfo(IPV pv) static StringgetReceptionTime(IPV pv) Returns an ISO-8601 stringstatic voidissueCommand(String commandText) Sample use: Yamcs.issueCommand('/YSS/SIMULATOR/SWITCH_VOLTAGE_ON(voltage_num: 1)');static voidissueCommand(String command, Map<String, Object> args) Sample use: Yamcs.issueCommand('/YSS/SIMULATOR/SWITCH_VOLTAGE_ON', {"voltage_num": 1});static voidrunCommandStack(String path) static voidrunCommandStack(String path, AbstractBaseEditPart widget) static voidrunProcedure(String procedure) Submit a SPELL procedure.static voidrunProcedure(String procedure, Map<String, Object> args) Submit a SPELL procedure with arguments.static voidwriteTextFileToBucket(String bucket, String objectName, String text) Write a text file to a bucket.
-
Field Details
-
log
-
-
Constructor Details
-
Yamcs
public Yamcs()
-
-
Method Details
-
issueCommand
Sample use: Yamcs.issueCommand('/YSS/SIMULATOR/SWITCH_VOLTAGE_ON(voltage_num: 1)'); -
issueCommand
Sample use: Yamcs.issueCommand('/YSS/SIMULATOR/SWITCH_VOLTAGE_ON', {"voltage_num": 1}); -
runCommandStack
-
runCommandStack
-
runProcedure
Submit a SPELL procedure.Only useful when the connected Yamcs backend supports this (not publicly released).
-
runProcedure
Submit a SPELL procedure with arguments.Only useful when the connected Yamcs backend supports this (not publicly released).
-
getMonitoringResult
Returns the "monitoring result" of a Yamcs parameter. One of IN_LIMITS, WATCH, WARNING, DISTRESS, CRITICAL or SEVERE.For PVs that are not connected to Yamcs parameters, this will always return null.
-
getGenerationTime
Returns an ISO-8601 string -
getReceptionTime
Returns an ISO-8601 string -
getAcquisitionStatus
-
getParameterInfo
-
writeTextFileToBucket
Write a text file to a bucket.Sample use: Yamcs.writeTextFileToBucket("bucketName", "some/file.txt", "Hello!\n");
- Parameters:
bucket- target bucket.objectName- target object name.text- the text to be written to the object.
-