Package cmion.level2
Class CompetencyLibrary
java.lang.Object
ion.Meta.Element
cmion.architecture.CmionComponent
cmion.level2.CompetencyLibrary
the competency library is the component that registers all components
-
Field Summary
Fields inherited from class cmion.architecture.CmionComponent
architecture -
Constructor Summary
ConstructorsConstructorDescriptionCompetencyLibrary(IArchitecture architecture, String competencyLibraryFile) Create a new competency library -
Method Summary
Modifier and TypeMethodDescriptiongetCompetencies(String type) return a List of competencies with the given type, the list will be empty if no such competency is in the libraryreturns a list of information items regarding the samgar competencies to be loaded by the architecture.protected InputStreamopenConfigurationFile(String competencyLibraryFile) final voidevery cmion component has to implement this method and register its event and request handlers in herevoidin this function all competencies that are continuously running in the background are startedMethods 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
-
CompetencyLibrary
Create a new competency library- Throws:
Exception
-
-
Method Details
-
openConfigurationFile
- Throws:
Exception
-
registerHandlers
public final void registerHandlers()Description copied from class:CmionComponentevery cmion component has to implement this method and register its event and request handlers in here- Specified by:
registerHandlersin classCmionComponent
-
startBackgroundCompetencies
public void startBackgroundCompetencies()in this function all competencies that are continuously running in the background are started -
getCompetencies
return a List of competencies with the given type, the list will be empty if no such competency is in the library -
getSamgarCompetencyInfos
returns a list of information items regarding the samgar competencies to be loaded by the architecture. Do not modify the returned list or its contents outside this method
-