Class Module
java.lang.Object
org.palladiosimulator.protocom.framework.java.ee.modules.Module
- Direct Known Subclasses:
ContainerModule
,SystemModule
The Module class is the common base class for modules.
A module represents an entity (e.g., component) that can be started by a user.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the display name of the module.getId()
Gets the ID of the module.getName()
Gets the name of the module.boolean
Checks whether the module is started.void
setDisplayName
(String displayName) Sets the display name of the module.void
setStarted
(boolean started) Sets the started state of the module.abstract void
Starts the module.
-
Constructor Details
-
Module
Constructs a new Module object.- Parameters:
id
- the ID of the modulename
- the name of the module
-
-
Method Details
-
getId
Gets the ID of the module.- Returns:
- the ID of the module
-
getName
Gets the name of the module.- Returns:
- the name of the module
-
setDisplayName
Sets the display name of the module.- Parameters:
displayName
- the display name of the module
-
getDisplayName
Gets the display name of the module.- Returns:
- the display name of the module
-
isStarted
public boolean isStarted()Checks whether the module is started.- Returns:
- true if the module is started, otherwise false
-
setStarted
public void setStarted(boolean started) Sets the started state of the module.- Parameters:
started
- true if the module is started, otherwise false
-
start
Starts the module.- Parameters:
location
- the location of the module- Throws:
ModuleStartException
- when the module could not be started
-