|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--springs.access.ReferenceUpdateCommands
Contains instructions to update references to agents. It is implemented as a FIFO queue.
Field Summary | |
private double |
_arrivalRate
|
private java.util.Vector |
_commands
|
private java.util.Vector |
_insertionTimes
|
private long |
_millisFirstCommand
|
private int |
_numArrivedCommands
To compute the throughput of commands. |
Constructor Summary | |
ReferenceUpdateCommands()
Constructor. |
Method Summary | |
double |
getArrivalRate()
Gets the arrival rate of remote tuples, per second. |
springs.access.ReferenceUpdateCommand |
popCommand()
Gets the first command from the table and removes it. |
void |
removeCommand(java.lang.String agentName)
Removes a command that requests the update for an agent with the given name. |
void |
set(java.lang.String agentName,
springs.access.ReferenceUpdateCommand c)
Sets the commands for the given agent. |
int |
size()
Gets the number of remote agent references. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private java.util.Vector _commands
private java.util.Vector _insertionTimes
private int _numArrivedCommands
private double _arrivalRate
private long _millisFirstCommand
Constructor Detail |
public ReferenceUpdateCommands()
Method Detail |
public void set(java.lang.String agentName, springs.access.ReferenceUpdateCommand c)
agentName
- the name of the agent.c
- the command.String
,
ReferenceUpdateCommand
public springs.access.ReferenceUpdateCommand popCommand()
ReferenceUpdateCommand
public void removeCommand(java.lang.String agentName)
agentName
- the name of the agent.String
public int size()
public double getArrivalRate()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |