public class LynxController.PretendLynxModule extends java.lang.Object implements LynxModuleIntf
Constructor and Description |
---|
PretendLynxModule() |
public Manufacturer getManufacturer()
public java.lang.String getFirmwareVersionString()
public java.lang.String getNullableFirmwareVersionString()
public java.lang.String getDeviceName()
public java.lang.String getConnectionInfo()
public int getVersion()
public void resetDeviceConfigurationForOpMode()
public void close()
public SerialNumber getSerialNumber()
public <T> T acquireI2cLockWhile(Supplier<T> supplier) throws java.lang.InterruptedException, RobotCoreException, LynxNackException
acquireI2cLockWhile
in interface LynxModuleIntf
java.lang.InterruptedException
RobotCoreException
LynxNackException
public void acquireNetworkTransmissionLock(LynxMessage message) throws java.lang.InterruptedException
acquireNetworkTransmissionLock
in interface LynxModuleIntf
java.lang.InterruptedException
public void releaseNetworkTransmissionLock(LynxMessage message) throws java.lang.InterruptedException
releaseNetworkTransmissionLock
in interface LynxModuleIntf
java.lang.InterruptedException
public void sendCommand(LynxMessage command) throws java.lang.InterruptedException, LynxUnsupportedCommandException
sendCommand
in interface LynxModuleIntf
java.lang.InterruptedException
LynxUnsupportedCommandException
public void retransmit(LynxMessage message) throws java.lang.InterruptedException
retransmit
in interface LynxModuleIntf
java.lang.InterruptedException
public void finishedWithMessage(LynxMessage message) throws java.lang.InterruptedException
finishedWithMessage
in interface LynxModuleIntf
java.lang.InterruptedException
public void resetPingTimer(LynxMessage message)
resetPingTimer
in interface LynxModuleIntf
public int getModuleAddress()
public void noteAttentionRequired()
noteAttentionRequired
in interface LynxModuleIntf
public LynxInterface getInterface(java.lang.String interfaceName)
getInterface
in interface LynxModuleIntf
public boolean isParent()
public void validateCommand(LynxMessage lynxMessage) throws LynxUnsupportedCommandException
validateCommand
in interface LynxModuleIntf
LynxUnsupportedCommandException
public boolean isCommandSupported(java.lang.Class<? extends LynxCommand> command)
isCommandSupported
in interface LynxModuleIntf
public boolean isOpen()
isOpen
in interface LynxModuleIntf
public boolean isEngaged()
public void engage()
public void disengage()
public void noteDatagramReceived()
noteDatagramReceived
in interface LynxModuleIntf
public void noteNotResponding()
noteNotResponding
in interface LynxModuleIntf
public boolean isNotResponding()
isNotResponding
in interface LynxModuleIntf