jadex.application.model
Class MApplicationType

java.lang.Object
  extended by jadex.application.model.MStartable
      extended by jadex.application.model.MApplicationType
All Implemented Interfaces:
ICacheableModel

public class MApplicationType
extends MStartable
implements ICacheableModel

Application type representation.


Field Summary
protected  List applications
          The list of contained application descriptions.
protected  List componenttypes
          The list of contained component types.
protected  MExpressionType container
          The service container.
protected  List imports
          The imports.
protected  long lastchecked
          The last check date.
protected  long lastmodified
          The last modified date.
protected  ModelInfo modelinfo
          The model info.
protected  List propertylist
          The property list.
protected  List providedservices
          The provided services.
protected  List requiredservices
          The required services.
protected  List spacetypes
          The list of contained space types.
 
Constructor Summary
MApplicationType()
          Create a new application type.
 
Method Summary
 void addArgument(Argument argument)
          Add an argument.
 void addImport(String importstr)
          Add an import.
 void addMApplicationInstance(MApplicationInstance application)
          Add an application.
 void addMComponentType(MComponentType componenttype)
          Add an component type.
 void addMProvidedServiceType(MProvidedServiceType service)
          Add a service.
 void addMRequiredServiceType(MRequiredServiceType service)
          Add a required service.
 void addMSpaceType(MSpaceType spacetype)
          Add a space type.
 void addProperty(MExpressionType property)
          Add a property.
 void addResult(Argument result)
          Add a result.
 String[] getAllImports()
          Get complete imports (including own package).
 MExpressionType getContainer()
          Get the container.
 List getImports()
          Get the imports.
 long getLastChecked()
          Get the lastchecked.
 long getLastModified()
          Get the lastmodified.
 List getMApplicationInstances()
          Get the applications.
 MComponentType getMComponentType(String name)
          Get a named componenttype.
 List getMComponentTypes()
          Get the componenttypes.
 ModelInfo getModelInfo()
          Get the modelinfo.
 MSpaceType getMSpaceType(String name)
          Get a named spacetype.
 List getMSpaceTypes()
          Get the space types.
 List getPropertyList()
          Get the propertylist.
 List getProvidedServices()
          Get the provided services.
 List getRequiredServices()
          Get the required services.
 void initModelInfo(MultiCollection entries)
          Init the model info.
 void setClassloader(ClassLoader classloader)
          Set the classloader.
 void setContainer(MExpressionType container)
          Set the container.
 void setDescription(String description)
          Set the description.
 void setFilename(String filename)
          Set the filename.
 void setLastChecked(long lastchecked)
          Set the lastchecked.
 void setLastModified(long lastmodified)
          Set the lastmodified.
 void setName(String name)
          Set the name.
 void setPackage(String packagename)
          Set the package.
 
Methods inherited from class jadex.application.model.MStartable
getAutoShutdown, getDaemon, getMaster, getSuspend, setAutoShutdown, setDaemon, setMaster, setSuspend
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

imports

protected List imports
The imports.


spacetypes

protected List spacetypes
The list of contained space types.


componenttypes

protected List componenttypes
The list of contained component types.


applications

protected List applications
The list of contained application descriptions.


container

protected MExpressionType container
The service container.


lastmodified

protected long lastmodified
The last modified date.


lastchecked

protected long lastchecked
The last check date.


propertylist

protected List propertylist
The property list.


modelinfo

protected ModelInfo modelinfo
The model info.


providedservices

protected List providedservices
The provided services.


requiredservices

protected List requiredservices
The required services.

Constructor Detail

MApplicationType

public MApplicationType()
Create a new application type.

Method Detail

initModelInfo

public void initModelInfo(MultiCollection entries)
Init the model info.


setName

public void setName(String name)
Set the name.

Parameters:
name - The name to set.

setPackage

public void setPackage(String packagename)
Set the package.

Parameters:
packagename - The package name to set.

setDescription

public void setDescription(String description)
Set the description.

Parameters:
desc - The description.

setFilename

public void setFilename(String filename)
Set the filename.

Parameters:
filename - The filename.

getPropertyList

public List getPropertyList()
Get the propertylist.

Returns:
the propertylist.

getLastModified

public long getLastModified()
Get the lastmodified.

Specified by:
getLastModified in interface ICacheableModel
Returns:
the lastmodified.

setLastModified

public void setLastModified(long lastmodified)
Set the lastmodified.

Parameters:
lastmodified - The lastmodified to set.

getLastChecked

public long getLastChecked()
Get the lastchecked.

Specified by:
getLastChecked in interface ICacheableModel
Returns:
the lastchecked.

setLastChecked

public void setLastChecked(long lastchecked)
Set the lastchecked.

Specified by:
setLastChecked in interface ICacheableModel
Parameters:
lastchecked - The lastchecked to set.

addImport

public void addImport(String importstr)
Add an import.

Parameters:
import - The import.

addMComponentType

public void addMComponentType(MComponentType componenttype)
Add an component type.

Parameters:
componenttype - The component type.

addMSpaceType

public void addMSpaceType(MSpaceType spacetype)
Add a space type.

Parameters:
componenttype - The space type.

addMApplicationInstance

public void addMApplicationInstance(MApplicationInstance application)
Add an application.

Parameters:
application - The application.

addArgument

public void addArgument(Argument argument)
Add an argument.

Parameters:
argument - The argument.

addResult

public void addResult(Argument result)
Add a result.

Parameters:
result - The result.

addMProvidedServiceType

public void addMProvidedServiceType(MProvidedServiceType service)
Add a service.

Parameters:
service - The service.

addMRequiredServiceType

public void addMRequiredServiceType(MRequiredServiceType service)
Add a required service.

Parameters:
service - The required service.

addProperty

public void addProperty(MExpressionType property)
Add a property.

Parameters:
property - The property.

getImports

public List getImports()
Get the imports.

Returns:
The imports.

getMComponentTypes

public List getMComponentTypes()
Get the componenttypes.

Returns:
The componenttypes.

getMSpaceTypes

public List getMSpaceTypes()
Get the space types.

Returns:
The spacetypes.

getMComponentType

public MComponentType getMComponentType(String name)
Get a named componenttype.

Parameters:
name - The component type name.
Returns:
The componenttype (if any).

getMSpaceType

public MSpaceType getMSpaceType(String name)
Get a named spacetype.

Parameters:
name - The space type name.
Returns:
The spacetype (if any).

getMApplicationInstances

public List getMApplicationInstances()
Get the applications.

Returns:
The applications.

getAllImports

public String[] getAllImports()
Get complete imports (including own package).

Returns:
An array of imports;

getProvidedServices

public List getProvidedServices()
Get the provided services.

Returns:
The services.

getRequiredServices

public List getRequiredServices()
Get the required services.

Returns:
The services.

getContainer

public MExpressionType getContainer()
Get the container.

Returns:
the container.

setContainer

public void setContainer(MExpressionType container)
Set the container.

Parameters:
container - The container to set.

setClassloader

public void setClassloader(ClassLoader classloader)
Set the classloader.

Parameters:
classloader - The classloader.

getModelInfo

public ModelInfo getModelInfo()
Get the modelinfo.

Returns:
the modelinfo.


Copyright © 2010. All Rights Reserved.