Class ProjectInterface

All Implemented Interfaces:
IDatatypeVisitable, IResolutionScope, IModelElement

public class ProjectInterface extends ContainableModelElement implements IResolutionScope
ProjectInterface class.
Author:
heiko beck, Holger Eichelberger
  • Field Details

  • Constructor Details

    • ProjectInterface

      public ProjectInterface(String name, DecisionVariableDeclaration[] exports, ModelElement parent)
      Constructor for the project interface.
      Parameters:
      name - Name of the project interface
      exports - the exports of this interface
      parent - the object, in which this specific one is embedded
  • Method Details

    • isFullConfigurable

      public boolean isFullConfigurable()
      Method checks the configurable status of an object.
      Returns:
      the configurable status.
    • getExportsCount

      public int getExportsCount()
      Returns the number of exports.
      Returns:
      the number of exports
    • getExport

      public DecisionVariableDeclaration getExport(int index)
      Returns the exported decision variable specified by index.
      Parameters:
      index - a 0-based index specifying the operation to be returned
      Returns:
      the exported decision variable
      Throws:
      IndexOutOfBoundsException - if index<0 || index>=getExportsCount()
    • accept

      public void accept(IModelVisitor visitor)
      Description copied from interface: IModelElement
      Accept method for the visitor.
      Specified by:
      accept in interface IModelElement
      Parameters:
      visitor - The visitor, which should process this model element.
    • getElement

      public ContainableModelElement getElement(int index)
      Returns a contained model element specified by index.
      Specified by:
      getElement in interface IResolutionScope
      Parameters:
      index - a 0-based index specifying the operation to be returned
      Returns:
      the contained element
      Throws:
      IndexOutOfBoundsException - if index<0 || index>=getElementCount()
      See Also:
    • getElementCount

      public int getElementCount()
      Returns the number of contained elements.
      Specified by:
      getElementCount in interface IResolutionScope
      Returns:
      the number of contained elements
      See Also:
    • getImportsCount

      public int getImportsCount()
      Description copied from interface: IResolutionScope
      Returns the number of imports.
      Specified by:
      getImportsCount in interface IResolutionScope
      Returns:
      the number of imports
    • getImport

      public ProjectImport getImport(int index)
      Description copied from interface: IResolutionScope
      Returns the project import specified by index.
      Specified by:
      getImport in interface IResolutionScope
      Parameters:
      index - a 0-based index specifying the import to be returned
      Returns:
      the project import
    • hasInterfaces

      public boolean hasInterfaces()
      Returns whether this project has interfaces.
      Specified by:
      hasInterfaces in interface IResolutionScope
      Returns:
      true if it has interfaces, false else
    • isInterface

      public boolean isInterface()
      Description copied from interface: IResolutionScope
      Returns whether this scope is an interfaces.
      Specified by:
      isInterface in interface IResolutionScope
      Returns:
      true if it is an interface, false else
    • getElement

      public ContainableModelElement getElement(String name)
      Description copied from interface: IResolutionScope
      Returns a contained model element specified by its name.
      Specified by:
      getElement in interface IResolutionScope
      Parameters:
      name - the qualified or unqualified name to search for
      Returns:
      the related element or null if no such element is known
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object