org.fosstrak.llrp.adaptor
Class ReaderMetaData

java.lang.Object
  extended by org.fosstrak.llrp.adaptor.ReaderMetaData
All Implemented Interfaces:
java.io.Serializable, java.rmi.Remote

public class ReaderMetaData
extends java.lang.Object
implements java.rmi.Remote, java.io.Serializable

Meta data that contains all information about the reader. this is for example the reader name, the address, the port, etc. ...

Author:
sawielan
See Also:
Serialized Form

Constructor Summary
ReaderMetaData()
          default constructor.
ReaderMetaData(ReaderMetaData other)
          copy constructor that creates a complete copy of the meta data.
 
Method Summary
 void _newSession()
          starts a new session.
 void _packageReceived()
          increases the number of received packages by one.
 void _packageSent()
          increases the number of sent packages by one.
 void _setAlive(boolean alive)
           
 void _setAllowNKeepAliveMisses(int allowNKeepAliveMisses)
           
 void _setClientInitiated(boolean clientInitiated)
           
 void _setConnected(boolean connected)
           
 void _setConnectImmediately(boolean connectImmediately)
           
 void _setKeepAlivePeriod(int keepAlivePeriod)
           
 void _setPackagesCurrentSessionReceived(int packagesCurrentSessionReceived)
           
 void _setPackagesCurrentSessionSent(int packagesCurrentSessionSent)
           
 void _setPackagesReceived(int packagesReceived)
           
 void _setPackagesSent(int packagesSent)
           
 void _setPort(int port)
           
 void _setReaderAddress(java.lang.String readerAddress)
           
 void _setReaderName(java.lang.String readerName)
           
 void _setReportKeepAlive(boolean reportKeepAlive)
           
 int getAllowNKeepAliveMisses()
           
 int getKeepAlivePeriod()
           
 int getPackagesCurrentSessionReceived()
           
 int getPackagesCurrentSessionSent()
           
 int getPackagesReceived()
           
 int getPackagesSent()
           
 int getPort()
           
 java.lang.String getReaderAddress()
           
 java.lang.String getReaderName()
           
 boolean isAlive()
           
 boolean isClientInitiated()
           
 boolean isConnected()
           
 boolean isConnectImmediately()
           
 boolean isReportKeepAlive()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ReaderMetaData

public ReaderMetaData()
default constructor.


ReaderMetaData

public ReaderMetaData(ReaderMetaData other)
copy constructor that creates a complete copy of the meta data.

Parameters:
other - the meta data object to clone;
Method Detail

_newSession

public void _newSession()
starts a new session.


_packageReceived

public void _packageReceived()
increases the number of received packages by one.


_packageSent

public void _packageSent()
increases the number of sent packages by one.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

_setKeepAlivePeriod

public void _setKeepAlivePeriod(int keepAlivePeriod)
Parameters:
keepAlivePeriod - the interval for the reader to send a keep-alive message.

getKeepAlivePeriod

public int getKeepAlivePeriod()
Returns:
the interval for the reader to send a keep-alive message.

_setAllowNKeepAliveMisses

public void _setAllowNKeepAliveMisses(int allowNKeepAliveMisses)
Parameters:
allowNKeepAliveMisses - how many times a keep-alive can be missed.

getAllowNKeepAliveMisses

public int getAllowNKeepAliveMisses()
Returns:
how many times a keep-alive can be missed.

_setPort

public void _setPort(int port)
Parameters:
port - the port where to connect.

getPort

public int getPort()
Returns:
the port where to connect.

_setReaderAddress

public void _setReaderAddress(java.lang.String readerAddress)
Parameters:
readerAddress - the address of the physical reader.

getReaderAddress

public java.lang.String getReaderAddress()
Returns:
the address of the physical reader.

_setReaderName

public void _setReaderName(java.lang.String readerName)
Parameters:
readerName - the name of this logical reader.

getReaderName

public java.lang.String getReaderName()
Returns:
the name of this logical reader.

_setAlive

public void _setAlive(boolean alive)
Parameters:
alive - whether the reader is alive.

isAlive

public boolean isAlive()
Returns:
whether the reader is alive.

_setPackagesSent

public void _setPackagesSent(int packagesSent)
Parameters:
packagesSent - the number of sent packages in total.

getPackagesSent

public int getPackagesSent()
Returns:
the number of sent packages in total.

_setPackagesReceived

public void _setPackagesReceived(int packagesReceived)
Parameters:
packagesReceived - the number of received packages in total.

getPackagesReceived

public int getPackagesReceived()
Returns:
the number of received packages in total.

_setPackagesCurrentSessionSent

public void _setPackagesCurrentSessionSent(int packagesCurrentSessionSent)
Parameters:
packagesCurrentSessionSent - the number of sent packages in the current session.

getPackagesCurrentSessionSent

public int getPackagesCurrentSessionSent()
Returns:
the number of sent packages in the current session.

_setPackagesCurrentSessionReceived

public void _setPackagesCurrentSessionReceived(int packagesCurrentSessionReceived)
Parameters:
packagesCurrentSessionReceived - the number of received packages in the current session.

getPackagesCurrentSessionReceived

public int getPackagesCurrentSessionReceived()
Returns:
the number of received packages in the current session.

_setReportKeepAlive

public void _setReportKeepAlive(boolean reportKeepAlive)
Parameters:
reportKeepAlive - whether keep alive messages get logged or not.

isReportKeepAlive

public boolean isReportKeepAlive()
Returns:
whether keep alive messages get logged or not.

_setClientInitiated

public void _setClientInitiated(boolean clientInitiated)
Parameters:
clientInitiated - the clientInitiated to set

isClientInitiated

public boolean isClientInitiated()
Returns:
the clientInitiated

_setConnected

public void _setConnected(boolean connected)
Parameters:
connected - flags whether the reader is connected or not.

isConnected

public boolean isConnected()
Returns:
whether the reader is connected or not.

_setConnectImmediately

public void _setConnectImmediately(boolean connectImmediately)
Parameters:
connectImmediately - tells whether this reader connects directly after creation.

isConnectImmediately

public boolean isConnectImmediately()
Returns:
tells whether this reader connects directly after creation.


Copyright © 2009. All Rights Reserved.