org.robokind.impl.motion.messaging
Class PortableRobotDefinitionResponse

java.lang.Object
  extended by org.robokind.impl.motion.messaging.PortableRobotDefinitionResponse
All Implemented Interfaces:
RobotDefinitionResponse, RobotResponse

public class PortableRobotDefinitionResponse
extends Object
implements RobotDefinitionResponse

Author:
Matthew Stevenson

Nested Class Summary
static class PortableRobotDefinitionResponse.MessageRecordAdapter
           
static class PortableRobotDefinitionResponse.RecordMessageAdapter
           
 
Nested classes/interfaces inherited from interface org.robokind.api.motion.protocol.RobotDefinitionResponse
RobotDefinitionResponse.JointDefinition
 
Nested classes/interfaces inherited from interface org.robokind.api.motion.protocol.RobotResponse
RobotResponse.RobotPositionResponse, RobotResponse.RobotResponseHeader, RobotResponse.RobotStatusResponse
 
Constructor Summary
PortableRobotDefinitionResponse(RobotDefinitionResponse response)
           
PortableRobotDefinitionResponse(RobotDefinitionResponseRecord record)
           
PortableRobotDefinitionResponse(RobotResponse.RobotResponseHeader header, boolean connected, boolean enabled, List<RobotDefinitionResponse.JointDefinition> jointDefs)
           
PortableRobotDefinitionResponse(RobotResponse.RobotResponseHeader header, Robot<? extends Joint> robot)
           
 
Method Summary
 boolean getConnected()
           
 boolean getEnabled()
           
 List<RobotDefinitionResponse.JointDefinition> getJointDefinitions()
           
 RobotDefinitionResponseRecord getRecord()
           
 RobotResponse.RobotResponseHeader getResponseHeader()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PortableRobotDefinitionResponse

public PortableRobotDefinitionResponse(RobotDefinitionResponseRecord record)

PortableRobotDefinitionResponse

public PortableRobotDefinitionResponse(RobotDefinitionResponse response)

PortableRobotDefinitionResponse

public PortableRobotDefinitionResponse(RobotResponse.RobotResponseHeader header,
                                       boolean connected,
                                       boolean enabled,
                                       List<RobotDefinitionResponse.JointDefinition> jointDefs)

PortableRobotDefinitionResponse

public PortableRobotDefinitionResponse(RobotResponse.RobotResponseHeader header,
                                       Robot<? extends Joint> robot)
Method Detail

getConnected

public boolean getConnected()
Specified by:
getConnected in interface RobotDefinitionResponse

getEnabled

public boolean getEnabled()
Specified by:
getEnabled in interface RobotDefinitionResponse

getJointDefinitions

public List<RobotDefinitionResponse.JointDefinition> getJointDefinitions()
Specified by:
getJointDefinitions in interface RobotDefinitionResponse

getResponseHeader

public RobotResponse.RobotResponseHeader getResponseHeader()
Specified by:
getResponseHeader in interface RobotResponse

getRecord

public RobotDefinitionResponseRecord getRecord()


Copyright © 2011-2012. All Rights Reserved.