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
| 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 |
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
RemotePlatform
public RemotePlatform(CoordManageable coordProvider,
java.lang.String name,
java.awt.Rectangle bounds)
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()