org.fosstrak.llrp.commander.views
Class ReaderTreeObject

java.lang.Object
  extended by org.fosstrak.llrp.commander.views.MessageBoxTreeObject
      extended by org.fosstrak.llrp.commander.views.ReaderTreeObject
All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable

public class ReaderTreeObject
extends MessageBoxTreeObject

Models an object in the reader tree (eg. adapter or reader).

Author:
zhanghao

Field Summary
 
Fields inherited from class org.fosstrak.llrp.commander.views.MessageBoxTreeObject
INBOX_NAME, OUTBOX_NAME
 
Constructor Summary
ReaderTreeObject(java.lang.String name)
           
 
Method Summary
 void addChild(MessageBoxTreeObject child)
           
 MessageBoxTreeObject[] getChildren()
           
 boolean hasChildren()
           
 boolean isConnected()
          Return whether the reader is connected.
 boolean isGetReaderConfig()
          Return whether the reader get GET_READER_CONFIG_RESPONSE message.
 boolean isGetReaderROSpec()
          Return whether the reader get GET_ROSPECS_RESPONSE message.
 boolean isReader()
          Return whether the node represent a reader.
 void removeChild(MessageBoxTreeObject child)
           
 void setConnected(boolean isConnected)
          Set the flag to indicate whether the reader is connected.
 void setGetReaderConfig(boolean isGetReaderConfig)
          Set the flag to indicate the reader get GET_READER_CONFIG_RESPONSE message.
 void setGetReaderROSpec(boolean isGetReaderROSpec)
          Set the flag to indicate the reader get GET_ROSPECS_RESPONSE message.
 void setReader(boolean isReader)
          Set the flag to indicate whether the node represent a reader.
 
Methods inherited from class org.fosstrak.llrp.commander.views.MessageBoxTreeObject
getAdapter, getName, getParent, setParent, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ReaderTreeObject

public ReaderTreeObject(java.lang.String name)
Method Detail

addChild

public void addChild(MessageBoxTreeObject child)

removeChild

public void removeChild(MessageBoxTreeObject child)

getChildren

public MessageBoxTreeObject[] getChildren()

hasChildren

public boolean hasChildren()

isConnected

public boolean isConnected()
Return whether the reader is connected.

Returns:
Reader is connected or not.

setConnected

public void setConnected(boolean isConnected)
Set the flag to indicate whether the reader is connected.

Parameters:
isConnected - Reader is connected or not.

isReader

public boolean isReader()
Return whether the node represent a reader.

Returns:
This node is a reader or not

setReader

public void setReader(boolean isReader)
Set the flag to indicate whether the node represent a reader.

Parameters:
isReader - This node is a reader or not

isGetReaderConfig

public boolean isGetReaderConfig()
Return whether the reader get GET_READER_CONFIG_RESPONSE message.

Returns:
Get GET_READER_CONFIG_RESPONSE message or not

setGetReaderConfig

public void setGetReaderConfig(boolean isGetReaderConfig)
Set the flag to indicate the reader get GET_READER_CONFIG_RESPONSE message.

Parameters:
isGetReaderConfig - Get GET_READER_CONFIG_RESPONSE message or not

isGetReaderROSpec

public boolean isGetReaderROSpec()
Return whether the reader get GET_ROSPECS_RESPONSE message.

Returns:
Get GET_ROSPECS_RESPONSE message or not

setGetReaderROSpec

public void setGetReaderROSpec(boolean isGetReaderROSpec)
Set the flag to indicate the reader get GET_ROSPECS_RESPONSE message.

Parameters:
isGetReaderROSpec - Get GET_ROSPECS_RESPONSE message or not


Copyright © 2009. All Rights Reserved.