org.almendra.janet.cas.node
Class Application

java.lang.Object
  extended by org.almendra.janet.cas.node.AbstractApplication
      extended by org.almendra.janet.cas.node.Application
All Implemented Interfaces:
INamedObject, ILoggable, IObjectSpaceProvider

public class Application
extends AbstractApplication

Author:
Oliver To change the template for this generated type comment go to Window - Preferences - Java - Code Generation - Code and Comments

Field Summary
protected  boolean isPropagated
           
protected  int numOfCreatedAgents
           
protected  int numOfCreatedSchedulers
           
 
Fields inherited from class org.almendra.janet.cas.node.AbstractApplication
capabilities, eventRegistry, exportedEvents, LOG_EVENT_REGISTERED_AGENT, logger, name, node, numOfSchedulers, objectSpace, started
 
Constructor Summary
Application()
           
Application(Logger logger, Node node, java.lang.String name)
           
Application(java.lang.String name)
           
 
Method Summary
 int getNumOfCreatedAgents()
           
 int getNumOfCreatedSchedulers()
           
 boolean isPropagated()
           
protected  void primStart()
          Start all the agents of the capability.
 void setPropagated(boolean isPropagated)
           
 
Methods inherited from class org.almendra.janet.cas.node.AbstractApplication
addCapabilities, addCapability, addExportedEventDescriptors, checkValidity, getAccessor, getAgent, getAgent, getAgentCount, getAgentDispatcher, getAgentDispatcher, getAgentPaths, getAgentPaths, getAllAgentPaths, getAllAgentPaths, getAllAgentPaths, getAllAgents, getAllAgentsWithCapability, getAllCrossAgentPaths, getAllCrossAgents, getAllCrossAgents, getAllForeignAgentPaths, getAllForeignAgents, getAllForeignNodeNames, getAllForeignNodeNamesWithCentral, getAllLocalAgentNames, getAllNodeNames, getAllNodeNamesWithCapability, getAllQualifiedAgentNames, getCapabilities, getCapability, getCrossAgent, getEventRegistry, getExportedEvents, getForeignNodeNames, getLocalAgent, getLocalAgentPath, getLogger, getMonitorMask, getMonitorMaskDefaultValues, getName, getNameDescriptor, getNode, getNodeEventRegistryEnvelope, getNodeLabel, getNodeName, getNodeNames, getNodeObjectSpace, getNumberOfSchedulers, getObjectSpace, getSystemAgentPath, hasAgent, hasAgent, hasCapabilities, hasCapability, hasCapability, hasForeignAgents, isStarted, isSystemApplication, primRegisterEvents, primStartInitialCommands, primStop, registeredLogEvents, setAndInitLogger, setName, setNode, setStarted, start, stop, toForeignDescriptor, toTreeDescriptor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

numOfCreatedAgents

protected int numOfCreatedAgents

numOfCreatedSchedulers

protected int numOfCreatedSchedulers

isPropagated

protected boolean isPropagated
Constructor Detail

Application

public Application()

Application

public Application(java.lang.String name)

Application

public Application(Logger logger,
                   Node node,
                   java.lang.String name)
Parameters:
logger -
node -
name -
Method Detail

isPropagated

public boolean isPropagated()
Returns:
Returns the isPropagated.

setPropagated

public void setPropagated(boolean isPropagated)
Parameters:
isPropagated - The isPropagated to set.

getNumOfCreatedAgents

public int getNumOfCreatedAgents()
Returns:
Returns the numOfCreatedAgents.

getNumOfCreatedSchedulers

public int getNumOfCreatedSchedulers()
Returns:
Returns the numOfCreatedSchedulers.

primStart

protected void primStart()
Start all the agents of the capability. If an agent shares its schedulerAnchor with other agents, the schedulerAnchor is only created once for all these agents sharing it.

Overrides:
primStart in class AbstractApplication