auc.simulator.logic
Class RemotePlatform

java.lang.Object
  |
  +--auc.simulator.simitems.SimItemAdapter
        |
        +--auc.simulator.simitems.SimPlatform
              |
              +--auc.simulator.logic.RemotePlatform
All Implemented Interfaces:
java.lang.Runnable, SimItem

public class RemotePlatform
extends SimPlatform
implements java.lang.Runnable


Field Summary
protected  double cx
           
protected  double cy
           
protected  SimulatorDrawingPanel mDrawingArea
           
protected  FieldDescription mField
           
protected  CoordManager mFieldAreaCoordManager
           
protected  int mNextPoint
           
protected  RunnableTimerTask mPlatformTask
           
protected  Point[] mRoute
           
protected  Point mShiftPoint
           
protected  StationServer mStationServer
           
protected  double x
           
protected  double y
           
 
Fields inherited from class auc.simulator.simitems.SimPlatform
mRotationAngle
 
Fields inherited from class auc.simulator.simitems.SimItemAdapter
mAction, mBounds, mCoordProvider, mDraggable, mName, mSelectionPoint
 
Constructor Summary
RemotePlatform(CoordManageable coordProvider, java.lang.String name, java.awt.Rectangle bounds)
           
 
Method Summary
 void beginAPIJob(SimulatorDrawingPanel drawingArea, CoordManageable fieldArea, int x_shift, int y_shift)
           
protected  void calculateCoordShift(Point oldPoint, Point newPoint)
           
protected  void calculateRotationAngle()
           
protected  void connectToStationServer()
           
 void endAPIJob()
           
 void goManual()
           
protected  boolean nextPointReached()
           
 void run()
           
 
Methods inherited from class auc.simulator.simitems.SimPlatform
getRoute, paint, setRoute
 
Methods inherited from class auc.simulator.simitems.SimItemAdapter
getBounds, getCenterPoint, getCoordManager, getName, getSelectionBounds, isDraggable, isSelected, paintSelection, performAction, selectSubItem, setAction, setBounds, setDraggable, setName, setSelected, setSelected
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mField

protected FieldDescription mField

mRoute

protected Point[] mRoute

mStationServer

protected StationServer mStationServer

mShiftPoint

protected Point mShiftPoint

mDrawingArea

protected SimulatorDrawingPanel mDrawingArea

mFieldAreaCoordManager

protected CoordManager mFieldAreaCoordManager

mNextPoint

protected int mNextPoint

cx

protected double cx

cy

protected double cy

x

protected double x

y

protected double y

mPlatformTask

protected RunnableTimerTask mPlatformTask
Constructor Detail

RemotePlatform

public RemotePlatform(CoordManageable coordProvider,
                      java.lang.String name,
                      java.awt.Rectangle bounds)
Method Detail

beginAPIJob

public void beginAPIJob(SimulatorDrawingPanel drawingArea,
                        CoordManageable fieldArea,
                        int x_shift,
                        int y_shift)

run

public void run()
Specified by:
run in interface java.lang.Runnable

endAPIJob

public void endAPIJob()

goManual

public void goManual()

nextPointReached

protected boolean nextPointReached()

calculateCoordShift

protected void calculateCoordShift(Point oldPoint,
                                   Point newPoint)

calculateRotationAngle

protected void calculateRotationAngle()

connectToStationServer

protected void connectToStationServer()