org.fosstrak.llrp.adaptor.config
Class AdaptorConfiguration

java.lang.Object
  extended by org.fosstrak.llrp.adaptor.config.AdaptorConfiguration

public class AdaptorConfiguration
extends java.lang.Object

a prototype class holding all information to create a adaptor.

Author:
sawielan

Constructor Summary
AdaptorConfiguration(java.lang.String adaptorName, java.lang.String ip, boolean isLocal, java.lang.String prefix)
          constructor for a configuration prototype.
 
Method Summary
 java.lang.String getAdaptorName()
          returns the name of the adaptor.
 java.lang.String getIp()
          returns the ip of the adaptor if remote.
 java.lang.String getPrefix()
          returns the prefix.
 java.util.List<ReaderConfiguration> getReaderPrototypes()
          returns the configuration for all the readers of this adaptor.
 boolean isLocal()
          flags whether remote or local.
 void setAdaptorName(java.lang.String adaptorName)
          sets the name of the adaptor.
 void setReaderConfigurations(java.util.List<ReaderConfiguration> readerConfigurations)
          sets the configuration for all the readers of this adaptor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdaptorConfiguration

public AdaptorConfiguration(java.lang.String adaptorName,
                            java.lang.String ip,
                            boolean isLocal,
                            java.lang.String prefix)
constructor for a configuration prototype.

Parameters:
adaptorName - the name of the adaptor.
ip - the ip of the adaptor if remote.
isLocal - flags whether remote or local.
prefix - the prefix (needed in the configurations. only for parsing.) unless you are not writing your own configuration loader it is safe to pass null here.
Method Detail

getAdaptorName

public java.lang.String getAdaptorName()
returns the name of the adaptor.

Returns:
the name of the adaptor.

setAdaptorName

public void setAdaptorName(java.lang.String adaptorName)
sets the name of the adaptor.

Parameters:
adaptorName - the name of the adaptor.

getIp

public java.lang.String getIp()
returns the ip of the adaptor if remote.

Returns:
the ip of the adaptor if remote.

isLocal

public boolean isLocal()
flags whether remote or local.

Returns:
whether remote or local.

getPrefix

public java.lang.String getPrefix()
returns the prefix.

Returns:
the prefix.

getReaderPrototypes

public java.util.List<ReaderConfiguration> getReaderPrototypes()
returns the configuration for all the readers of this adaptor.

Returns:
the configuration for all the readers of this adaptor.

setReaderConfigurations

public void setReaderConfigurations(java.util.List<ReaderConfiguration> readerConfigurations)
sets the configuration for all the readers of this adaptor.

Parameters:
readerConfigurations - the configuration for all the readers of this adaptor.


Copyright © 2009. All Rights Reserved.