Class ModelInformation

java.lang.Object
net.ssehub.easy.integration.common.ModelInformation
All Implemented Interfaces:
IModelInfo

public class ModelInformation extends Object implements IModelInfo
Implements the model information object.
Author:
Holger Eichelberger
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private IModelAccess
     
    private net.ssehub.easy.basics.modelManagement.ModelInfo<net.ssehub.easy.varModel.model.Project>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    ModelInformation(net.ssehub.easy.basics.modelManagement.ModelInfo<net.ssehub.easy.varModel.model.Project> info, IModelAccess access)
    Creates a model info instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    (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.
    Returns the name of the model.
    (package private) IModelAccess
    Returns the origin of this instance.
    Returns the version of the model.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • info

      private net.ssehub.easy.basics.modelManagement.ModelInfo<net.ssehub.easy.varModel.model.Project> info
    • access

      private IModelAccess 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 wrapped
      access - the instance which created this object (for consistency reasons)
  • Method Details

    • getName

      public String getName()
      Description copied from interface: IModelInfo
      Returns the name of the model.
      Specified by:
      getName in interface IModelInfo
      Returns:
      the name
    • getVersion

      public String getVersion()
      Description copied from interface: IModelInfo
      Returns the version of the model.
      Specified by:
      getVersion in interface IModelInfo
      Returns:
      the version (may be null if there is none)
    • getLocation

      public URI getLocation()
      Description copied from interface: IModelInfo
      Returns where the model was stored at.
      Specified by:
      getLocation in interface IModelInfo
      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