public class AvclScriptCommands extends Object
| Constructor and Description | 
|---|
| AvclScriptCommands() | 
| Modifier and Type | Method and Description | 
|---|---|
| static JAXBElement<?> | createFollowBeaconCmd(String beacon,
                     double timeOut,
                     String description)Generates a FollowBeacon command | 
| static JAXBElement<?> | createHelpCmd(String description)Generates a Help command | 
| static JAXBElement<?> | createMakeHeadingCmd(double setting,
                    String description)Generates a MakeHeading command | 
| static JAXBElement<?> | createMakeKnotsCmd(double setting,
                  boolean speedOverGround,
                  String description)Generates a MakeKnots command | 
| static JAXBElement<?> | createMakeSpeedCmd(double setting,
                  boolean speedOverGround,
                  String description)Generates a MakeSpeed command | 
| static JAXBElement<?> | createMetaCommand(String name,
                 String content,
                 String description)Generates a MetaCommand command | 
| static JAXBElement<?> | createMissionScriptCmd(String path,
                      String description)Generates a MissionScript command | 
| static JAXBElement<?> | createMissionScriptInlineCmd(String path,
                            String description)Generates a MissionScriptInline command | 
| static JAXBElement<?> | createMoveRotateCmd(double setting,
                   String description)Generates a MakeRotate command | 
| static JAXBElement<?> | createQuitCmd(String description)Generates a Quit command | 
| static JAXBElement<?> | createRealtimeCmd(boolean enabled,
                 String description)Generates a Realtime command | 
| static JAXBElement<?> | createSendMessageCmd(String description)Generates a SendMessage command | 
| static JAXBElement<?> | createSetPowerCmd(double setting,
                 String description)Generates a SetPower command with selection ALLPROPELLERS | 
| static JAXBElement<?> | createSetPowerCmd(int whichProp,
                 double setting,
                 String description)Generates a SetPower command | 
| static JAXBElement<?> | createSetRudderCmd(double setting,
                  String description)Generates a SetRudder command | 
| static JAXBElement<?> | createSetStandoffCmd(double setting,
                    String description)Generates a SetStandoff command | 
| static JAXBElement<?> | createSetTimeCmd(double setting,
                String description)Generates a SetTime command | 
| static JAXBElement<PositiveScalarElementType> | createSetTimeStepCmd(double setting,
                    String description)Generates a SetTimeStep command | 
| static JAXBElement<?> | createTraceCmd(boolean enabled,
              String description)Generates a Trace command | 
| static JAXBElement<?> | createWaitCommand(double setting,
                 String description)Generates a Wait command | 
| static JAXBElement<?> | createWaitUntilTimeCmd(double setting,
                      String description)Generates a WaitUntilTime command | 
