Class ProjectInterface

    • Constructor Detail

      • ProjectInterface

        public ProjectInterface​(java.lang.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 Detail

      • 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:
        java.lang.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.
      • 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​(java.lang.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 java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object