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
source
public AgentID source
- This is the agent which started the event at hand.
name
public String name
details
public Serializable details
Secret
public Secret(AgentID source,
String name,
Serializable details)
Secret
public Secret(AgentID source,
String name)
Secret
public Secret(AgentID source)
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.