|
Agent System POND 1.2 (28.2.2002) | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--PkgAgentSystem.AgentData
Class for storing the management data of an agent. Contains:
PkgAgentSystem.GUI.GUIAgentSystem
and PkgAgentSystem.GUI.MainFrame
have access.
Field Summary | |
ClassificationSet |
additionalClassifications
The set of additional classifications that were accepted by the system |
AgentBase |
agent
The object of the agent |
byte |
challenge
Whether the agent was challenged for knowing its private key and what result this did have |
AgentClassLoader |
classloader
The classloader, through which the agent was loaded (and which enforces the security policy). |
CertificateWrapper[] |
codeCertificates
The list of all certificates which were used for singing the code. |
String |
codeOrigin
|
AgentIdentity |
identity
The identity of the agent. |
boolean |
localCode
|
boolean |
movingDenied
true if the agent denied to be moved the last time moving was tried |
protected boolean |
msgsAllowed
Whether currently messages can be delivered to the agent. |
protected Semaphor |
msgSem
Semaphor for enabling and disabling message delivery to this agent. |
int |
permissionGroup
The current permission-group the agent is in. |
String |
persistedFile
The name of the file to which the agent was persisted. |
boolean |
persistingDenied
true if the agent denied to be persisted the last time persisting was tried |
double |
scale
Scale for the price of permissions for this particular agent (additional classifications will reduce this) |
Constructor Summary | |
AgentData(String codeOrigin)
Create a new dataset for an agent. |
Method Summary | |
(package private) void |
dumpInfo(boolean extensive)
Prints the information on this agent. |
boolean |
equals(Object other)
Compares this object to another one. |
int |
hashCode()
Returns a hash code value for the object. |
void |
setAgentObject(AgentBase agent)
Sets the agent object for this agent. |
Methods inherited from class java.lang.Object |
|
Field Detail |
public CertificateWrapper[] codeCertificates
public String codeOrigin
public boolean localCode
public byte challenge
public int permissionGroup
public double scale
public ClassificationSet additionalClassifications
public AgentClassLoader classloader
public AgentIdentity identity
public AgentBase agent
public boolean persistingDenied
true
if the agent denied to be persisted the last time persisting was triedpublic boolean movingDenied
true
if the agent denied to be moved the last time moving was triedpublic String persistedFile
protected Semaphor msgSem
AgentData
object). But the moving agent does the same in the
his agent-system at the same time, so both will have to wait till the other has finished -> deadlock!protected boolean msgsAllowed
Constructor Detail |
public AgentData(String codeOrigin)
codeOrigin
- from where the code is loaded. Might be null if unknown.ResourcePackage
Method Detail |
public void setAgentObject(AgentBase agent)
agent
- the object of the agent itselfpublic boolean equals(Object other)
equals
in class Object
other
- object to compare to this onepublic int hashCode()
hashCode
in class Object
Object.hashCode()
void dumpInfo(boolean extensive)
extensive
- if true
, additional information is printed (Class name, identity, agent object, classloader)
|
Agent System POND 1.2 (28.2.2002) | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |