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 String
The filename.protected String
The full name (cached for speed).The imports.protected String
The name.protected String
The package.protected Object
The raw model.protected IErrorReport
The report.protected String
The type.Fields inherited from class jadex.model.modelinfo.Startable
description
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Add an import statement.boolean
Check if the specified name matches the file name.boolean
Check 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.void
internalSetRawModel
(Object rawmodel) Set the kernel-specific model.void
putFeatureModel
(Class<?> key, Object value) Put a new feature model in the map.void
setBreakpoints
(String[] breakpoints) Set the breakpoints.void
setFilename
(String filename) Set the filename.void
setImports
(String[] imports) Set the imports.void
Set the name.void
setPackage
(String packagename) Set the packagename.void
setReport
(IErrorReport report) Set the report.void
Set the component type.Methods inherited from class jadex.model.modelinfo.Startable
getDescription, getKeepalive, getSuspend, getSynchronous, setDescription, setKeepalive, setSuspend, setSynchronous
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
getName
in interfaceIModelInfo
- Returns:
- The name.
-
getPackage
Get the package name.- Specified by:
getPackage
in interfaceIModelInfo
- Returns:
- The package name.
-
getFullName
Get the full model name (package.name)- Specified by:
getFullName
in interfaceIModelInfo
- Returns:
- The full name.
-
getImports
Get the imports.- Specified by:
getImports
in interfaceIModelInfo
- Returns:
- The imports.
-
getAllImports
Get the imports including the package.- Specified by:
getAllImports
in interfaceIModelInfo
- Returns:
- The imports.
-
addImport
Add an import statement. -
getReport
Get the report.- Specified by:
getReport
in interfaceIModelInfo
- Returns:
- The report.
-
getType
Get the model type.- Specified by:
getType
in interfaceIModelInfo
- Returns:
- The model type (kernel specific).
-
getFilename
Get the filename.- Specified by:
getFilename
in 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:
getBreakpoints
in 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:
getRawModel
in 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.
-