Package jadex.model.modelinfo
Class ModelInfo
java.lang.Object
jadex.model.modelinfo.Startable
jadex.model.modelinfo.ModelInfo
- All Implemented Interfaces:
IModelInfo
Public model information that is provided as result from
component factories when a model is loaded.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String[]All imports (cached for speed).protected String[]The breakpoints.The feature models.protected StringThe filename.protected StringThe full name (cached for speed).The imports.protected StringThe name.protected StringThe package.protected ObjectThe raw model.protected IErrorReportThe report.protected StringThe type.Fields inherited from class jadex.model.modelinfo.Startable
description -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd an import statement.booleanCheck if the specified name matches the file name.booleanCheck if the specified package matches the file name.String[]Get the imports including the package.String[]Get the possible breakpoint places in that model.getFeatureModel(Class<?> key) Get a feature model per class.Get the filename.Get the full model name (package.name)String[]Get the imports.getName()Get the name.Get the package name.Get the kernel-specific model.Get the report.getType()Get the model type.voidinternalSetRawModel(Object rawmodel) Set the kernel-specific model.voidputFeatureModel(Class<?> key, Object value) Put a new feature model in the map.voidsetBreakpoints(String[] breakpoints) Set the breakpoints.voidsetFilename(String filename) Set the filename.voidsetImports(String[] imports) Set the imports.voidSet the name.voidsetPackage(String packagename) Set the packagename.voidsetReport(IErrorReport report) Set the report.voidSet the component type.Methods inherited from class jadex.model.modelinfo.Startable
getDescription, getKeepalive, getSuspend, getSynchronous, setDescription, setKeepalive, setSuspend, setSynchronousMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface jadex.model.modelinfo.IModelInfo
getDescription
-
Field Details
-
name
The name. -
packagename
The package. -
imports
The imports. -
allimports
All imports (cached for speed). -
report
The report. -
filename
The filename. -
type
The type. -
fullname
The full name (cached for speed). -
breakpoints
The breakpoints. -
rawmodel
The raw model. -
featuremodels
The feature models.
-
-
Constructor Details
-
ModelInfo
public ModelInfo()Create a new model info. -
ModelInfo
public ModelInfo(String name, String packagename, String description, IErrorReport report, boolean startable, String filename, Map<String, Object> properties, ClassLoader classloader, String[] imports, Object rawmodel) Create a new model info.
-
-
Method Details
-
getName
Get the name.- Specified by:
getNamein interfaceIModelInfo- Returns:
- The name.
-
getPackage
Get the package name.- Specified by:
getPackagein interfaceIModelInfo- Returns:
- The package name.
-
getFullName
Get the full model name (package.name)- Specified by:
getFullNamein interfaceIModelInfo- Returns:
- The full name.
-
getImports
Get the imports.- Specified by:
getImportsin interfaceIModelInfo- Returns:
- The imports.
-
getAllImports
Get the imports including the package.- Specified by:
getAllImportsin interfaceIModelInfo- Returns:
- The imports.
-
addImport
Add an import statement. -
getReport
Get the report.- Specified by:
getReportin interfaceIModelInfo- Returns:
- The report.
-
getType
Get the model type.- Specified by:
getTypein interfaceIModelInfo- Returns:
- The model type (kernel specific).
-
getFilename
Get the filename.- Specified by:
getFilenamein interfaceIModelInfo- Returns:
- The filename.
-
setName
Set the name.- Parameters:
name- The name to set.
-
setPackage
Set the packagename.- Parameters:
packagename- The packagename to set.
-
setReport
Set the report.- Parameters:
report- The report to set.
-
setImports
Set the imports.- Parameters:
imports- The imports to set.
-
setFilename
Set the filename.- Parameters:
filename- The filename to set.
-
setType
Set the component type.- Parameters:
type- The component type to set.
-
getBreakpoints
Get the possible breakpoint places in that model.- Specified by:
getBreakpointsin interfaceIModelInfo- Returns:
- The breakpoints.
-
setBreakpoints
Set the breakpoints.- Parameters:
breakpoints- The breakpoints to set.
-
checkName
public boolean checkName()Check if the specified name matches the file name. -
checkPackage
public boolean checkPackage()Check if the specified package matches the file name. -
getRawModel
Get the kernel-specific model.- Specified by:
getRawModelin interfaceIModelInfo- Returns:
- The kernel-specific model when loaded locally, null for remote models.
-
internalSetRawModel
Set the kernel-specific model.- Parameters:
rawmodel- The kernel-specific model when loaded locally, null for remote models.
-
putFeatureModel
Put a new feature model in the map. -
getFeatureModel
Get a feature model per class.
-