| static String | getFollowBeaconCmdBeacon(Object cmd)Returns the beacon type field of the FollowBeacon command | 
| static String | getFollowBeaconCmdDescription(Object cmd)Returns the description field of the FollowBeacon command | 
| static double | getFollowBeaconCmdTimeOut(Object cmd)Returns the time out time of the FollowBeacon command | 
| static String | getHelpCmdDescription(Object cmd)Returns the Help command description field | 
| static String | getMakeHeadingCmdDescription(Object cmd)Returns the MakeHeading command description field | 
| static double | getMakeHeadingCmdSetting(Object cmd)Returns the MakeHeading commanded setting | 
| static String | getMakeKnotsCmdDescription(Object cmd)Returns the MakeKnots command description field | 
| static double | getMakeKnotsCmdSetting(Object cmd)Returns the MakeKnots commanded setting | 
| static boolean | getMakeKnotsCmdSpeedOverGround(Object cmd)Returns the value of the MakeKnots command speed over grouond attribute | 
| static String | getMakeSpeedCmdDescription(Object cmd)Returns the MakeSpeed command description field | 
| static double | getMakeSpeedCmdSetting(Object cmd)Returns the MakeSpeed commanded setting | 
| static boolean | getMakeSpeedCmdSpeedOverGround(Object cmd)Returns the value of the MakeSpeed command speed over ground attribute | 
| static String | getMetaCommandContent(Object cmd)Returns the MetaCommand meta data | 
| static String | getMetaCommandDescription(Object cmd)Returns the MetaCommand description field | 
| static String | getMetaCommandName(Object cmd)Returns the MetaCommand meta name | 
| static String | getMissionScriptCmdDescription(Object cmd)Returns the MissionScript command description field | 
| static String | getMissionScriptCmdPath(Object cmd)Returns the MissionScript setting | 
| static String | getMissionScriptInlineCmdDescription(Object cmd)Returns the MissionScriptInline command description field | 
| static String | getMissionScriptInlineCmdPath(Object cmd)Returns the MissionScriptInline setting | 
| static String | getQuitCmdDescription(Object cmd)Returns the Quit command description field | 
| static String | getRealtimeCmdDescription(Object cmd)Returns the Realtime command description field | 
| static boolean | getRealtimeCmdSetting(Object cmd)Returns the Realtime setting | 
| static AvclMessage | getSendMessageCmdContent(Object cmd)Returns the AVCL message portion of the send message command | 
| static String | getSendMessageCmdDescription(Object cmd)Returns the value of the description attribute of the send message command | 
| static String | getSetPowerCmdDescription(Object cmd)Returns the SetPower command description field | 
| static int | getSetPowerCmdPropeller(Object cmd)Returns an integer enumeration representing SetPower commanded propeller | 
| static double | getSetPowerCmdSetting(Object cmd)Returns the SetPower speed setting | 
| static String | getSetRudderCmdDescription(Object cmd)Returns the SetRudder command description field | 
| static double | getSetRudderCmdSetting(Object cmd)Returns the SetRudder commanded setting | 
| static String | getSetStandoffCmdDescription(Object cmd)Returns the Standoff command description field | 
| static double | getSetStandoffCmdSetting(Object cmd)Returns the Standoff commanded setting | 
| static String | getSetTimeCmdDescription(Object cmd)Returns the SetTime command description field | 
| static double | getSetTimeCmdSetting(Object cmd)Returns the SetTime commanded setting | 
| static String | getSetTimeStepCmdDescription(Object cmd)Returns the SetTimeStep command description field | 
| static double | getSetTimeStepCmdSetting(Object cmd)Returns the SetTimeStep commanded setting | 
| static String | getTraceCmdDescription(Object cmd)Returns the Trace command description field | 
| static boolean | getTraceCmdSetting(Object cmd)Returns the Trace setting | 
| static String | getWaitCmdDescription(Object cmd)Returns the Wait command description field | 
| static double | getWaitCommandSetting(Object cmd)Returns the Wait commanded setting | 
| static String | getWaitUntilTimeCmdDescription(Object cmd)Returns the WaitUntilTime command description field | 
| static double | getWaitUntilTimeCmdSetting(Object cmd)Returns the WaitUntilTime value | 
| static String | noValueFilter(double d)A method to eliminate the display of the "NOVALUE" parameter in dialogs | 
| static String | noValueFilter(int i)A method to eliminate the display of the "NOVALUE" parameter in dialogs | 
| static void | setFollowBeaconCmdBeacon(Object cmd,
                        String newValue)Sets the beacon type value of a FollowBeacon command | 
| static void | setFollowBeaconCmdDescription(Object cmd,
                             String newValue)Sets the description value of a FollowBeacon command | 
| static void | setFollowBeaconCmdTimeOut(Object cmd,
                         double newValue)Sets the time out time of the FollowBeacon command | 
| static void | setHelpCmdDescription(Object cmd,
                     String description)Sets the Help command description field | 
| static void | setMakeHeadingCmdDescription(Object cmd,
                            String description)Sets the MakeHeading command description field | 
| static void | setMakeHeadingCmdSetting(Object cmd,
                        double setting)Sets the MakeHeading commanded setting | 
| static void | setMakeKnotsCmdDescription(Object cmd,
                          String description)Sets the MakeKnots command description field | 
| static void | setMakeKnotsCmdSetting(Object cmd,
                      double setting)Sets the MakeKnots commanded setting | 
| static void | setMakeKnotsCmdSpeedOverGround(Object cmd,
                              boolean setting)Sets the speed over ground attribute of the MakeSpeed command | 
| static void | setMakeSpeedCmdDescription(Object cmd,
                          String description)Sets the MakeSpeed command description field | 
