Class ModelInformation
java.lang.Object
net.ssehub.easy.integration.common.ModelInformation
- All Implemented Interfaces:
IModelInfo
Implements the model information object.
- Author:
- Holger Eichelberger
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate IModelAccessprivate net.ssehub.easy.basics.modelManagement.ModelInfo<net.ssehub.easy.varModel.model.Project> -
Constructor Summary
ConstructorsConstructorDescriptionModelInformation(net.ssehub.easy.basics.modelManagement.ModelInfo<net.ssehub.easy.varModel.model.Project> info, IModelAccess access) Creates a model info instance. -
Method Summary
Modifier and TypeMethodDescription(package private) net.ssehub.easy.basics.modelManagement.ModelInfo<net.ssehub.easy.varModel.model.Project> Returns the implementing instance.Returns where the model was stored at.getName()Returns the name of the model.(package private) IModelAccessReturns the origin of this instance.Returns the version of the model.
-
Field Details
-
info
private net.ssehub.easy.basics.modelManagement.ModelInfo<net.ssehub.easy.varModel.model.Project> info -
access
-
-
Constructor Details
-
ModelInformation
ModelInformation(net.ssehub.easy.basics.modelManagement.ModelInfo<net.ssehub.easy.varModel.model.Project> info, IModelAccess access) Creates a model info instance.- Parameters:
info- the project info instance to be wrappedaccess- the instance which created this object (for consistency reasons)
-
-
Method Details
-
getName
Description copied from interface:IModelInfoReturns the name of the model.- Specified by:
getNamein interfaceIModelInfo- Returns:
- the name
-
getVersion
Description copied from interface:IModelInfoReturns the version of the model.- Specified by:
getVersionin interfaceIModelInfo- Returns:
- the version (may be null if there is none)
-
getLocation
Description copied from interface:IModelInfoReturns where the model was stored at.- Specified by:
getLocationin interfaceIModelInfo- Returns:
- the location
-
getInstance
net.ssehub.easy.basics.modelManagement.ModelInfo<net.ssehub.easy.varModel.model.Project> getInstance()Returns the implementing instance.- Returns:
- the implementing instance
-
getOrigin
IModelAccess getOrigin()Returns the origin of this instance.- Returns:
- the origin
-