springs.access
Class ReferenceUpdateCommand

java.lang.Object
  |
  +--springs.access.ReferenceUpdateCommand

public class ReferenceUpdateCommand
extends java.lang.Object

Contains instructions to update the reference to a certain agent.

Author:
Sergio Ilarri Artigas

Field Summary
private  java.lang.String _agentName
          The name of the agent.
 boolean _communicated
          A boolean indicating whether the command has been taken into account.
private  boolean _remove
          A boolean indicating whether the update is a removal.
 
Constructor Summary
ReferenceUpdateCommand(java.lang.String agentName, boolean remove)
          Constructor.
 
Method Summary
 java.lang.String getAgentName()
          Obtains the agent name.
 boolean getCommunicated()
          Gets whether the update has been communicated.
 boolean getIsRemove()
          Checks whether the command refers to a removal rather than an update.
 void print()
          Prints information about this agent reference.
 void setCommunicated(boolean comm)
          Sets that the update has been communicated.
 void waitUntilCommunicated()
          Blocks the caller until the update has been communicated.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_agentName

private java.lang.String _agentName
The name of the agent.

See Also:
String

_remove

private boolean _remove
A boolean indicating whether the update is a removal.


_communicated

public boolean _communicated
A boolean indicating whether the command has been taken into account.

Constructor Detail

ReferenceUpdateCommand

public ReferenceUpdateCommand(java.lang.String agentName,
                              boolean remove)
Constructor.

Parameters:
agentName - the name of the agent.
remove - a boolean indicating whether the command refers to a removal rather than an update.
See Also:
String, Vector
Method Detail

getAgentName

public java.lang.String getAgentName()
Obtains the agent name.

Returns:
the agent name.
See Also:
String

getIsRemove

public boolean getIsRemove()
Checks whether the command refers to a removal rather than an update.

Returns:
a boolean indicating that.

getCommunicated

public boolean getCommunicated()
Gets whether the update has been communicated.

Returns:
a boolean indicating that.

setCommunicated

public void setCommunicated(boolean comm)
Sets that the update has been communicated.

Parameters:
comm - a boolean indicating that.

waitUntilCommunicated

public void waitUntilCommunicated()
Blocks the caller until the update has been communicated.


print

public void print()
Prints information about this agent reference.