|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--Slot
This class is the address book an agent maintains in order to communicate and build its "community. It stores the name of agents it communicates with, a counter that keeps track of the story of the interactions, methods to add to and delete agents from the address book
Field Summary | |
private int |
address
the address of an agent in the address book |
private Agent |
agent
an agent |
private int |
exchangeCounter
the counter keeping track of the exchange occuring with one agent |
private XClassifier |
exchangedCl
|
private int |
initExVal
The number of runs without answer allowed to an agent in the address book before to delete it |
private int |
timeAB
Counts the time an agent stays in an address book. reflects the stability of the relationship |
Constructor Summary | |
Slot()
The constructor for a slot that will be inserted in an address book. |
Method Summary | |
void |
actualizeCounter()
Actualize the indicator of inputs. |
void |
actualizeTime()
Counts the time spent in the address book by an agent |
int |
getAddress()
Returns the name of an agent stored at a given place in the address book |
XClassifier |
getAnswer()
Returns the classifier passed from one agent to another. |
int |
getExchangeCounter()
Returns the exchange counter |
int |
getTime()
Returns the time spent by an agent in an address book. |
void |
setAddress(int name)
Sets the name of an agent in a slot when it is introduced in the address book. |
XClassifier |
trackExchange(XClassifier cl)
Returns the classifier passed from one agent to another. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private int address
private XClassifier exchangedCl
private int exchangeCounter
private int timeAB
private int initExVal
private Agent agent
Constructor Detail |
public Slot()
Method Detail |
public void actualizeCounter()
public void actualizeTime()
public int getExchangeCounter()
public void setAddress(int name)
name
- The name of the inserted agentpublic int getAddress()
public int getTime()
public XClassifier trackExchange(XClassifier cl)
cl
- The exchanged classifierpublic XClassifier getAnswer()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |