Serialized Form
readObject
private void readObject(ObjectInputStream ins)
throws IOException,
ClassNotFoundException
- Reads the name, the private key and the certificate from the stream using a factory. Loads
the classes through the same classloader as the ObjectInputStream was loaded from.
writeObject
private void writeObject(ObjectOutputStream outs)
throws IOException
- Writes the name, the private key and the certificate to the stream using a factory.
cert
Certificate cert
- The certificate.
name
String name
- The name of the certificate and the private key.
priv
PrivateKey priv
- The private key.
readObject
private void readObject(ObjectInputStream ins)
throws IOException,
ClassNotFoundException
- Reads the name and the keys from the stream using a factory. Loads the classes through the same
classloader as the ObjectInputStream was loaded from.
writeObject
private void writeObject(ObjectOutputStream outs)
throws IOException
- Writes the name and the keys to the stream using a factory.
kp
KeyPair kp
- The keypair itself.
name
String name
- The name of this keypair.
cryptAlgorithm
String cryptAlgorithm
- The algorithm used for encryption.
cryptData
Serializable cryptData
- Additional data to tell the recipient e. g. which public key was used for encryption.
encrypted
javax.crypto.SealedObject encrypted
- The object containing the encrypted (and previously signed) data-object.
data
Vector data
- Array for storing the additional data for the entries.
isReadOnly
boolean isReadOnly
- If
true
, the selection cannot be changed
readObject
private void readObject(ObjectInputStream in)
throws IOException,
ClassNotFoundException
- Reads the timer from a stream. If it was running when it was written to the stream the timer ist started.
writeObject
private void writeObject(ObjectOutputStream out)
throws IOException
- Writes the timer to a stream.
actionReceivers
Vector actionReceivers
- The listeners, which have to be notified when the event occurs.
id
long id
- The ID of the timer.
once
boolean once
- If
true
the event will only occur one, otherwise the delay will
be restarted immediately after notifying the listeners.
running
boolean running
- Whether the thread is currently running or not.
waitSeconds
long waitSeconds
- Number of seconds to wait till the event occurs.
Package FIM.Util.WWW.Cookies |
domain
String domain
- The domain of the cookie (from where it was sent; hostname).
expires
Date expires
- The date when to cookie expires (will be deleted after this time).
lastSent
Date lastSent
- The time this cookie was last handed out. Necessary for purging when the limits are exceeded.
Not the oldest, but the least recently used cookies should be thrown away.
If
null
it was never sent.
name
String name
- The name of the cookie.
path
String path
- The path of the cookie (the subset of URLs for which this cookie is valid).
secure
boolean secure
- Flag to indicate whether the cookie is secure or not (if
true
it will
only be sent when using a secure communications channel).
strict
boolean strict
- Whether checking should be done strict (e. g. domain).
value
String value
- The value of the cookie.
readObject
private void readObject(ObjectInputStream in)
throws IOException,
ClassNotFoundException
- Restores all cookies from a stream.
writeObject
private void writeObject(ObjectOutputStream out)
throws IOException
- Stores all non-expired and non-session-only cookies to a stream.
table
Hashtable table
- Store for the cookies. Key is domain+";"+path+";"+name .
Package FIM.Util.WWW.Form |
value
String value
- The value of this element.
type
String type
- The type of this button.
containedElems
Vector containedElems
- The contained elements.
attributes
MutableAttributeSet attributes
- The attributes of this element. Always exists, but may be empty.
children
Vector children
- The children of this element, if any.
doc
HTMLDocument doc
- The document this element belongs to.
endOffs
int endOffs
- Offset of the end of this element in the document.
label
String label
- The label of the element. May be
null
.
lastIndex
int lastIndex
- The index of the last child element searched for.
name
String name
- The name of the element (case-insensitive).
parent
Element parent
- The pointer to the parent element of this element. Top-level elements point to the form thei are in.
startOffs
int startOffs
- Offset of the start of this element in the document.
doc
HTMLDocument doc
- The document this form belongs to.
endOffs
int endOffs
- The end offset of the form in the document.
formAttributes
MutableAttributeSet formAttributes
- Attributes of the form.
formElements
Vector formElements
- The elements of the form. They are stored in the order they are encountered.
Elements are stored flat, so no hierarchy takes place. Grouping is done through the
separate groups.
Only those elements providing data (at least possibly) are included.
formName
String formName
- The name of the form.
groups
Hashtable groups
- The groups of elements within the form. E. g. all checkboxes with thesame name or all
radiobuttons belonging together or a group of elements to select (SELECT element).
lastIndex
int lastIndex
- The index at which the last child we searched for was found (For optimizing the search).
startOffs
int startOffs
- The start offset of the form in the document.
unnamedCount
int unnamedCount
- Counter for creating unique names for elements, which have no NAME or ID property.
src
String src
- The
URL
of the image to display (as string).
x
int x
- The x coordinate clicked (0..width of image).
y
int y
- The y coordinate clicked (0..height of image).
result
Object result
- The result of submitting the form:
null
: The page was not submitted through this element
String
: The page returned from submitting
- Subclass of
IOException
: if an error occured during submitting
maxLen
int maxLen
- The maximum length of the text string.
group
ElementGroup group
- The group the element belongs to. May not be
null
.
initiallySelected
boolean initiallySelected
- Whether this element was selected initially.
selected
boolean selected
- Whether this element is selected or not.
Package access for SingleSelectionGroup.
value
String value
- The value of this element (the string submitted if it is selected).
result
Object result
- The result of submitting the form:
null
: The page was not submitted through this element
String
: The page returned from submitting
- Subclass of
IOException
: if an error occured during submitting
currentText
String currentText
- The current text of the element.
initialText
String initialText
- The initial text of this control. If
null
, it is empty.
readObject
private void readObject(ObjectInputStream in)
throws IOException,
ClassNotFoundException
- Reads the agent from a stream
writeObject
private void writeObject(ObjectOutputStream out)
throws IOException
- Writes the agent to a stream
certificates
Hashtable certificates
- Store for certificate (our own and foreign ones).
Only
NamedKeyAndCertificate
may be added, else the serialization will fail!
conversationArchive
Hashtable conversationArchive
- Previous conversations that were archived. See
{@link Conversation#setShouldArchive(boolean) Conversation.setShouldArchive}
.
conversations
Hashtable conversations
- Currently ongoing conversations.
conversationTypes
Hashtable conversationTypes
- List of all conversations we understand. These objects are prototypes and will be cloned if a new
conversation of this type shall be started .
experiences
Experiences experiences
- Our own experiences
keys
Hashtable keys
- Store for keys (secret, private and public ones).
Only
NamedKeyPair
may be added, else the serialization will fail!
log
Vector log
- Our own private log of actions, events, errors, ...
permissionListeners
Vector permissionListeners
- Listeners for permission changes
readObject
private void readObject(ObjectInputStream in)
throws IOException,
ClassNotFoundException
- Restores the conversation from a stream.
Updates conversationSerialID if necessary to be always larger than the largest serialID
of all conversations.
writeObject
private void writeObject(ObjectOutputStream out)
throws IOException
- Stores this conversation to a stream.
counterpartConvID
long counterpartConvID
- The conversation ID of the counterpart agent. Is 0 if counterpart=null.
initiator
boolean initiator
- If
true
this agent is the initiator of the conversation. Otherwise
it was created in response to an incoming message.
myAgent
AgentBase myAgent
- The agent this conversation belongs to.
serialID
long serialID
- The ID of this conversation.
shouldArchive
boolean shouldArchive
- If
true
, this conversation should be archived after terminating, otherwise
it is destroyed after the end.
uniquePartner
boolean uniquePartner
- If
true
, this conversation has only a single partner.
retryAfterSeconds
int retryAfterSeconds
- Number of seconds after which to retry the action.
allPermission
PermissionCollection allPermission
- Optimization. Keep track of the AllPermission collection
perms
Hashtable perms
- The contained permissions.
limit
long limit
- Limit for the total length of files in bytes. -1 if unlimited.
e
Exception e
- The contained exception, which occured during initialization of the agent.
May be
null
, but then a detail message should be provided.
perm
Permission perm
- The permissions which was granted or revoked
type
int type
- Whether it was granted or revoked.
- See Also:
PermissionEvent.PERMISSION_GRANTED
,
PermissionEvent.PERMISSION_REVOKED
perms
Hashtable perms
- Hashtable for storing the permissions.
readObject
private void readObject(ObjectInputStream ois)
throws IOException,
ClassNotFoundException
- Restores this object from a stream (i.e., deserializes it).
writeObject
private void writeObject(ObjectOutputStream oos)
throws IOException
- Writes this object out to a stream (i.e., serializes it).
- Serial Data:
- An initial
String
denoting the
type
is followed by a String
denoting the
name
is followed by a String
denoting the
actions
is followed by an int
indicating the
number of certificates to follow
(a value of "zero" denotes that there are no certificates associated
with this object).
Each certificate is written out starting with a String
denoting the certificate type, followed by an
int
specifying the length of the certificate encoding,
followed by the certificate encoding itself which is written out as an
array of bytes.
actions
String actions
- The actions of the permission.
name
String name
- The permission name.
type
String type
- The class name of the Permission class that will be
created when this unresolved permission is resolved.
permissions
Hashtable permissions
values
Hashtable values
- The store for the values.
Package PkgAgentSystem.Classification |
readObject
private void readObject(ObjectInputStream in)
throws IOException,
ClassNotFoundException
- Restore the certificate from the stream. The status is set to REQUEST_CHECK.
writeObject
private void writeObject(ObjectOutputStream out)
throws IOException
- Store the certificate in the stream. The status is ignored.
cert
Certificate cert
- The certificate, which is presented as additional classification
Package PkgAgentSystem.Crypto |
Package PkgAgentSystem.Experiences |
readObject
private void readObject(ObjectInputStream in)
throws IOException,
ClassNotFoundException
- Reads this object from a stream.
writeObject
private void writeObject(ObjectOutputStream out)
throws IOException
- Writes this object to a stream.
changed
boolean changed
- Used for the internal recalculation of trust.
Package access for class Experiences (this object was change in the current phase).
generalTrust
double generalTrust
- The general trust we set in this agent (credibility of its statements).
location
URL location
- The current location where this agent is expected to be (may be empty in unknown; can be wrong
if it e. g. moved since our last interaction).
ourOpinionByCharacteristic
Hashtable ourOpinionByCharacteristic
- Our own opinions on the characteristics of this agent.
Stored by their name. Value is in range 0.0 - 1.0 .
statementsByOnAgent
Vector statementsByOnAgent
- All statements made on this agent.
statementsBySrc
Vector statementsBySrc
- All statements made by this agent.
transitiveTrust
double transitiveTrust
- The transitive trust we set in this agent (credibility of its statements);
calculated through statements by other agents.
stat
Statement stat
- The statement to distribute.
readObject
private void readObject(ObjectInputStream in)
throws IOException,
ClassNotFoundException
- Reads this object from stream.
writeObject
private void writeObject(ObjectOutputStream out)
throws IOException
- Writes this object to a stream.
ids
Vector ids
- The list of identities in the trace.
lines
Vector lines
- The lines in the trace. Identities are sorted in the same order as in the vector ids.
self
AgentModel self
- Our own model.
stat
Statement stat
- The statement to tell the other agents.
statements
Vector statements
- List of statements to send.
readObject
private void readObject(ObjectInputStream in)
throws IOException,
ClassNotFoundException
- Reads this statement from a stream.
writeObject
private void writeObject(ObjectOutputStream out)
throws IOException
- Writes this statement to a stream.
characteristic
String characteristic
- The characteristic of the destination agent.
value
double value
- The value of the characteristic.
Package PkgAgentSystem.GUI |
Package PkgAgentSystem.Messaging |
challenge
byte[] challenge
- Our own challenge to the other host
signed_challenge
byte[] signed_challenge
- Our own signature on the challenge from the other host
cause
String cause
- An optional string containing the reason for declining.
readObject
private void readObject(ObjectInputStream in)
throws IOException,
ClassNotFoundException
- Reads a message from a stream.
writeObject
private void writeObject(ObjectOutputStream out)
throws IOException
- Writes this message to a stream.
convTypeID
long convTypeID
- ID of the type of the conversation, which handles this message.
destConvID
long destConvID
- ID of the conversation at the destination of the message.
srcConvID
long srcConvID
- ID of the conversation at the source of the message.
msg
Message msg
- The message in which context the exception occured
message
Message message
- The contained message.
result
String result
- The result as a string.
success
boolean success
- If the result is positive or negative.
readObject
private void readObject(ObjectInputStream s)
throws IOException,
ClassNotFoundException
- Restore the object from a stream.
writeObject
private void writeObject(ObjectOutputStream out)
throws IOException
- Writes the signed message to a stream.
algorithm
String algorithm
- The algorithm used for signing.
byteContent
byte[] byteContent
- The message in a byte representation.
content
Message content
- The contained message which is signed.
signature
byte[] signature
- The signature of the message.
Submit a bug
Copyright 2000 Michael Sonntag & Institute for Information Processing and Microprocessor Technology (FIM), Johannes-Kepler-University Linz, Altenbergerstr. 69, A-4040 Linz, Austria.