rp1.simulator
Class SimStateDataExchange

java.lang.Object
  extended by 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.


Constructor Summary
SimStateDataExchange()
           
 
Method Summary
 RsBody[] getBodyArray()
           
 SimPaintBox[] getPaintBoxArray()
           
 void retrieveStateData(SimStateDataInterface receiver)
           
 void setBodyArray(RsBody[] bodyArray)
           
 void setPaintBoxArray(SimPaintBox[] paintBoxArray)
           
 void storeStateData(SimStateDataInterface source)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimStateDataExchange

public SimStateDataExchange()
Method Detail

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)