| static void | setMakeSpeedCmdSetting(Object cmd,
                      double setting)Sets the MakeSpeed commanded setting | 
| static void | setMakeSpeedCmdSpeedOverGround(Object cmd,
                              boolean setting)Sets the speed over ground attribute of the MakeSpeed command | 
| static void | setMetaCommandContent(Object cmd,
                     String content)Sets the MetaCommand meta data content | 
| static void | setMetaCommandDescription(Object cmd,
                         String description)Sets the MetaCommand description field | 
| static void | setMetaCommandName(Object cmd,
                  String name)Sets the MetaCommand meta data name | 
| static void | setMissionScriptCmdDescription(Object cmd,
                              String description)Sets the MissionScript command description field | 
| static void | setMissionScriptCmdPath(Object cmd,
                       String path)Sets the MissionScript commanded setting | 
| static void | setMissionScriptInlineCmdDescription(Object cmd,
                                    String description)Sets the MissionScriptInline command description field | 
| static void | setMissionScriptInlineCmdPath(Object cmd,
                             String path)Sets the MissionScriptInline commanded setting | 
| static void | setMoveRotateCmdDescription(Object cmd,
                           String description)Sets the MoveRotate command description field | 
| static void | setMoveRotateCmdSetting(Object cmd,
                       double setting)Sets the MoveRotate commanded setting - TODO test | 
| static void | setQuitCmdDescription(Object cmd,
                     String description)Sets the Quit command description field | 
| static void | setRealtimeCmdDescription(Object cmd,
                         String description)Sets the Realtime command description field | 
| static void | setRealtimeCmdSetting(Object cmd,
                     boolean setting)Sets the Realtime commanded setting | 
| static void | setSendMessageCmdContent(Object cmd,
                        AvclMessage msg)Sets the message data of the send message command | 
| static void | setSendMessageCmdDescription(Object cmd,
                            String description)Sets the description attribute of a send message command | 
| static void | setSetPowerCmdDescription(Object cmd,
                         String description)Sets the SetPower command description field | 
| static void | setSetPowerCmdSetting(Object cmd,
                     int which,
                     double newValue)Sets the propeller to be commanded by this SetPower command | 
| static void | setSetRudderCmdDescription(Object cmd,
                          String description)Sets the SetRudder command description field | 
| static void | setSetRudderCmdSetting(Object cmd,
                      double setting)Sets the SetRudder commanded setting | 
| static void | setSetStandoffCmdDescription(Object cmd,
                            String description)Sets the Standoff command description field | 
| static void | setSetStandoffCmdSetting(Object cmd,
                        double setting)Sets the Standoff commanded setting | 
| static void | setSetTimeCmdDescription(Object cmd,
                        String description)Sets the SetTime command description field | 
| static void | setSetTimeCmdSetting(Object cmd,
                    double setting)Sets the SetTime commanded setting | 
| static void | setSetTimeStepCmdDescription(Object cmd,
                            String description)Sets the SetTimeStep command description field | 
| static void | setSetTimeStepCmdSetting(Object cmd,
                        double setting)Sets the SetTimeStep commanded setting | 
| static void | setTraceCmdDescription(Object cmd,
                      String description)Sets the Trace command description field | 
| static void | setTraceCmdSetting(Object cmd,
                  boolean setting)Sets the Trace commanded setting | 
| static void | setWaitCmdDescription(Object cmd,
                     String description)Sets the Wait command description field | 
| static void | setWaitCmdSetting(Object cmd,
                 double setting)Sets the Wait commanded setting | 
| static void | setWaitUntilTimeCmdDescription(Object cmd,
                              String description)Sets the WaitUntilTime command description field | 
| static void | setWaitUntilTimeCmdSetting(Object cmd,
                          double setting)Sets the WaitUntilTime commanded setting | 
