| java.lang.Object org.cougaar.lib.vishnu.client.PluginHelper org.cougaar.lib.vishnu.client.ExternalMode org.cougaar.lib.vishnu.client.InternalMode
All known Subclasses: org.cougaar.lib.vishnu.client.DirectMode,
InternalMode | public class InternalMode extends ExternalMode (Code) | | Internal mode.
Creates an internal instance of the scheduler and talks to it, instead
of to a web server.
|
alwaysClearDatabase | boolean alwaysClearDatabase(Code) | | |
newDecoder | protected boolean newDecoder(Code) | | |
sched | protected Scheduler sched(Code) | | the internal scheduler instance
|
writeVSHToFile | protected boolean writeVSHToFile(Code) | | |
writeXMLToFile | protected boolean writeXMLToFile(Code) | | |
cleanUpAfterScheduling | protected void cleanUpAfterScheduling(int unhandledTasks)(Code) | | Inform of # of unhandled tasks
Freeze all assignments if incremental mode
|
dumpPostProcess | protected void dumpPostProcess()(Code) | | Method to hide domain-specific output routines
|
dumpToXML | public String dumpToXML()(Code) | | queries the scheduler to get a full specification of the problem
(including specs, logic, gaspecs, objects, assignments, etc)
|
handleRemovedTasks | public void handleRemovedTasks(Enumeration removedTasks)(Code) | | Place to handle rescinded tasks.
Sends XML to unfreeze the task assignment and delete it.
Parameters: removedTasks - changed assets found in the container See Also: com.bbn.vishnu.scheduling.Scheduler.setupInternal |
initializeWithFormat | public void initializeWithFormat()(Code) | | Implemented for SchedulerLifecycle
Call SAXParser in scheduler to set it up with the specs, object format, etc.
See Also: com.bbn.vishnu.scheduling.Scheduler.setupInternal |
prepareScheduler | protected int prepareScheduler()(Code) | | Call setupInternal to initialize scheduler with task and asset data
See Also: com.bbn.vishnu.scheduling.Scheduler.setupInternal |
run | public void run()(Code) | |
Run internally. Give the scheduler the contents of
the internalBuffer (in VishnuComm), which has captured all the xml output
that would normally go to the various URLs if in external mode.
Then, parse the results using an XMLResultHandler, which is just a SAX
Parser and the AssignmentHandler, which just calls parseStartElement and
parseEndElement. The AssignmentHandler will call methods in the VishnuPlugin
to create plan elements for each assignment.
See Also: XMLResultHandler.parseStartElement See Also: XMLResultHandler.parseEndElement |
seedScheduler | public void seedScheduler(String seedChrom)(Code) | | seeds the scheduler with the given chromosome
in format "Cid*%*id*%*..."
|
sendOtherData | protected void sendOtherData()(Code) | | send other data, if it hasn't already been sent
See Also: com.bbn.vishnu.scheduling.Scheduler.setupInternal |
serializeAndPostDoc | protected void serializeAndPostDoc(Document doc)(Code) | | Serialize and post telling scheduler to setupInternal
See Also: com.bbn.vishnu.scheduling.Scheduler.setupInternal |
setupScheduler | public void setupScheduler()(Code) | | Create a new scheduler if in batch mode or if called the first time
|
unfreezeTasks | public void unfreezeTasks(Collection tasks)(Code) | | Place to handle unfrozen tasks.
Sends XML to unfreeze the task assignment
Parameters: newAssets - changed assets found in the container See Also: com.bbn.vishnu.scheduling.Scheduler.setupInternal |
|
|