org.jmythapi.protocol.response.impl
Class RemoteEncoderState

java.lang.Object
  extended by org.jmythapi.impl.AData<E>
      extended by org.jmythapi.protocol.response.impl.AMythResponse<IRemoteEncoderState.Props>
          extended by org.jmythapi.protocol.response.impl.RemoteEncoderState
All Implemented Interfaces:
Cloneable, IPropertyAware<IRemoteEncoderState.Props>, IVersionable, ISendable, IMythResponse<IRemoteEncoderState.Props>, IRemoteEncoderState

public class RemoteEncoderState
extends AMythResponse<IRemoteEncoderState.Props>
implements IRemoteEncoderState


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jmythapi.protocol.response.IRemoteEncoderState
IRemoteEncoderState.Props, IRemoteEncoderState.State
 
Field Summary
 
Fields inherited from class org.jmythapi.impl.AData
logger, propsClass, protoVersion, respArgs
 
Constructor Summary
RemoteEncoderState(IMythPacket packet)
           
 
Method Summary
 IRemoteEncoderState.State getState()
          Gets the current state of a remote encoder.
 int getStateValue()
          Gets the current state of a remote encoder as integer value.
 boolean hasState(IRemoteEncoderState.State... states)
           
 boolean hasState(IRemoteEncoderState.State state)
           
 
Methods inherited from class org.jmythapi.protocol.response.impl.AMythResponse
checkSize, decodeProperty, encodeProperty, getExpectedSize, getPacket, getProperties, getProperty, getPropertyIndex
 
Methods inherited from class org.jmythapi.impl.AData
clone, equals, getPropertyClass, getPropertyCount, getPropertyMap, getPropertyValue, getPropertyValue, getPropertyValueObject, getPropertyValueObject, getPropertyValues, getVersionNr, hashCode, init, postProcessArguments, setPropertyValue, setPropertyValue, setPropertyValueObject, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jmythapi.IVersionable
getVersionNr
 
Methods inherited from interface org.jmythapi.IPropertyAware
getProperties, getProperty, getPropertyClass, getPropertyCount, getPropertyIndex, getPropertyMap, getPropertyValue, getPropertyValue, getPropertyValueObject, getPropertyValues, setPropertyValue, setPropertyValue, setPropertyValueObject
 

Constructor Detail

RemoteEncoderState

public RemoteEncoderState(IMythPacket packet)
Method Detail

getStateValue

public int getStateValue()
Description copied from interface: IRemoteEncoderState
Gets the current state of a remote encoder as integer value.

This is the ordinal number of the IRemoteEncoderState.Props.

Specified by:
getStateValue in interface IRemoteEncoderState
Returns:
the current state as integer value.

hasState

public boolean hasState(IRemoteEncoderState.State state)
Specified by:
hasState in interface IRemoteEncoderState

hasState

public boolean hasState(IRemoteEncoderState.State... states)
Specified by:
hasState in interface IRemoteEncoderState

getState

public IRemoteEncoderState.State getState()
Description copied from interface: IRemoteEncoderState
Gets the current state of a remote encoder.

Specified by:
getState in interface IRemoteEncoderState
Returns:
null if there was an error or the RemoteEncoderState otherwise.


Copyright © 2008-2013. All Rights Reserved.