agentland.util
Class Secret

java.lang.Object
  |
  +--agentland.util.Secret

public class Secret
extends Object
implements Serializable, Cloneable

This is an event which is passed around by the Notifier to spys from sources.

See Also:
Serialized Form

Field Summary
 Serializable details
           
 String name
           
 AgentID source
          This is the agent which started the event at hand.
 
Constructor Summary
Secret(AgentID source)
           
Secret(AgentID source, String name)
           
Secret(AgentID source, String name, Serializable details)
           
 
Method Summary
 void addNotifier(AgentID v)
          Add notifier to trace of this secret.
 Object clone()
           
 Serializable details()
           
 AgentID getSource()
           
 boolean isA(String a_type)
           
 String name()
           
 void setDetails(Serializable details)
           
 void setName(String name)
           
 String toString()
           
 boolean wentThrough(AgentID id)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

source

public AgentID source
This is the agent which started the event at hand.

name

public String name

details

public Serializable details
Constructor Detail

Secret

public Secret(AgentID source,
              String name,
              Serializable details)

Secret

public Secret(AgentID source,
              String name)

Secret

public Secret(AgentID source)
Method Detail

getSource

public AgentID getSource()

name

public String name()

setName

public void setName(String name)

isA

public boolean isA(String a_type)

details

public Serializable details()

setDetails

public void setDetails(Serializable details)

toString

public String toString()
Overrides:
toString in class Object

clone

public Object clone()
Overrides:
clone in class Object

addNotifier

public void addNotifier(AgentID v)
Add notifier to trace of this secret.

wentThrough

public boolean wentThrough(AgentID id)
Returns:
true if the Secret was transmitted by passed notifier.