|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object pt.digitalis.dif.dem.managers.impl.DEMManagerImpl
public class DEMManagerImpl
This class manages the DEM entities, providing the connections between the elements to the CodeGen module. TODO: Do performance tests to determine if the getters that search sequentially the Maps are too slow. One could keep an index of IDs for each entity and gather by direct id searches the dependent entities we need. Since this will be seldom used I think the effort is unnecessary.
Constructor Summary | |
---|---|
DEMManagerImpl()
|
Method Summary | |
---|---|
IApplication |
getApplication(String applicationID)
Returns the application with the given id |
Map<String,IApplication> |
getApplications(IProvider provider)
Returns all applications related to the given provider. |
IProvider |
getDefaultProvider()
Returns the default provider |
IEntity |
getEntity(Entity type,
String entityID)
Returns the entity with the given id |
IProvider |
getProvider(String providerID)
Returns the provider with the given id |
Map<String,IProvider> |
getProviders()
Returns all registered providers. |
IService |
getService(String serviceID)
Returns the service with the given id |
Map<String,IService> |
getServices(IApplication application)
Returns all services related to the given application. |
IStage |
getStage(String stageID)
Returns the stage with the given id |
Map<String,IStage> |
getStages(IService service)
Returns all stages related to the given service. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DEMManagerImpl()
Method Detail |
---|
public IApplication getApplication(String applicationID)
IDEMManager
getApplication
in interface IDEMManager
applicationID
- the application id
IDEMManager.getApplication(java.lang.String)
public Map<String,IApplication> getApplications(IProvider provider)
IDEMManager
getApplications
in interface IDEMManager
provider
- the provider
IDEMManager.getApplications(pt.digitalis.dif.dem.interfaces.IProvider)
public IProvider getDefaultProvider()
IDEMManager
getDefaultProvider
in interface IDEMManager
IDEMManager.getDefaultProvider()
public IEntity getEntity(Entity type, String entityID)
IDEMManager
getEntity
in interface IDEMManager
type
- the entity typeentityID
- the entity ID
IDEMManager.getEntity(pt.digitalis.dif.dem.Entity, java.lang.String)
public IProvider getProvider(String providerID)
IDEMManager
getProvider
in interface IDEMManager
providerID
- the provider id
IDEMManager.getProvider(java.lang.String)
public Map<String,IProvider> getProviders()
IDEMManager
getProviders
in interface IDEMManager
IDEMManager.getProviders()
public IService getService(String serviceID)
IDEMManager
getService
in interface IDEMManager
serviceID
- the service id
IDEMManager.getService(java.lang.String)
public Map<String,IService> getServices(IApplication application)
IDEMManager
getServices
in interface IDEMManager
application
- the application
IDEMManager.getServices(pt.digitalis.dif.dem.interfaces.IApplication)
public IStage getStage(String stageID)
IDEMManager
getStage
in interface IDEMManager
stageID
- the stage id
IDEMManager.getStage(java.lang.String)
public Map<String,IStage> getStages(IService service)
IDEMManager
getStages
in interface IDEMManager
service
- the service
IDEMManager.getStages(pt.digitalis.dif.dem.interfaces.IService)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |