Serialized Form
id
NestId id
- Identifier of the nest neighbour
cost
float cost
- Communication cost with this neighbour
reachable
boolean reachable
- True if this neighbour is currently reachable
target
Throwable target
- Target exception
target
Throwable target
- Target exception
componentMap
HashMap componentMap
configMap
Map configMap
sender
NestId sender
- NestId of the sender of this ant
ant
Ant ant
- Ant associated to this data structure
ttl
int ttl
- Time-to-live
capacity
long capacity
- Capacity
requestedCapacity
long requestedCapacity
- Requested capacity
remainingCapacity
long remainingCapacity
- Remaining capacity
target
Throwable target
- Target exception
readExternal
public void readExternal(ObjectInput in)
throws IOException
- Marshals this
SHADocumentId to the specified output stream.
- Throws:
IOException - if an error occurs
writeExternal
public void writeExternal(ObjectOutput out)
throws IOException
- Marshals this
SHADocumentId to the specified output stream.
- Throws:
IOException - if an error occurs
readExternal
public void readExternal(ObjectInput in)
throws IOException
- Marshals this
SHAHashedKeyword to the specified output stream.
- Throws:
IOException - if an error occurs
writeExternal
public void writeExternal(ObjectOutput out)
throws IOException
- Marshals this
SHAHashedKeyword to the specified output stream.
- Throws:
IOException - if an error occurs
readExternal
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
- Marshals this
URLResourceImpl to the specified output stream.
writeExternal
public void writeExternal(ObjectOutput out)
throws IOException
- Marshals this
URLResourceImpl to the specified output stream.
backtrack
int[] backtrack
- Array containing the back track information
size
int size
- Number of elements contained in the array; could size < backtrack.length
maxsize
int maxsize
- Max size of the map
size
int size
- Size of the map
map
Map map
- A map mapping a key identifier to a composite
Entry
object implementing a doubly linked list.
head
MapList.Entry head
- Head of the list connecting the pairs; pairs will be removed here
tail
MapList.Entry tail
- Tail of the list connecting the pairs; pairs will be added here
maxtime
int maxtime
- Max duration for storing a key in the map
interval
int interval
- Polling interval
ended
boolean ended
- True if the pooling thread has to be stopped
key
Object key
- The key used for accessing the value.
value
Object value
- The value stored by this object
next
MapList.Entry next
- Next pair in the linked list
prev
MapList.Entry prev
- Previous pair in the linked list
readExternal
public void readExternal(ObjectInput in)
throws IOException
- Marshals this
SHADigest to the specified input stream.
- Throws:
IOException - if an error occurs
writeExternal
public void writeExternal(ObjectOutput out)
throws IOException
- Marshals this
SHADigest to the specified output stream.
- Throws:
IOException - if an error occurs
proxyMap
SortedMap proxyMap
- A proxy for the actual map, used to access methods
from the SortedMap interface.
explorationProbability
float explorationProbability
- Probability to follow a random path instead of following the pheromone
trail.
trailAttempts
int trailAttempts
- Number of attempts to move to another nest, selected randomly among the
nests included in this pheromone, using a normal distribution over the
nests addressing the closest keys.
trailDev
double trailDev
explorationAttempts
int explorationAttempts
- Number of attempts to move to another nest, selected randomly among the
nests included in this pheromone, using a uniform distribution.
maxResources
int maxResources
maxProviders
int maxProviders
rid
RequestId rid
- The identifier of the request
query
String query
- The query string associated with this ant
key
HashedKeyword key
- The hash value of the keyword searched by this ant
requestor
NestId requestor
- Originating nest of this ant
status
int status
- Current ant status
returnPath
ReturnPath returnPath
- Utility object used to obtain information about the return path to
the requestor nest.
resources
HashSet resources
- Resource to be returned
providers
ArrayList providers
- First nests to provide new info FIXME currently just one
fakeProb
int fakeProb
- This parameter represents the probability for the requestor identifier
to be substituted with the current nest, in order to provide anonymity.
rid
RequestId rid
- The identifier of the request
resources
Resource[] resources
- Resources to be returned to the requestor nest
requestor
NestId requestor
- Identifier of the requestor nest
provider
NestId provider
- The provider of these resources; originator of this ant
keyhash
HashedKeyword keyhash
- The hash value of the keyword searched by this ant
resources
Resource[] resources
- Resources that we wish to put update the distributed index with
path
ArrayList path
- Variable path contains the list of visited nodes, allowing the ant
to avoid visiting the same nests multiple times.
readExternal
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
- Describe
readExternal method here.
- Throws:
IOException - if an error occurs
ClassNotFoundException
writeExternal
public void writeExternal(ObjectOutput out)
throws IOException
- Describe
writeExternal method here.
- Throws:
IOException - if an error occurs
rid
RequestId rid
- The identifier of the request
resources
Resource[] resources
- Resource to be returned to the requestor nest
requestor
NestId requestor
- Identifier of the requestor nest
path
ArrayList path
- Variable path contains the list of visited nodes, allowing the ant
to avoid visiting the same nests multiple times and backtrack to
the originating nest.
rid
RequestId rid
- The identifier of the request
query
String query
- The query string associated with this ant
keyhash
HashedKeyword keyhash
- The hash value of the keyword searched by this ant
resources
HashSet resources
- Resource to be returned
backtracks
int backtracks
- Number of backtracks performed so far by this ant.
rsize
long rsize
- The number of results found so far
readExternal
public void readExternal(ObjectInput in)
throws IOException
- Marshals this
UrlResource to the specified output stream.
writeExternal
public void writeExternal(ObjectOutput out)
throws IOException
- Marshals this
UrlResource to the specified output stream.
readExternal
public void readExternal(ObjectInput in)
throws IOException
- Marshals this
UrlResourceSet to the specified output stream.
writeExternal
public void writeExternal(ObjectOutput out)
throws IOException
- Marshals this
UrlResourceSet to the specified output stream.
provider
NestId provider
- The provider of these resources; originator of this ant
keyhash
HashedKeyword keyhash
- The hash value of the keyword searched by this ant
resources
Resource[] resources
- Resources that we wish to put update the distributed index with
path
ArrayList path
- Variable path contains the list of visited nodes, allowing the ant
to avoid visiting the same nests multiple times.
pheroMap
TreeList pheroMap
- A TreeList associating keyword hash codes and NestIds.
TreeList implements a LRU policy, mean that keywords
that have been stored may be removed based on the
least recently used scheme. This is to make room for
new entries in the index. The underlying map is a
TreeMap, thus ensuring that keys (key hash codes) are
stored in sorted order.
closeness
int closeness
- Closeness defines the number of close keys to retreive from
the
pheroMap.
capacity
int capacity
factory
Factory factory
readExternal
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
- Describe
readExternal method here.
- Throws:
IOException - if an error occurs
ClassNotFoundException
writeExternal
public void writeExternal(ObjectOutput out)
throws IOException
- Describe
writeExternal method here.
- Throws:
IOException - if an error occurs
rid
RequestId rid
- The identifier of the request
resources
Resource[] resources
- Resource to be returned to the requestor nest
requestor
NestId requestor
- Identifier of the requestor nest
path
ArrayList path
- Variable path contains the list of visited nodes, allowing the ant
to avoid visiting the same nests multiple times and backtrack to
the originating nest.
rid
RequestId rid
- The identifier of the request
query
Object query
- The query associated with this ant
keyhash
HashedKeyword keyhash
- The hash value of the keyword searched by this ant
resources
HashSet resources
- Resource to be returned
backtracks
int backtracks
- Number of backtracks performed so far by this ant.
rsize
long rsize
tries
int tries
readExternal
public void readExternal(ObjectInput in)
throws IOException
- Marshals this
UrlResourceSet to the specified output stream.
writeExternal
public void writeExternal(ObjectOutput out)
throws IOException
- Marshals this
UrlResourceSet to the specified output stream.
tasks
List tasks
- Tasks to be delivered in the local storage.
maxExploringProb
float maxExploringProb
- When in MaxSearching status, probability to explore the network
instead to go towards nodes with max load.
minExploringProb
float minExploringProb
- When in MinSearching status, probability to explore the network
instead to go towards nodes with min load.
maxSearchDev
double maxSearchDev
- When in MaxSearching status, standard deviation for selecting
the next node using a normal distribution.
minSearchDev
double minSearchDev
- When in MinSearching status, standard deviation for selecting
the next node using a normal distribution.
maxKeepSearchingProb
float maxKeepSearchingProb
- When in MaxSearching status, probability to keep searching when
a node with a load greater than the given treshold has been
reached.
minKeepSearchingProb
float minKeepSearchingProb
- When in MaxSearching status, probability to keep searching when
a node with a load greater than the given treshold has been
reached.
maxTargetRatio
float maxTargetRatio
- Target ratio between the load of overloaded and underloaded
nests when in SearchMax status. When an ant is looking for
overloaded machines, it keeps moving until the ratio between
the load observed in the nest with maximum load and the nest
with minimum load do not reach this target value.
minTargetRatio
float minTargetRatio
- Target ratio between the load of overloaded and underloaded
nests when in SearchMin status. When an ant is looking for
underloaded machines, it keeps moving until the ratio between
the load observed in the nest with maximum load and the nest
with minimum load do not reach this target value.
transportPercentage
float transportPercentage
- Percentage of tasks to be move from one site to another.
maxTransport
int maxTransport
- Max number of tasks that can be transported by one node to another
status
int status
- Status of the ant; can get the values SearchMax, SearchMin
and Transport
visited
NestId[] visited
- Last nests visited; this array is organized as a circular queue.
loads
int[] loads
- Load associated to the last visited nests. Each position in this
array corresponds to the same position in the
visited
array.
index
int index
- Index of the next position where to write nests.
maxLoad
int maxLoad
- Contains the maximum load among those recently visited by
this ant.
maxNest
NestId maxNest
- Contains the identifier of the nest in which the maximum
load has been observed.
minLoad
int minLoad
- Contains the minimum load among those recently visited by
this ant.
minNest
NestId minNest
- Contains the identifier of the nest in which the minimum
load has been observed.
tasks
List tasks
- Tasks to be transported from one nest to another
aid
AntId aid
- Ant identifier; currently used only for debug.
maxExploringProb
float maxExploringProb
- When in MaxSearching status, probability to explore the network
instead to go towards nodes with max load.
minExploringProb
float minExploringProb
- When in MinSearching status, probability to explore the network
instead to go towards nodes with min load.
maxSearchDev
double maxSearchDev
- When in MaxSearching status, standard deviation for selecting
the next node using a normal distribution.
minSearchDev
double minSearchDev
- When in MinSearching status, standard deviation for selecting
the next node using a normal distribution.
maxKeepSearchingProb
float maxKeepSearchingProb
- When in MaxSearching status, probability to keep searching when
a node with a load greater than the given treshold has been
reached.
minKeepSearchingProb
float minKeepSearchingProb
- When in MaxSearching status, probability to keep searching when
a node with a load greater than the given treshold has been
reached.
maxTargetRatio
float maxTargetRatio
- Target ratio between the load of overloaded and underloaded
nests when in SearchMax status. When an ant is looking for
overloaded machines, it keeps moving until the ratio between
the load observed in the nest with maximum load and the nest
with minimum load do not reach this target value.
minTargetRatio
float minTargetRatio
- Target ratio between the load of overloaded and underloaded
nests when in SearchMin status. When an ant is looking for
underloaded machines, it keeps moving until the ratio between
the load observed in the nest with maximum load and the nest
with minimum load do not reach this target value.
transportPercentage
float transportPercentage
- Percentage of tasks to be move from one site to another.
visitedBufferSize
int visitedBufferSize
rid
RequestId rid
- The identifier of the request
aid
AntId aid
- The identifier of this ant
query
String query
- The query associated to this ant
resource
Resource resource
- The resource found
backtracking
boolean backtracking
- True if this ant is returning to the previous nest because it has reached
a node already visited.
forward
boolean forward
- True if this ant is returning to the requestor nest
readExternal
public void readExternal(ObjectInput in)
throws IOException
- Marshals this
DocumentKey to the specified output stream.
- Throws:
IOException - if an error occurs
writeExternal
public void writeExternal(ObjectOutput out)
throws IOException
- Marshals this
DocumentKey to the specified output stream.
- Throws:
IOException - if an error occurs
readExternal
public void readExternal(ObjectInput in)
throws IOException
- Marshals this
UrlResource to the specified output stream.
writeExternal
public void writeExternal(ObjectOutput out)
throws IOException
- Marshals this
UrlResource to the specified output stream.
hTab
Hashtable hTab
species
String species
resources
AnthillResource[] resources
table
JTable table
scroll
JScrollPane scroll
localNest
Nest localNest
buttonSearch
JButton buttonSearch
keywordsField
JTextField keywordsField
keywordsLabel
JLabel keywordsLabel
searchByBox
JComboBox searchByBox
searchByLabel
JLabel searchByLabel
menu
JMenuBar menu
fileMenu
JMenu fileMenu
resourcesMenu
JMenu resourcesMenu
infoMenu
JMenu infoMenu
helpMenu
JMenu helpMenu
fileMenuExit
JMenuItem fileMenuExit
resourcesMenuShare
JMenuItem resourcesMenuShare
resourcesMenuUnshare
JMenuItem resourcesMenuUnshare
resourcesMenuLocalStorage
JMenuItem resourcesMenuLocalStorage
infoMenuInfo
JMenuItem infoMenuInfo
helpMenuHelp
JMenuItem helpMenuHelp
panel
JPanel panel
RESIZABLE
boolean RESIZABLE
TITLE
String TITLE
BUTTON_SEARCH
String BUTTON_SEARCH
resources
Vector resources
localNest
Nest localNest
searchByLabel
JLabel searchByLabel
keywordsLabel
JLabel keywordsLabel
searchByText
JTextField searchByText
keywordsText
JTextField keywordsText
status
JTextField status
dataArea
JTable dataArea
scrollPane
JScrollPane scrollPane
saveButton
JButton saveButton
tot
int tot
resourceNameLabel
JLabel resourceNameLabel
resourceTypeLabel
JLabel resourceTypeLabel
resourceDescLabel
JLabel resourceDescLabel
resourceLengLabel
JLabel resourceLengLabel
resourceTypeText
JTextField resourceTypeText
resourceDescText
JTextField resourceDescText
antSpeciesLabel
JLabel antSpeciesLabel
antSpeciesText
JTextField antSpeciesText
shareButton
JButton shareButton
cancelButton
JButton cancelButton
file
File file
nest
Nest nest
resources
AnthillResource[] resources
table
JTable table
scroll
JScrollPane scroll
unshareButton
JButton unshareButton
localNest
Nest localNest
requestId
RequestId requestId
id
String id
name
String name
type
String type
id
URL id
nestId
NestId nestId
pipeId
URL pipeId
pipeName
String pipeName
pipeType
String pipeType
species
String species
content
Content content
- This is a descriptor for the resource.
elName
String elName
values
String values