Package org.yamcs.studio.script
Class Yamcs
java.lang.Object
org.yamcs.studio.script.Yamcs
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
static String
getGenerationTime
(IPV pv) Returns an ISO-8601 stringstatic String
Returns the "monitoring result" of a Yamcs parameter.static ParameterInfo
getParameterInfo
(IPV pv) static String
getReceptionTime
(IPV pv) Returns an ISO-8601 stringstatic void
issueCommand
(String commandText) Sample use: Yamcs.issueCommand('/YSS/SIMULATOR/SWITCH_VOLTAGE_ON(voltage_num: 1)');static void
issueCommand
(String command, Map<String, Object> args) Sample use: Yamcs.issueCommand('/YSS/SIMULATOR/SWITCH_VOLTAGE_ON', {"voltage_num": 1});static void
runCommandStack
(String path) static void
runCommandStack
(String path, AbstractBaseEditPart widget) static void
runProcedure
(String procedure) Submit a SPELL procedure.static void
runProcedure
(String procedure, Map<String, Object> args) Submit a SPELL procedure with arguments.static void
writeTextFileToBucket
(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.
-