rp1.simulator
Class SimStateDataExchange
java.lang.Object
rp1.simulator.SimStateDataExchange
- All Implemented Interfaces:
- SimStateDataInterface
public class SimStateDataExchange
- extends java.lang.Object
- implements SimStateDataInterface
Provides a temporary repository for state data (body states and
paint box information) to allow different threads to transfer
state data; currently used to transfer information from
the main session thread to SimCanvas thread for rendering.
In terms of future development, this class provides an opportunity for
statistics gathering since it can be made to detect changes
in state data each time data is transferred.
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimStateDataExchange
public SimStateDataExchange()
getBodyArray
public RsBody[] getBodyArray()
- Specified by:
getBodyArray
in interface SimStateDataInterface
setBodyArray
public void setBodyArray(RsBody[] bodyArray)
- Specified by:
setBodyArray
in interface SimStateDataInterface
getPaintBoxArray
public SimPaintBox[] getPaintBoxArray()
- Specified by:
getPaintBoxArray
in interface SimStateDataInterface
setPaintBoxArray
public void setPaintBoxArray(SimPaintBox[] paintBoxArray)
- Specified by:
setPaintBoxArray
in interface SimStateDataInterface
storeStateData
public void storeStateData(SimStateDataInterface source)
retrieveStateData
public void retrieveStateData(SimStateDataInterface receiver)