public class AUVWorkbenchConfig extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_XMLFILE |
Constructor and Description |
---|
AUVWorkbenchConfig()
constructor; just initialize local variables
|
AUVWorkbenchConfig(String fXML)
constructor
|
Modifier and Type | Method and Description |
---|---|
int |
addVehicleTypes(File skeleton)
Add a type (temporarily);
|
boolean |
browseTo(String url) |
ConfigApp |
getApp(String nm) |
List<ConfigApp> |
getAppList()
return list of Toolbar applications specified in configuration file
|
AUV |
getAttributesForAUV(Node aNode,
String[] sArr)
extract AUV information (XML Attributes) into a AUV object
|
Hotkey |
getAttributesForHotKey(Node aNode,
String[] sArr,
String sData)
extract hotkeys information from
|
void |
getAttributesForJabber(Node aNode,
String[] sArr)
extract Jabber information from
|
void |
getAttributesForWeb(Node aNode,
String[] sArr)
extract web server information from
|
int |
getBaudrate()
get baudrate
|
List<String> |
getBrowserList()
return list of browsers specified in configuration file
|
int |
getDataBits()
get data bits
|
String |
getDefaultVehicleType(int typ)
Method for determining default: look for the first one that matches the type id
|
String |
getDirModel()
get the directory location for Models
|
String |
getDirScript()
get the directory location for Scripts
|
boolean |
getDisplayInBrowser()
whether to display in browser or Xj3D
|
String |
getDynamicsDir()
return directory of Dynamics
This is the working directory ("user.dir") when launching dynamics process
It doesn't need to be the directory of the dynamics classes, nor should it be.
|
String |
getDynamicsFilename()
return filename of Dynamics
|
String |
getDynamicsPath()
return full path of Dynamics
|
String |
getExecutionCDir()
return directory of Execution C
|
String |
getExecutionCFilename()
return filename of Execution C
|
String |
getExecutionCPath()
return full path of Execution C
|
String |
getExecutionJavaDirMUNITION() |
String |
getExecutionJavaDirUAV()
return directory of Execution Java
|
String |
getExecutionJavaDirUGV()
return directory of Execution Java
|
String |
getExecutionJavaDirUSV()
return directory of Execution Java
|
String |
getExecutionJavaDirUUV()
return directory of Execution Java
|
String |
getExecutionJavaFilenameMUNITION() |
String |
getExecutionJavaFilenameUAV()
return filename of Execution Java
|
String |
getExecutionJavaFilenameUGV()
return filename of Execution Java
|
String |
getExecutionJavaFilenameUSV()
return filename of Execution Java
|
String |
getExecutionJavaFilenameUUV()
return filename of Execution Java
|
String |
getExecutionJavaPathUAV()
return full path of Execution Java
|
String |
getExecutionJavaPathUGV()
return full path of Execution Java
|
String |
getExecutionJavaPathUSV()
return full path of Execution Java
|
String |
getExecutionJavaPathUUV()
return full path of Execution Java
|
String |
getExecutionNoThrusterJavaDir()
return directory of Execution (No Thruster) Java
|
String |
getExecutionNoThrusterJavaFilename()
return filename of Execution (No Thruster) Java
|
boolean |
getHandshake()
get handshake
|
List<Hotkey> |
getHotKeyList()
return list of Hotkeys specified in configuration file
|
String |
getIMDirIn()
get the directory to store incoming binary data.
|
String |
getIMDirOut()
get the directory to store outgoing binary data
(e.g. encoded data in Jabber XHTML message)
|
String |
getIMDomain()
get the Jabber logon domain
|
String |
getIMJID()
get the Jabber ID to listen to upon connection
|
String |
getIMNickName()
get the Jabber user nickname
|
int |
getIMPort()
get Jabber port no.
|
String |
getIMResource()
get the Jabber user resource
|
String |
getIMUserName()
get the Jabber user name
|
boolean |
getModemInitialized()
whether the serial (acoustic) modem has been initialized
|
boolean |
getParity()
get parity
|
boolean |
getSerialCommsEnabled()
whether the serial communications are enabled for this application
|
String |
getSerialPort()
get serial port
|
boolean |
getSonarVisEnabled()
whether sonar visualization panel is enabled
|
int |
getStopBits()
get stop bits
|
Set<String> |
getSupportedVehicles()
returns a set (Strings) of all of the vehicles for which config files
have been specified
|
String |
getVehicleControlFilename(String vehicle) |
String |
getVehicleDisplayName(String vehicleName) |
String |
getVehicleDynamicsFilename(String vehicle) |
int |
getVehicleIntTypeFromModel(String specialName) |
String |
getVehicleType(String vehicle) |
boolean |
getWebAutoStart()
get web server autostart flag
|
String |
getWebDocRoot()
get web server document root
|
int |
getWebPort()
get web server port no.
|
String |
getWebUpload()
get web server upload directory
|
void |
loadXML(File file,
AUVWorkbenchConfig cfg)
load mission script from a XML file
|
void |
mailTo(String addr,
String subj,
String cont) |
boolean |
runApp(String app,
String[] params) |
boolean |
runApp(String app,
String[] params,
boolean waitFor) |
boolean |
runApp(String app,
String[] params,
boolean waitFor,
String workingDir) |
void |
saveXML(String filename)
save mission script to a XML file
|
void |
setBaudrate(int newValue)
sets the serial communications baudrate
|
void |
setBrowserList(List<String> aLst)
set list of Browser to be written in configuration file
|
void |
setDataBits(int newValue)
sets the serial communications data bits
|
void |
setDirModel(String aDir)
set the directory location for Models
|
void |
setDirScript(String aDir)
set the directory location for Scripts
|
void |
setDisplayInBrowser(boolean newValue)
whether to display in browser or Xj3D
|
void |
setHandshake(boolean newValue)
sets the serial communications handshake
|
void |
setIMDirIn(String sDir)
set the directory to store incoming binary data.
|
void |
setIMDirOut(String sDir)
set the directory to store outgoing binary data
(e.g. encoded data in Jabber XHTML message)
|
void |
setIMDomain(String sDomain)
set the Jabber logon domain
|
void |
setIMJID(String sJID)
set the Jabber ID to listen to upon connection
|
void |
setIMNickName(String sNick)
set the Jabber user nickname
|
void |
setIMPort(int iPort)
set Jabber port no.
|
void |
setIMResource(String sResource)
set the Jabber user resource
|
void |
setIMUserName(String sName)
set the Jabber user name
|
void |
setModemInitialized(boolean newValue)
sets whether the serial (acoustic) modem has been initialized
|
void |
setParity(boolean newValue)
sets the serial communications parity
|
void |
setSerialCommsEnabled(boolean newValue)
sets whether the serial communications are enabled for this application
|
void |
setSerialPort(String newValue)
sets the serial communications port name
|
void |
setStopBits(int newValue)
sets the serial communications stop bits
|
void |
show() |
String |
toString() |
void |
writeLn(String aStr)
write a line to console
|
public static final String DEFAULT_XMLFILE
public AUVWorkbenchConfig()
public AUVWorkbenchConfig(String fXML)
fXML
- XML to be loadedpublic int getVehicleIntTypeFromModel(String specialName)
public String getDefaultVehicleType(int typ)
typ
- = = UAV, 1 = UUV, etc. (look in Dynamics)public Set<String> getSupportedVehicles()
public String getDirModel()
public void setDirModel(String aDir)
aDir
- directory to be setpublic String getDirScript()
public void setDirScript(String aDir)
aDir
- directory to be setpublic String getDynamicsDir()
public String getDynamicsFilename()
public String getDynamicsPath()
public String getExecutionJavaDirUUV()
public String getExecutionJavaFilenameUUV()
public String getExecutionNoThrusterJavaDir()
public String getExecutionNoThrusterJavaFilename()
public String getExecutionJavaDirUGV()
public String getExecutionJavaFilenameUGV()
public String getExecutionJavaDirUSV()
public String getExecutionJavaFilenameUSV()
public String getExecutionJavaDirUAV()
public String getExecutionJavaFilenameUAV()
public String getExecutionJavaDirMUNITION()
public String getExecutionJavaFilenameMUNITION()
public String getExecutionJavaPathUUV()
public String getExecutionJavaPathUGV()
public String getExecutionJavaPathUSV()
public String getExecutionJavaPathUAV()
public String getExecutionCDir()
public String getExecutionCFilename()
public String getExecutionCPath()
public boolean getDisplayInBrowser()
public boolean getSonarVisEnabled()
public boolean getModemInitialized()
public boolean getSerialCommsEnabled()
public String getSerialPort()
public int getBaudrate()
public int getDataBits()
public int getStopBits()
public boolean getParity()
public boolean getHandshake()
public List<Hotkey> getHotKeyList()
public String getIMDirIn()
public void setModemInitialized(boolean newValue)
newValue
- Boolean newValuepublic void setSerialCommsEnabled(boolean newValue)
newValue
- public void setSerialPort(String newValue)
newValue
- public void setBaudrate(int newValue)
newValue
- public void setDataBits(int newValue)
newValue
- public void setStopBits(int newValue)
newValue
- public void setParity(boolean newValue)
newValue
- public void setHandshake(boolean newValue)
newValue
- public void setDisplayInBrowser(boolean newValue)
newValue
- valuepublic void setIMDirIn(String sDir)
sDir
- String valuepublic String getIMDirOut()
public void setIMDirOut(String sDir)
sDir
- String valuepublic String getIMDomain()
public void setIMDomain(String sDomain)
sDomain
- String valuepublic String getIMJID()
public void setIMJID(String sJID)
sJID
- String valuepublic String getIMUserName()
public void setIMUserName(String sName)
sName
- String valuepublic String getIMNickName()
public void setIMNickName(String sNick)
sNick
- String valuepublic int getIMPort()
public void setIMPort(int iPort)
iPort
- numeric valuepublic String getIMResource()
public void setIMResource(String sResource)
sResource
- String valuepublic boolean getWebAutoStart()
public int getWebPort()
public String getWebDocRoot()
public String getWebUpload()
public List<ConfigApp> getAppList()
public boolean browseTo(String url)
public List<String> getBrowserList()
public void setBrowserList(List<String> aLst)
aLst
- list of Browserpublic int addVehicleTypes(File skeleton)
skeleton
- vehicle file containing vehicle idpublic void loadXML(File file, AUVWorkbenchConfig cfg)
file
- file to be loaded fromcfg
- public void saveXML(String filename)
filename
- file to be loaded frompublic AUV getAttributesForAUV(Node aNode, String[] sArr)
aNode
- affected nodesArr
- list of attributespublic Hotkey getAttributesForHotKey(Node aNode, String[] sArr, String sData)
aNode
- affected nodesArr
- list of attributessData
- data string (stored in node value)public void getAttributesForWeb(Node aNode, String[] sArr)
aNode
- affected nodesArr
- list of attributespublic void getAttributesForJabber(Node aNode, String[] sArr)
aNode
- affected nodesArr
- list of attributespublic void show()
public void writeLn(String aStr)
aStr
- line to be written to console