beans
Class DataPackage

java.lang.Object
  extended by beans.DataPackage

public class DataPackage
extends java.lang.Object

This is only a simple way of wrapping the information. AgentFormat refers to this class and thus all the agents extending AgentFormat depend on this class too. Conveyor refers to both DataPackage and AgentFormat and so depends on this class. However, this class is very simple, with only one tag- and one data- variable. Both variables are strings, so it should be pretty easy to store most kinds of data. The point of this class however is that if you need to change it, just write a new class called DataPackage and overwrite.

Author:
Håvard Rykkelid

Field Summary
private  java.lang.String data
           
private  java.lang.String tag
           
 
Constructor Summary
DataPackage(java.lang.String tag, java.lang.String data)
          Constructor of DataPackage.
 
Method Summary
 java.lang.String getData()
          Standard getter method
 java.lang.String getTag()
          Standard getter method
 void setData(java.lang.String data)
          Standard setter method
 void setTag(java.lang.String tag)
          Standard setter method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tag

private java.lang.String tag

data

private java.lang.String data
Constructor Detail

DataPackage

public DataPackage(java.lang.String tag,
                   java.lang.String data)
Constructor of DataPackage. Needs two parameters, both of them String. The first parameter is the tag of the package. The second parameter is the data.

Parameters:
tag - - the tag of the package
data - - the data of the package
Method Detail

getData

public java.lang.String getData()
Standard getter method

Returns:
the data of the package

setData

public void setData(java.lang.String data)
Standard setter method

Parameters:
data - - the data of the package

getTag

public java.lang.String getTag()
Standard getter method

Returns:
the tag of the package

setTag

public void setTag(java.lang.String tag)
Standard setter method

Parameters:
tag - - the tag of the package