|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbeans.DataPackage
public class DataPackage
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.
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 |
---|
private java.lang.String tag
private java.lang.String data
Constructor Detail |
---|
public DataPackage(java.lang.String tag, java.lang.String data)
tag
- - the tag of the packagedata
- - the data of the packageMethod Detail |
---|
public java.lang.String getData()
public void setData(java.lang.String data)
data
- - the data of the packagepublic java.lang.String getTag()
public void setTag(java.lang.String tag)
tag
- - the tag of the package
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |