net.sf.mmapps.modules.config.implementation
Class BasicApplicationConfiguration

java.lang.Object
  extended bynet.sf.mmapps.modules.config.implementation.BasicApplicationConfiguration
All Implemented Interfaces:
ApplicationConfiguration

public class BasicApplicationConfiguration
extends java.lang.Object
implements ApplicationConfiguration

implementation of ApplicationConfiguration

Version:
$Id: BasicApplicationConfiguration.java,v 1.2 2004/05/18 13:53:51 keesj Exp $
Author:
Kees Jongenburger

Field Summary
(package private)  Strings depends
           
(package private)  java.lang.String maintainer
           
(package private)  java.lang.String name
           
(package private)  NodeManagerConfigurations nodeManagerConfigurations
           
(package private)  RelationManagerConfigurations relationManagerConfigurations
           
(package private)  RelationTypes relationTypes
           
(package private)  Strings requiredNodeManagers
           
(package private)  java.lang.String version
           
 
Constructor Summary
protected BasicApplicationConfiguration()
          Creates a new instance of BasicApplicationConfiguration
 
Method Summary
 void add(ApplicationConfiguration applicationConfiguration)
           
 void addDepends(java.lang.String name)
           
 void addNodeManagerConfiguration(NodeManagerConfiguration nodeManagerConfiguration)
          add a nodemanager configuration to the application
 void addRelationManagerConfiguration(RelationManagerConfiguration relationManagerConfiguration)
          add a relation manager configuration to the application
 void addRelationType(RelationType relationType)
           
 void addRequiredNodeManager(java.lang.String name)
           
 Strings getDepends()
           
 java.lang.String getMaintainer()
           
 java.lang.String getName()
           
 NodeManagerConfigurations getNodeManagerConfigurations()
           
 RelationManagerConfigurations getRelationManagerConfigurations()
           
 RelationType getRelationType(java.lang.String name)
           
 RelationTypes getRelationTypes()
           
 Strings getRequiredNodeManagers()
           
 java.lang.String getVersion()
           
 void setMaintainer(java.lang.String maintainer)
           
 void setName(java.lang.String name)
          set the name of the application
 void setVersion(java.lang.String version)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

java.lang.String name

maintainer

java.lang.String maintainer

version

java.lang.String version

nodeManagerConfigurations

NodeManagerConfigurations nodeManagerConfigurations

relationManagerConfigurations

RelationManagerConfigurations relationManagerConfigurations

relationTypes

RelationTypes relationTypes

requiredNodeManagers

Strings requiredNodeManagers

depends

Strings depends
Constructor Detail

BasicApplicationConfiguration

protected BasicApplicationConfiguration()
Creates a new instance of BasicApplicationConfiguration

Method Detail

setName

public void setName(java.lang.String name)
set the name of the application

Specified by:
setName in interface ApplicationConfiguration
Parameters:
name - the name of the application

getName

public java.lang.String getName()
Specified by:
getName in interface ApplicationConfiguration
Returns:
the name of the application

setMaintainer

public void setMaintainer(java.lang.String maintainer)
Specified by:
setMaintainer in interface ApplicationConfiguration
Parameters:
maintainer - the maintainer of the aplication(orgianisation/url)

getMaintainer

public java.lang.String getMaintainer()
Specified by:
getMaintainer in interface ApplicationConfiguration
Returns:
the maintainer

setVersion

public void setVersion(java.lang.String version)
Specified by:
setVersion in interface ApplicationConfiguration
Parameters:
version - the version of the application

getVersion

public java.lang.String getVersion()
Specified by:
getVersion in interface ApplicationConfiguration
Returns:
the version of the application

addNodeManagerConfiguration

public void addNodeManagerConfiguration(NodeManagerConfiguration nodeManagerConfiguration)
add a nodemanager configuration to the application

Specified by:
addNodeManagerConfiguration in interface ApplicationConfiguration
Parameters:
nodeManagerConfiguration - the nodemanagerconfiguration to add

addRequiredNodeManager

public void addRequiredNodeManager(java.lang.String name)
Specified by:
addRequiredNodeManager in interface ApplicationConfiguration

getRequiredNodeManagers

public Strings getRequiredNodeManagers()
Specified by:
getRequiredNodeManagers in interface ApplicationConfiguration

addRelationManagerConfiguration

public void addRelationManagerConfiguration(RelationManagerConfiguration relationManagerConfiguration)
add a relation manager configuration to the application

Specified by:
addRelationManagerConfiguration in interface ApplicationConfiguration
Parameters:
relationManagerConfiguration - the relation manager configuration to add

getNodeManagerConfigurations

public NodeManagerConfigurations getNodeManagerConfigurations()
Specified by:
getNodeManagerConfigurations in interface ApplicationConfiguration
Returns:
the list of NodeManager configurations defined by the application. This list contains node managers and "relation" node managers

getRelationManagerConfigurations

public RelationManagerConfigurations getRelationManagerConfigurations()
Specified by:
getRelationManagerConfigurations in interface ApplicationConfiguration
Returns:
the list of defined possible relations between to nodemanagers (using a certain "relation" node manager)

addRelationType

public void addRelationType(RelationType relationType)
Specified by:
addRelationType in interface ApplicationConfiguration

getRelationTypes

public RelationTypes getRelationTypes()
Specified by:
getRelationTypes in interface ApplicationConfiguration

getRelationType

public RelationType getRelationType(java.lang.String name)
Specified by:
getRelationType in interface ApplicationConfiguration

addDepends

public void addDepends(java.lang.String name)
Specified by:
addDepends in interface ApplicationConfiguration

getDepends

public Strings getDepends()
Specified by:
getDepends in interface ApplicationConfiguration

add

public void add(ApplicationConfiguration applicationConfiguration)
Specified by:
add in interface ApplicationConfiguration


Copyright © 2003-2004 mmapps. All Rights Reserved.