repserver
Class RepAgentID

java.lang.Object
  |
  +--fipaos.ont.fipa.fipaman.AgentID
        |
        +--repserver.RepAgentID
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable

public class RepAgentID
extends fipaos.ont.fipa.fipaman.AgentID

RepAgentID is an extension of AgentID to handle replication issues. RepAgentID adds a data field to store the last time this replicant either set or sent its state and it adds a boolean field to indicate that the last ping failed or not.

See Also:
Serialized Form

Constructor Summary
RepAgentID()
          Constructs a blank RepAgentID.
RepAgentID(fipaos.ont.fipa.fipaman.AgentID aid)
          Constructs a RepAgentID from an AgentID
RepAgentID(java.lang.String aid)
          Constructs a RepAgentID from an AID string.
 
Method Summary
 boolean getPing()
          return the current ping flag
 java.util.Date getUpdate()
          return the update time
 void setPing(boolean p)
          set the ping flag.
 void setUpdate(java.util.Date u)
          set the update time
 
Methods inherited from class fipaos.ont.fipa.fipaman.AgentID
clone, equals, getAddresses, getAgentIDs, getDynamicClassHints, getName, getResolvers, hashCode, main, setAddresses, setAddresses, setName, setResolvers, setResolvers, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RepAgentID

public RepAgentID()
Constructs a blank RepAgentID.

RepAgentID

public RepAgentID(java.lang.String aid)
           throws fipaos.parser.ParserException
Constructs a RepAgentID from an AID string. See AgentID.

RepAgentID

public RepAgentID(fipaos.ont.fipa.fipaman.AgentID aid)
Constructs a RepAgentID from an AgentID
Method Detail

setUpdate

public void setUpdate(java.util.Date u)
set the update time
Parameters:
u - date/time to set.

getUpdate

public java.util.Date getUpdate()
return the update time

setPing

public void setPing(boolean p)
set the ping flag.

getPing

public boolean getPing()
return the current ping flag