org.almendra.janet.cas.node
Class ApplicationDescriptor

java.lang.Object
  extended by org.almendra.janet.cas.node.Descriptor
      extended by org.almendra.janet.cas.node.ApplicationDescriptor
Direct Known Subclasses:
SystemApplicationDescriptor

public class ApplicationDescriptor
extends Descriptor

Author:
Oliver

Field Summary
protected  java.util.List agentNames
           
protected  java.util.List capabilityDescriptors
           
protected  java.util.List exportedEvents
           
protected  java.lang.String name
           
static java.lang.String XMLAgentNameTag
           
static java.lang.String XMLAgentsTag
           
static java.lang.String XMLExportedEventsTag
           
static java.lang.String XMLNameTag
           
static java.lang.String XMLNodeTag
           
static java.lang.String XMLParentTag
           
 
Constructor Summary
ApplicationDescriptor()
           
 
Method Summary
 void addAgentName(java.lang.String agentName)
           
 void addCapabilityDescriptor(CapabilityDescriptor desc)
           
static ApplicationDescriptor createAppDesc(org.jdom.Element element)
           
protected  EventDescriptor createEventDescriptor(org.jdom.Element eventNode)
           
protected  void fill(AbstractApplication app)
           
 void fill(org.jdom.Element element)
           
protected  void fillCapabilities(org.jdom.Element element)
           
protected  void fillCapabilities(org.jdom.Element element, boolean mustHaveAgentsDefined)
           
 java.util.List getCapabilities(AbstractApplication app)
           
 java.util.List getCapabilityDescriptors()
           
 java.util.List getExportedEvents()
           
 java.lang.String getName()
           
protected  boolean isMustHaveAgentsDefined()
           
 void setCapabilityDescriptors(java.util.List capabilityDescriptors)
           
protected  void setExportedEvents(org.jdom.Element element)
           
protected  void setName(org.jdom.Element element)
           
 void setName(java.lang.String applicationName)
           
 Application toApplication()
           
 SystemApplication toSystemApplication()
           
 void visit(java.util.Map values)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

XMLParentTag

public static final java.lang.String XMLParentTag
See Also:
Constant Field Values

XMLNodeTag

public static final java.lang.String XMLNodeTag
See Also:
Constant Field Values

XMLNameTag

public static final java.lang.String XMLNameTag
See Also:
Constant Field Values

XMLAgentsTag

public static final java.lang.String XMLAgentsTag
See Also:
Constant Field Values

XMLAgentNameTag

public static final java.lang.String XMLAgentNameTag
See Also:
Constant Field Values

XMLExportedEventsTag

public static final java.lang.String XMLExportedEventsTag
See Also:
Constant Field Values

name

protected java.lang.String name

capabilityDescriptors

protected java.util.List capabilityDescriptors

agentNames

protected java.util.List agentNames

exportedEvents

protected java.util.List exportedEvents
Constructor Detail

ApplicationDescriptor

public ApplicationDescriptor()
Method Detail

getName

public java.lang.String getName()
Returns:
Returns the name.

setName

public void setName(java.lang.String applicationName)
Parameters:
name - The name to set.

getCapabilityDescriptors

public java.util.List getCapabilityDescriptors()
Returns:
Returns the capabilities.

getCapabilities

public java.util.List getCapabilities(AbstractApplication app)
                               throws DescriptorParseException
Throws:
DescriptorParseException

addCapabilityDescriptor

public void addCapabilityDescriptor(CapabilityDescriptor desc)

createAppDesc

public static ApplicationDescriptor createAppDesc(org.jdom.Element element)
                                           throws XMLParseException
Throws:
XMLParseException

fill

public void fill(org.jdom.Element element)
          throws XMLParseException
Throws:
XMLParseException

setExportedEvents

protected void setExportedEvents(org.jdom.Element element)
                          throws XMLParseException
Parameters:
element -
Throws:
XMLParseException

createEventDescriptor

protected EventDescriptor createEventDescriptor(org.jdom.Element eventNode)
                                         throws XMLParseException
Parameters:
eventNode -
Returns:
Throws:
XMLParseException

setName

protected void setName(org.jdom.Element element)
                throws XMLParseException
Parameters:
element -
Throws:
XMLParseException

isMustHaveAgentsDefined

protected boolean isMustHaveAgentsDefined()
Returns:

fillCapabilities

protected void fillCapabilities(org.jdom.Element element)
                         throws XMLParseException
Throws:
XMLParseException

fillCapabilities

protected void fillCapabilities(org.jdom.Element element,
                                boolean mustHaveAgentsDefined)
                         throws XMLParseException
Throws:
XMLParseException

setCapabilityDescriptors

public void setCapabilityDescriptors(java.util.List capabilityDescriptors)
Parameters:
capabilityDescriptors - The capabilityDescriptors to set.

addAgentName

public void addAgentName(java.lang.String agentName)

fill

protected void fill(AbstractApplication app)
             throws DescriptorParseException
Throws:
DescriptorParseException

toSystemApplication

public SystemApplication toSystemApplication()
                                      throws DescriptorParseException
Throws:
DescriptorParseException

toApplication

public Application toApplication()
                          throws DescriptorParseException
Throws:
DescriptorParseException

getExportedEvents

public java.util.List getExportedEvents()
Returns:
Returns the exportedEvents.

visit

public void visit(java.util.Map values)
Parameters:
values -