rp1.simulator
Class SimClient

java.lang.Object
  extended by rp1.rossum.RsProtocol
      extended by rp1.rossum.RsConnection
          extended by rp1.simulator.SimClient
All Implemented Interfaces:
java.lang.Runnable, RsLogInterface

public class SimClient
extends RsConnection


Constructor Summary
SimClient(SimSession session)
           
 
Method Summary
 SimPaintBox[] getPaintBoxArray()
           
 SimStartMotionTask getStartMotionTask()
           
 boolean isMotionEngaged()
           
 boolean isMotionProcessingRequired()
           
 double processMotion(double taskTime)
           
 void queueStopMotionTask()
           
 void removeStartMotionTask()
           
 void sendMotionHaltedEvent(RsMotionHaltedEvent event)
           
 void sendMotionStartedEvent(RsMotionStartedEvent event)
           
 void sendMouseClickEvent(RsMouseClickEvent mce)
           
 void setBody(RsBody body)
           
 void setMotionRequest(RsMotionRequest motionRequest)
           
 void setPlacementRequested(boolean status)
           
 void setStartMotionTask(SimStartMotionTask task)
           
 void startHeartbeat(double interval)
           
 void stopHeartbeat()
           
 void stopMotionFromTask()
           
 
Methods inherited from class rp1.rossum.RsConnection
addInterlock, exchangeIntroductions, getMaxInterlockSent, isClientSubscribedToEvent, run, sendContactSensorEvent, sendContactSensorEvent, sendEncoderStatusEvent, sendEvent, sendHeartbeatEvent, sendHeartbeatEvent, sendPaintSensorEvent, sendPlacementEvent, sendPlanEvent, sendPositionEvent, sendRangeSensorEvent, sendTargetSelectionEvent, sendTargetSensorEvent, sendTimeoutEvent, setActuatorControlRequestHandler, setBodyHandler, setEncoderStatusRequestHandler, setHaltRequestHandler, setHeartbeatRequestHandler, setMotionRequestHandler, setPainterChangeRequestHandler, setPlacementRequestHandler, setPlanRequestHandler, setPositionRequestHandler, setSensorRequestHandler, setSubscriptionRequestHandler, setSubscriptionTableEntry, setTargetSelectionRequestHandler, setTimeoutRequestHandler
 
Methods inherited from class rp1.rossum.RsProtocol
getVerbosity, isInputSet, isLoggerSet, isOutputSet, log, logIt, setInputOutputStreams, setLogger, setProtocolShutdownHandler, setSocket, setVerbosity, verbose
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimClient

public SimClient(SimSession session)
Method Detail

setBody

public void setBody(RsBody body)

getPaintBoxArray

public SimPaintBox[] getPaintBoxArray()

queueStopMotionTask

public void queueStopMotionTask()

sendMouseClickEvent

public void sendMouseClickEvent(RsMouseClickEvent mce)
Overrides:
sendMouseClickEvent in class RsConnection

sendMotionHaltedEvent

public void sendMotionHaltedEvent(RsMotionHaltedEvent event)
Overrides:
sendMotionHaltedEvent in class RsConnection

sendMotionStartedEvent

public void sendMotionStartedEvent(RsMotionStartedEvent event)
Overrides:
sendMotionStartedEvent in class RsConnection

startHeartbeat

public void startHeartbeat(double interval)

stopHeartbeat

public void stopHeartbeat()

removeStartMotionTask

public void removeStartMotionTask()

processMotion

public double processMotion(double taskTime)

isMotionProcessingRequired

public boolean isMotionProcessingRequired()

setMotionRequest

public void setMotionRequest(RsMotionRequest motionRequest)

setPlacementRequested

public void setPlacementRequested(boolean status)

isMotionEngaged

public boolean isMotionEngaged()

setStartMotionTask

public void setStartMotionTask(SimStartMotionTask task)

getStartMotionTask

public SimStartMotionTask getStartMotionTask()

stopMotionFromTask

public void stopMotionFromTask()