com.scalagent.scheduler.monitor.OutCommandTable Class Reference

List of all members.

Public Member Functions

String toString ()

Package Functions

 OutCommandTable ()
OutCommandHandle addElement (AgentId target, CommandMonitor monitor)
boolean removeElement (OutCommandHandle handle)
OutCommandHandle getElement (int id)
OutCommandHandle getElement (Monitor monitor)

Package Attributes

Vector list
int count

Detailed Description

Table for managing outgoing commands.

Table of OutCommandHandle entries with various accessors by value. Includes member count to allocate command identifiers. Identifier 0 is reserved to indicate a null identifier.

See also:
OutCommandHandle

Definition at line 359 of file MonitorAgent.java.


Constructor & Destructor Documentation

com.scalagent.scheduler.monitor.OutCommandTable.OutCommandTable (  )  [package]

Constructor.

Definition at line 368 of file MonitorAgent.java.

References com.scalagent.scheduler.monitor.OutCommandTable.count, and com.scalagent.scheduler.monitor.OutCommandTable.list.


Member Function Documentation

String com.scalagent.scheduler.monitor.OutCommandTable.toString (  ) 

Provides a string image for this object.

Returns:
a string image for this object

Definition at line 378 of file MonitorAgent.java.

References com.scalagent.scheduler.monitor.OutCommandTable.count, and com.scalagent.scheduler.monitor.OutCommandTable.list.

OutCommandHandle com.scalagent.scheduler.monitor.OutCommandTable.addElement ( AgentId  target,
CommandMonitor  monitor 
) [package]

Creates a new entry and inserts it in this object. Allocates a command identifier.

Parameters:
target target agent identifier
monitor monitor issuing command
Returns:
the created entry

Definition at line 392 of file MonitorAgent.java.

References com.scalagent.scheduler.monitor.OutCommandTable.count, and com.scalagent.scheduler.monitor.OutCommandTable.list.

Referenced by com.scalagent.scheduler.monitor.MonitorAgent.sendTo().

boolean com.scalagent.scheduler.monitor.OutCommandTable.removeElement ( OutCommandHandle  handle  )  [package]

Removes entry.

Parameters:
handle entry to remove
Returns:
true if element was in vector, false otherwise

Definition at line 407 of file MonitorAgent.java.

References com.scalagent.scheduler.monitor.OutCommandTable.list.

Referenced by com.scalagent.scheduler.monitor.MonitorAgent.childReport().

OutCommandHandle com.scalagent.scheduler.monitor.OutCommandTable.getElement ( int  id  )  [package]

Gets an entry by id.

Parameters:
id command identifier local to source agent
Returns:
the corresponding entry

Definition at line 422 of file MonitorAgent.java.

References com.scalagent.scheduler.monitor.OutCommandTable.list.

Referenced by com.scalagent.scheduler.monitor.MonitorAgent.childReport(), and com.scalagent.scheduler.monitor.MonitorAgent.react().

OutCommandHandle com.scalagent.scheduler.monitor.OutCommandTable.getElement ( Monitor  monitor  )  [package]

Gets an entry by monitor.

Parameters:
monitor monitor issuing command
Returns:
the corresponding entry

Definition at line 439 of file MonitorAgent.java.

References com.scalagent.scheduler.monitor.OutCommandTable.list.


Member Data Documentation

Vector com.scalagent.scheduler.monitor.OutCommandTable.list [package]

list of OutCommandHandle entries

Definition at line 361 of file MonitorAgent.java.

Referenced by com.scalagent.scheduler.monitor.OutCommandTable.addElement(), com.scalagent.scheduler.monitor.OutCommandTable.getElement(), com.scalagent.scheduler.monitor.OutCommandTable.OutCommandTable(), com.scalagent.scheduler.monitor.OutCommandTable.removeElement(), and com.scalagent.scheduler.monitor.OutCommandTable.toString().

int com.scalagent.scheduler.monitor.OutCommandTable.count [package]

top command identifier

Definition at line 363 of file MonitorAgent.java.

Referenced by com.scalagent.scheduler.monitor.OutCommandTable.addElement(), com.scalagent.scheduler.monitor.OutCommandTable.OutCommandTable(), and com.scalagent.scheduler.monitor.OutCommandTable.toString().


The documentation for this class was generated from the following file:
Generated on Tue Sep 16 16:15:51 2008 for joram by  doxygen 1.5.0