Package cmion.level2
Class CompetencyLibrary
- java.lang.Object
-
- ion.Meta.Element
-
- cmion.architecture.CmionComponent
-
- cmion.level2.CompetencyLibrary
-
public class CompetencyLibrary extends CmionComponent
the competency library is the component that registers all components
-
-
Field Summary
-
Fields inherited from class cmion.architecture.CmionComponent
architecture
-
-
Constructor Summary
Constructors Constructor Description CompetencyLibrary(IArchitecture architecture, java.lang.String competencyLibraryFile)Create a new competency library
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.ArrayList<Competency>getCompetencies(java.lang.String type)return a List of competencies with the given type, the list will be empty if no such competency is in the libraryjava.util.ArrayList<SamgarCompetencyInfo>getSamgarCompetencyInfos()returns a list of information items regarding the samgar competencies to be loaded by the architecture.protected java.io.InputStreamopenConfigurationFile(java.lang.String competencyLibraryFile)voidregisterHandlers()every cmion component has to implement this method and register its event and request handlers in herevoidstartBackgroundCompetencies()in this function all competencies that are continuously running in the background are started-
Methods inherited from class cmion.architecture.CmionComponent
getArchitecture, isConnected, onDestroy, raise
-
-
-
-
Constructor Detail
-
CompetencyLibrary
public CompetencyLibrary(IArchitecture architecture, java.lang.String competencyLibraryFile) throws java.lang.Exception
Create a new competency library- Throws:
java.lang.Exception
-
-
Method Detail
-
openConfigurationFile
protected java.io.InputStream openConfigurationFile(java.lang.String competencyLibraryFile) throws java.lang.Exception- Throws:
java.lang.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
public java.util.ArrayList<Competency> getCompetencies(java.lang.String type)
return a List of competencies with the given type, the list will be empty if no such competency is in the library
-
getSamgarCompetencyInfos
public java.util.ArrayList<SamgarCompetencyInfo> 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
-
-