|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectkaos.robots.core.test.RobotClient
public class RobotClient
| Nested Class Summary | |
|---|---|
class |
RobotClient.StreamGobbler
This class is used to handle the output from spawned processes * |
| Field Summary | |
|---|---|
protected javax.swing.JTextField |
_attachment
|
protected java.lang.String |
_basePath
|
ActionStatusCallbackImpl |
_cbl
|
protected RobotClient |
_client
|
protected javax.swing.JCheckBox |
_connectCB
|
protected boolean |
_connectedToRobot
|
protected double |
_currentHdg
|
protected javax.swing.JTextField |
_destination
|
protected javax.swing.JTextField |
_domainTF
|
protected javax.swing.JTextField |
_fileNameTF
|
protected double |
_goalDist
|
protected double |
_goalHdg
|
protected javax.swing.JTextField |
_gpsCommPort
|
protected javax.swing.JTextField |
_gpsOriginTF
|
protected javax.swing.JCheckBox |
_guiCB
|
protected javax.swing.JTextField |
_hostTF
|
protected Logger |
_logger
|
protected javax.swing.JTextField |
_lrbX
|
protected javax.swing.JTextField |
_lrbY
|
protected javax.swing.JTextField |
_mapTF
|
protected javax.swing.JTextField |
_maxSpeedTF
|
protected javax.swing.JTextField |
_moveRelX
|
protected javax.swing.JTextField |
_moveRelY
|
protected javax.swing.JTextField |
_moveToName
|
protected javax.swing.JTextField |
_moveToPose
|
protected javax.swing.JTextField |
_msg
|
protected javax.swing.JTextField |
_nameTF
|
protected javax.swing.JCheckBox |
_newJVMCB
|
protected javax.swing.JTextField |
_originTF
|
protected javax.swing.JTextField |
_phraseTF
|
protected javax.swing.JTextField |
_pictureParameters
|
protected Plotter |
_plotter
|
protected KAoSPlotterPanel |
_plotterPanel
|
protected javax.swing.JTextField |
_portTF
|
protected javax.swing.JCheckBox |
_registerCB
|
protected ExecutionManager |
_selectedRobot
|
protected javax.swing.JTextField |
_setPose
|
protected javax.swing.JTextField |
_sonarRangeTF
|
protected javax.swing.JTextField |
_sonarTurnRateTF
|
protected javax.swing.JCheckBox |
_spatialReasoningCB
|
protected javax.swing.JTextField |
_subject
|
protected javax.swing.JTabbedPane |
_tabPane
|
protected javax.swing.JCheckBox |
_targetCB
|
protected double |
_testX
|
protected double |
_testY
|
protected javax.swing.JTextField |
_timeoutTF
|
protected double |
_turnHdg
|
protected javax.swing.JTextField |
_ulbX
|
protected javax.swing.JTextField |
_ulbY
|
protected javax.swing.JCheckBox |
_useGPSHeadingCB
|
protected java.lang.String |
recvMsg
|
| Constructor Summary | |
|---|---|
RobotClient()
|
|
RobotClient(java.lang.String[] args)
|
|
| Method Summary | |
|---|---|
void |
clearPolygon()
|
void |
createRobot(java.lang.String robotClass,
java.lang.String[] args)
|
void |
doubleClicked()
|
Viewer |
getImageViewer()
|
ExecutionManager |
getLocalRobotExecMgr(java.lang.String robotName)
|
Plotter |
getPlotter()
|
java.util.Vector<Point2d> |
getPolygon()
|
java.lang.Object |
getReceiver(java.lang.String id)
|
Area |
getSelectedArea()
|
Coordinate |
getSelectedCoordinate()
|
java.util.HashMap |
getSelectedRecievers()
|
java.util.Vector |
getSelectedRobots()
|
void |
hidePath()
|
void |
init()
|
void |
keyPressed(java.awt.event.KeyEvent evt)
|
void |
keyReleased(java.awt.event.KeyEvent evt)
|
void |
keyTyped(java.awt.event.KeyEvent evt)
|
static void |
main(java.lang.String[] args)
|
void |
mouseClicked(java.awt.event.MouseEvent e)
|
void |
mouseEntered(java.awt.event.MouseEvent e)
|
void |
mouseExited(java.awt.event.MouseEvent e)
|
void |
mousePressed(java.awt.event.MouseEvent e)
|
void |
mouseReleased(java.awt.event.MouseEvent e)
|
void |
onAborted(java.util.Calendar time,
java.lang.Object reason)
This method is invoked when the requested action is aborted. |
void |
onAborted(java.util.Calendar time,
java.lang.Object reason,
java.lang.String actionID,
java.lang.String robotID)
This method is invoked when the requested action is aborted. |
void |
onAccepted(java.util.Calendar time,
java.lang.Object acceptInfo)
This method is invoked when the request is accepted by the receiver. |
void |
onAccepted(java.util.Calendar time,
java.lang.Object acceptInfo,
java.lang.String actionID,
java.lang.String robotID)
This method is invoked when the request is accepted by the robot. |
void |
onCompleted(java.util.Calendar time,
java.lang.Object result)
This method is invoked upon completion of the request. |
void |
onCompleted(java.util.Calendar time,
java.lang.Object result,
java.lang.String actionID,
java.lang.String robotID)
This method is invoked upon completion of the request byt the requested robot. |
void |
onRefused(java.util.Calendar time,
java.lang.Object reason)
This method is invoked when the request is refused by the receiver. |
void |
onRefused(java.util.Calendar time,
java.lang.Object reason,
java.lang.String actionID,
java.lang.String robotID)
This method is invoked when the request is refused by the robot. |
void |
onStarted(java.util.Calendar time,
java.lang.Object startedInfo)
This method is invoked when the requested action starts. |
void |
onStarted(java.util.Calendar time,
java.lang.Object startedInfo,
java.lang.String actionID,
java.lang.String robotID)
This method is invoked when the robot starts the requested action. |
protected void |
printDebugString(java.lang.String msg,
int loggerDisplayLevel)
|
void |
receiveKAoSStatus(java.lang.String statusMsg,
java.lang.String actionID,
java.lang.String robotID)
Receive a status message describing the execution of the requested action. |
void |
reset()
Reset callback settings. |
void |
sendCommand(java.lang.String actionName,
java.util.HashMap properties)
|
void |
setDatum(java.lang.String gpsString)
|
void |
showPath(java.util.Vector path)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected RobotClient _client
protected ExecutionManager _selectedRobot
protected Logger _logger
protected javax.swing.JTextField _moveToName
protected javax.swing.JTextField _moveToPose
protected javax.swing.JTextField _moveRelX
protected javax.swing.JTextField _moveRelY
protected javax.swing.JTextField _setPose
protected javax.swing.JTextField _pictureParameters
protected javax.swing.JTextField _destination
protected javax.swing.JTextField _subject
protected javax.swing.JTextField _msg
protected javax.swing.JTextField _attachment
protected javax.swing.JTextField _fileNameTF
protected javax.swing.JTextField _phraseTF
protected javax.swing.JTextField _ulbX
protected javax.swing.JTextField _ulbY
protected javax.swing.JTextField _lrbX
protected javax.swing.JTextField _lrbY
protected javax.swing.JTextField _originTF
protected javax.swing.JTextField _sonarRangeTF
protected javax.swing.JTextField _mapTF
protected java.lang.String recvMsg
protected double _goalHdg
protected double _turnHdg
protected double _goalDist
protected boolean _connectedToRobot
protected double _testX
protected double _testY
protected double _currentHdg
protected java.lang.String _basePath
public ActionStatusCallbackImpl _cbl
protected Plotter _plotter
protected javax.swing.JCheckBox _targetCB
protected javax.swing.JCheckBox _newJVMCB
protected javax.swing.JCheckBox _guiCB
protected javax.swing.JCheckBox _connectCB
protected javax.swing.JCheckBox _registerCB
protected javax.swing.JCheckBox _useGPSHeadingCB
protected javax.swing.JCheckBox _spatialReasoningCB
protected javax.swing.JTabbedPane _tabPane
protected KAoSPlotterPanel _plotterPanel
protected javax.swing.JTextField _hostTF
protected javax.swing.JTextField _portTF
protected javax.swing.JTextField _nameTF
protected javax.swing.JTextField _domainTF
protected javax.swing.JTextField _gpsCommPort
protected javax.swing.JTextField _maxSpeedTF
protected javax.swing.JTextField _timeoutTF
protected javax.swing.JTextField _gpsOriginTF
protected javax.swing.JTextField _sonarTurnRateTF
| Constructor Detail |
|---|
public RobotClient()
public RobotClient(java.lang.String[] args)
| Method Detail |
|---|
public void init()
public void sendCommand(java.lang.String actionName,
java.util.HashMap properties)
public void keyPressed(java.awt.event.KeyEvent evt)
keyPressed in interface java.awt.event.KeyListenerpublic void keyReleased(java.awt.event.KeyEvent evt)
keyReleased in interface java.awt.event.KeyListenerpublic void keyTyped(java.awt.event.KeyEvent evt)
keyTyped in interface java.awt.event.KeyListenerpublic void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked in interface java.awt.event.MouseListenerpublic void mousePressed(java.awt.event.MouseEvent e)
mousePressed in interface java.awt.event.MouseListenerpublic void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased in interface java.awt.event.MouseListenerpublic void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered in interface java.awt.event.MouseListenerpublic void mouseExited(java.awt.event.MouseEvent e)
mouseExited in interface java.awt.event.MouseListener
public void createRobot(java.lang.String robotClass,
java.lang.String[] args)
public void setDatum(java.lang.String gpsString)
public void onAccepted(java.util.Calendar time,
java.lang.Object acceptInfo,
java.lang.String actionID,
java.lang.String robotID)
onAccepted in interface FeedbackReceivertime - Calendar time of acceptance.acceptInfo - Object containing additional (optional) info about the acceptance.actionID - String containing the id of the requested action/information.robotID - String containing the name of the robot performing the action.
public void onRefused(java.util.Calendar time,
java.lang.Object reason,
java.lang.String actionID,
java.lang.String robotID)
onRefused in interface FeedbackReceivertime - Calendar time of refusal.reason - Object containing the reason for refusing the request.actionID - String containing the id of the requested action/information.robotID - String containing the name of the robot performing the action.
public void onCompleted(java.util.Calendar time,
java.lang.Object result,
java.lang.String actionID,
java.lang.String robotID)
onCompleted in interface FeedbackReceivertime - Calendar time of information/action completion.result - Object containing the result of the requested action.actionID - String containing the id of the requested action/information.robotID - String containing the name of the robot performing the action.
public void onStarted(java.util.Calendar time,
java.lang.Object startedInfo,
java.lang.String actionID,
java.lang.String robotID)
onStarted in interface FeedbackReceivertime - Calendar time of starting an action.startedInfo - Object containing additional (optional) info about the start of the action.actionID - String containing the id of the requested action/information.robotID - String containing the name of the robot performing the action.
public void onAborted(java.util.Calendar time,
java.lang.Object reason,
java.lang.String actionID,
java.lang.String robotID)
onAborted in interface FeedbackReceivertime - Calendar time of aborting an action.reason - Object containing the reason for aborting an action.actionID - String containing the id of the requested action/information.robotID - String containing the name of the robot performing the action.
public void onAccepted(java.util.Calendar time,
java.lang.Object acceptInfo)
InfoStatusCallback
onAccepted in interface InfoStatusCallbacktime - Calendar time of acceptance.acceptInfo - Object containing additional (optional) info about the acceptance.
public void onRefused(java.util.Calendar time,
java.lang.Object reason)
InfoStatusCallback
onRefused in interface InfoStatusCallbacktime - Calendar time of refusal.reason - Object containing the reason for refusing the request.
public void onCompleted(java.util.Calendar time,
java.lang.Object result)
InfoStatusCallback
onCompleted in interface InfoStatusCallbacktime - Calendar time of information/action completion.result - Object containing the result of the requested action.
public void onStarted(java.util.Calendar time,
java.lang.Object startedInfo)
ActionStatusCallback
onStarted in interface ActionStatusCallbacktime - Calendar time of starting an action.startedInfo - Object containing additional (optional) info about the start of the action.
public void onAborted(java.util.Calendar time,
java.lang.Object reason)
ActionStatusCallback
onAborted in interface ActionStatusCallbacktime - Calendar time of aborting an action.reason - Object containing the reason for aborting an action.public void reset()
InfoStatusCallback
reset in interface InfoStatusCallback
public void receiveKAoSStatus(java.lang.String statusMsg,
java.lang.String actionID,
java.lang.String robotID)
receiveKAoSStatus in interface FeedbackReceiverstatusMsg - Object containing the result of the requested action/information.actionID - String containing the id of the requested action/information.robotID - String containing the name of the robot performing the action.public Coordinate getSelectedCoordinate()
getSelectedCoordinate in interface UserInputpublic Area getSelectedArea()
getSelectedArea in interface UserInputpublic java.util.Vector<Point2d> getPolygon()
getPolygon in interface UserInputpublic void clearPolygon()
clearPolygon in interface UserInputpublic java.util.HashMap getSelectedRecievers()
getSelectedRecievers in interface UserInputpublic java.lang.Object getReceiver(java.lang.String id)
getReceiver in interface UserInputpublic java.util.Vector getSelectedRobots()
public ExecutionManager getLocalRobotExecMgr(java.lang.String robotName)
public Viewer getImageViewer()
getImageViewer in interface UserInputpublic void showPath(java.util.Vector path)
showPath in interface UserInputpublic void hidePath()
hidePath in interface UserInputpublic Plotter getPlotter()
getPlotter in interface UserInputpublic void doubleClicked()
protected void printDebugString(java.lang.String msg,
int loggerDisplayLevel)
public static void main(java.lang.String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||