| protected static String | valueOrEmptyString(String value)String utility to return empty string "" instead of null | 
protected static String valueOrEmptyString(String value)
public static String noValueFilter(double d)
d - public static String noValueFilter(int i)
i - public static JAXBElement<?> createQuitCmd(String description)
description - of the quit commandpublic static String getQuitCmdDescription(Object cmd)
cmd - the quit commandpublic static void setQuitCmdDescription(Object cmd, String description)
cmd - the quit command to setdescription - of the quit commandpublic static JAXBElement<?> createSendMessageCmd(String description)
description - of the send message commandpublic static AvclMessage getSendMessageCmdContent(Object cmd)
cmd - object to retrieve content frompublic static String getSendMessageCmdDescription(Object cmd)
cmd - object to retrieve content frompublic static void setSendMessageCmdContent(Object cmd, AvclMessage msg)
cmd - the object to set with an AvclMessagemsg - data of the send message commandpublic static void setSendMessageCmdDescription(Object cmd, String description)
cmd - the object to set the description fordescription - attribute of a send message commandpublic static JAXBElement<?> createMetaCommand(String name, String content, String description)
name - of the meta commandcontent - for the meta commanddescription - of the meta commandpublic static String getMetaCommandName(Object cmd)
cmd - the meta command objectpublic static String getMetaCommandContent(Object cmd)
cmd - the meta command objectpublic static String getMetaCommandDescription(Object cmd)
cmd - the meta command objectpublic static void setMetaCommandName(Object cmd, String name)
cmd - the meta command objectname - to set for the meta command objectpublic static void setMetaCommandContent(Object cmd, String content)
cmd - the meta command objectcontent - the data for the meta command objectpublic static void setMetaCommandDescription(Object cmd, String description)
cmd - the meta command objectdescription - for the meta command objectpublic static JAXBElement<?> createWaitCommand(double setting, String description)
setting - the value of the wait settingdescription - of the wait settingpublic static double getWaitCommandSetting(Object cmd)
cmd - the wait command objectpublic static String getWaitCmdDescription(Object cmd)
cmd - the wait command objectpublic static void setWaitCmdSetting(Object cmd, double setting)
cmd - the wait command objectsetting - for the wait commandpublic static void setWaitCmdDescription(Object cmd, String description)
cmd - the wait command objectdescription - of the wait commandpublic static JAXBElement<?> createWaitUntilTimeCmd(double setting, String description)
setting - for the WaitUntilTime commanddescription - of the WaitUntilTime commandpublic static double getWaitUntilTimeCmdSetting(Object cmd)
cmd - the WaitUntilTime commandpublic static String getWaitUntilTimeCmdDescription(Object cmd)
cmd - the WaitUntilTime commandpublic static void setWaitUntilTimeCmdSetting(Object cmd, double setting)
cmd - the WaitUntilTime commandsetting - for the WaitUntilTime commandpublic static void setWaitUntilTimeCmdDescription(Object cmd, String description)
cmd - the WaitUntilTime commanddescription - for the WaitUntilTime commandpublic static JAXBElement<?> createHelpCmd(String description)
description - for the Help commandpublic static String getHelpCmdDescription(Object cmd)
cmd - the Help commandpublic static void setHelpCmdDescription(Object cmd, String description)
cmd - the Help commanddescription - for the Help commandpublic static JAXBElement<?> createMakeSpeedCmd(double setting, boolean speedOverGround, String description)
setting - for the MakeSpeed commandspeedOverGround - for MakeSpeed commanddescription - of the MakeSpeed commandpublic static double getMakeSpeedCmdSetting(Object cmd)
cmd - the MakeSpeed commandpublic static boolean getMakeSpeedCmdSpeedOverGround(Object cmd)
cmd - MakeSpeed commandpublic static String getMakeSpeedCmdDescription(Object cmd)
cmd - MakeSpeed commandpublic static void setMakeSpeedCmdSetting(Object cmd, double setting)
cmd - the MakeSpeed commandsetting - the MakeSpeed command settingpublic static void setMakeSpeedCmdSpeedOverGround(Object cmd, boolean setting)
cmd - the MakeSpeed commandsetting - the MakeSpeed command for speed over the groundpublic static void setMakeSpeedCmdDescription(Object cmd, String description)
cmd - the MakeSpeed commanddescription - of the MakeSpeed commandpublic static JAXBElement<?> createMakeKnotsCmd(double setting, boolean speedOverGround, String description)
setting - for the MakeKnots commandspeedOverGround - if desired, set to truedescription - for the MakeKnots commandpublic static double getMakeKnotsCmdSetting(Object cmd)
cmd - the MakeKnots commandpublic static boolean getMakeKnotsCmdSpeedOverGround(Object cmd)
cmd - the MakeKnots commandpublic static String getMakeKnotsCmdDescription(Object cmd)
cmd - the MakeKnots commandpublic static void setMakeKnotsCmdSetting(Object cmd, double setting)
cmd - the the MakeKnots commandsetting - for the MakeKnots commandpublic static void setMakeKnotsCmdSpeedOverGround(Object cmd, boolean setting)
cmd - the MakeKnots commandsetting - true if speed over the ground is desiredpublic static void setMakeKnotsCmdDescription(Object cmd, String description)
cmd - the MakeKnots commanddescription - of the MakeKnots commandpublic static JAXBElement<?> createFollowBeaconCmd(String beacon, double timeOut, String description)
beacon - of the FollowBeacon commandtimeOut - of the FollowBeacon commanddescription - of the FollowBeacon commandpublic static String getFollowBeaconCmdBeacon(Object cmd)
cmd - the FollowBeacon commandpublic static double getFollowBeaconCmdTimeOut(Object cmd)
cmd - the FollowBeacon commandpublic static String getFollowBeaconCmdDescription(Object cmd)
cmd - the FollowBeacon commandpublic static void setFollowBeaconCmdBeacon(Object cmd, String newValue)
cmd - the FollowBeacon commandnewValue - the beacon type value of the FollowBeacon commandpublic static void setFollowBeaconCmdTimeOut(Object cmd, double newValue)
cmd - the FollowBeacon commandnewValue - the timeout of the FollowBeacon commandpublic static void setFollowBeaconCmdDescription(Object cmd, String newValue)
cmd - the FollowBeacon commandnewValue - the description of the FollowBeacon commandpublic static JAXBElement<?> createMakeHeadingCmd(double setting, String description)
setting - of the MakeHeading commanddescription - of the MakeHeading commandpublic static double getMakeHeadingCmdSetting(Object cmd)
cmd - the MakeHeading commandpublic static String getMakeHeadingCmdDescription(Object cmd)
cmd - the MakeHeading commandpublic static void setMakeHeadingCmdSetting(Object cmd, double setting)
cmd - the MakeHeading commandsetting - the MakeHeading command settingpublic static void setMakeHeadingCmdDescription(Object cmd, String description)
cmd - the MakeHeading commanddescription - of the MakeHeading commandpublic static JAXBElement<?> createMissionScriptCmd(String path, String description)
path - for the MissionScript commanddescription - of the MissionScript commandpublic static String getMissionScriptCmdPath(Object cmd)
cmd - the MissionScript commandpublic static String getMissionScriptCmdDescription(Object cmd)
cmd - the MissionScript commandpublic static void setMissionScriptCmdPath(Object cmd, String path)
cmd - the MissionScript commandpath - of the MissionScript commandpublic static void setMissionScriptCmdDescription(Object cmd, String description)
cmd - the MissionScript commanddescription - of the MissionScript commandpublic static JAXBElement<?> createMissionScriptInlineCmd(String path, String description)
path - of the MissionScriptInline commanddescription - of the MissionScriptInline commandpublic static String getMissionScriptInlineCmdPath(Object cmd)
cmd - the MissionScriptInline commandpublic static String getMissionScriptInlineCmdDescription(Object cmd)
cmd - the MissionScriptInline commandpublic static void setMissionScriptInlineCmdPath(Object cmd, String path)
cmd - the MissionScriptInline commandpath - of the MissionScriptInline commandpublic static void setMissionScriptInlineCmdDescription(Object cmd, String description)
cmd - the MissionScriptInline commanddescription - of the MissionScriptInline commandpublic static JAXBElement<?> createRealtimeCmd(boolean enabled, String description)
enabled - the Realtime commanddescription - of the Realtime commandpublic static boolean getRealtimeCmdSetting(Object cmd)
cmd - the Realtime commandpublic static String getRealtimeCmdDescription(Object cmd)
cmd - the Realtime commandpublic static void setRealtimeCmdSetting(Object cmd, boolean setting)
cmd - the Realtime commandsetting - for the Realtime commandpublic static void setRealtimeCmdDescription(Object cmd, String description)
cmd - the Realtime commanddescription - of the Realtime commandpublic static JAXBElement<?> createSetStandoffCmd(double setting, String description)
setting - for the SetStandoff commanddescription - of the SetStandoff commandpublic static double getSetStandoffCmdSetting(Object cmd)
cmd - the Standoff commandpublic static String getSetStandoffCmdDescription(Object cmd)
cmd - the Standoff commandpublic static void setSetStandoffCmdSetting(Object cmd, double setting)
cmd - the Standoff commandsetting - for the Standoff commandpublic static void setSetStandoffCmdDescription(Object cmd, String description)
cmd - the Standoff commanddescription - of the Standoff commandpublic static JAXBElement<?> createSetTimeCmd(double setting, String description)
setting - for the SetTime commanddescription - of the SetTime commandpublic static double getSetTimeCmdSetting(Object cmd)
cmd - the SetTime commandpublic static String getSetTimeCmdDescription(Object cmd)
cmd - the SetTime commandpublic static void setSetTimeCmdSetting(Object cmd, double setting)
cmd - the SetTime commandsetting - for the SetTime commandpublic static void setSetTimeCmdDescription(Object cmd, String description)
cmd - the SetTime commanddescription - of the SetTime commandpublic static JAXBElement<PositiveScalarElementType> createSetTimeStepCmd(double setting, String description)
setting - for the SetTimeStep commanddescription - of the SetTimeStep commandpublic static double getSetTimeStepCmdSetting(Object cmd)
cmd - the SetTimeStep commandpublic static String getSetTimeStepCmdDescription(Object cmd)
cmd - the SetTimeStep commandpublic static void setSetTimeStepCmdSetting(Object cmd, double setting)
cmd - the SetTimeStep commandsetting - for the SetTimeStep commandpublic static void setSetTimeStepCmdDescription(Object cmd, String description)
cmd - the SetTimeStep commanddescription - for the SetTimeStep commandpublic static JAXBElement<?> createTraceCmd(boolean enabled, String description)
enabled - the Trace commanddescription - for the Trace commandpublic static boolean getTraceCmdSetting(Object cmd)
cmd - the Trace commandpublic static String getTraceCmdDescription(Object cmd)
cmd - the Trace commandpublic static void setTraceCmdSetting(Object cmd, boolean setting)
cmd - the Trace commandsetting - for the Trace commandpublic static void setTraceCmdDescription(Object cmd, String description)
cmd - the Trace commanddescription - for the Trace commandpublic static JAXBElement<?> createSetPowerCmd(double setting, String description)
setting - for the propellerdescription - of the set power commandpublic static JAXBElement<?> createSetPowerCmd(int whichProp, double setting, String description)
whichProp - left, or rightsetting - for the propellerdescription - of the set power commandpublic static int getSetPowerCmdPropeller(Object cmd)
cmd - the SetPower commandpublic static double getSetPowerCmdSetting(Object cmd)
cmd - the SetPower commandpublic static String getSetPowerCmdDescription(Object cmd)
cmd - the SetPower commandpublic static void setSetPowerCmdSetting(Object cmd, int which, double newValue)
cmd - the SetPower commandwhich - propellernewValue - setting for a propellerpublic static void setSetPowerCmdDescription(Object cmd, String description)
cmd - the SetPower commanddescription - of the SetPower commandpublic static JAXBElement<?> createSetRudderCmd(double setting, String description)
setting - the value of the rudder settingdescription - the description of this rudder settingpublic static double getSetRudderCmdSetting(Object cmd)
cmd - the SetRudder commandpublic static String getSetRudderCmdDescription(Object cmd)
cmd - a SetRudder commandpublic static void setSetRudderCmdSetting(Object cmd, double setting)
cmd - the SetRudder commandsetting - for the SetRudder commandpublic static void setSetRudderCmdDescription(Object cmd, String description)
cmd - the SetRudder commanddescription - of the SetRudder commandpublic static void setMoveRotateCmdSetting(Object cmd, double setting)
cmd - the MoveRotate commandsetting - for the MoveRotate commandpublic static JAXBElement<?> createMoveRotateCmd(double setting, String description)
setting - for the MoveRotate commanddescription - for the MoveRotate command