Package cmion.level2.competencies.test
Class TestCompetency8
java.lang.Object
ion.Meta.Element
cmion.architecture.CmionComponent
cmion.level2.Competency
cmion.level2.competencies.test.TestCompetency8
- All Implemented Interfaces:
Runnable
one of several test competencies to test the execution system
-
Field Summary
Fields inherited from class cmion.level2.Competency
available, competencyName, competencyType, plan, runningFields inherited from class cmion.architecture.CmionComponent
architecture -
Constructor Summary
ConstructorsConstructorDescriptionTestCompetency8(IArchitecture architecture) constructor of the test competency -
Method Summary
Modifier and TypeMethodDescriptionvoidcancel()implementing cancel method to give this competency the ability to be cancelledprotected booleancompetencyCode(HashMap<String, String> parameters) competency codevoidperform initialisations in this methodbooleanthis competency is invoked directly (does not run in background)Methods inherited from class cmion.level2.Competency
getCompetencyName, getCompetencyType, isAvailable, isRunning, registerHandlers, requestStartCompetency, run, setAdditionalDataMethods inherited from class cmion.architecture.CmionComponent
getArchitecture, isConnected, onDestroy, raiseMethods inherited from class ion.Meta.Element
destroy, getEventFilters, getEventHandlers, getRequestFilters, getRequestHandlers, getSimulation, getUID, schedule, wasDestroyed
-
Constructor Details
-
TestCompetency8
constructor of the test competency
-
-
Method Details
-
initialize
public void initialize()perform initialisations in this method- Specified by:
initializein classCompetency
-
runsInBackground
public boolean runsInBackground()this competency is invoked directly (does not run in background)- Specified by:
runsInBackgroundin classCompetency
-
cancel
public void cancel()implementing cancel method to give this competency the ability to be cancelled- Overrides:
cancelin classCompetency
-
competencyCode
protected boolean competencyCode(HashMap<String, String> parameters) throws CompetencyCancelledExceptioncompetency code- Specified by:
competencyCodein classCompetency- Parameters:
parameters- a map including running parameters and their values- Returns:
- the return value of this method should indicate, whether the competency execution was a success (true) or failure (false)
- Throws:
CompetencyCancelledException
-