Package net.ssehub.easy.varModel.model
Class ProjectInterface
java.lang.Object
net.ssehub.easy.varModel.model.ModelElement
net.ssehub.easy.varModel.model.ContainableModelElement
net.ssehub.easy.varModel.model.ProjectInterface
- All Implemented Interfaces:
IDatatypeVisitable,IResolutionScope,IModelElement
ProjectInterface class.
- Author:
- heiko beck, Holger Eichelberger
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionProjectInterface(String name, DecisionVariableDeclaration[] exports, ModelElement parent) Constructor for the project interface. -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(IModelVisitor visitor) Accept method for the visitor.booleangetElement(int index) Returns a contained model element specified byindex.getElement(String name) Returns a contained model element specified by itsname.intReturns the number of contained elements.getExport(int index) Returns the exported decision variable specified byindex.intReturns the number of exports.getImport(int index) Returns the project import specified byindex.intReturns the number of imports.inthashCode()booleanReturns whether this project has interfaces.booleanMethod checks the configurable status of an object.booleanReturns whether this scope is an interfaces.Methods inherited from class net.ssehub.easy.varModel.model.ContainableModelElement
accept, getNameSpace, getParent, getProject, getQualifiedName, getTopLevelParent, isTopLevel, setParentMethods inherited from class net.ssehub.easy.varModel.model.ModelElement
findAttribute, getComment, getName, getUniqueName, isTransparent, propagateAttribute, setComment, setName, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.ssehub.easy.varModel.model.datatypes.IResolutionScope
getName, getParent
-
Field Details
-
exports
-
-
Constructor Details
-
ProjectInterface
Constructor for the project interface.- Parameters:
name- Name of the project interfaceexports- the exports of this interfaceparent- 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
Returns the exported decision variable specified byindex.- Parameters:
index- a 0-based index specifying the operation to be returned- Returns:
- the exported decision variable
- Throws:
IndexOutOfBoundsException- ifindex<0 || index>=getExportsCount()
-
accept
Description copied from interface:IModelElementAccept method for the visitor.- Specified by:
acceptin interfaceIModelElement- Parameters:
visitor- The visitor, which should process this model element.
-
getElement
Returns a contained model element specified byindex.- Specified by:
getElementin interfaceIResolutionScope- Parameters:
index- a 0-based index specifying the operation to be returned- Returns:
- the contained element
- Throws:
IndexOutOfBoundsException- ifindex<0 || index>=getElementCount()- See Also:
-
getElementCount
public int getElementCount()Returns the number of contained elements.- Specified by:
getElementCountin interfaceIResolutionScope- Returns:
- the number of contained elements
- See Also:
-
getImportsCount
public int getImportsCount()Description copied from interface:IResolutionScopeReturns the number of imports.- Specified by:
getImportsCountin interfaceIResolutionScope- Returns:
- the number of imports
-
getImport
Description copied from interface:IResolutionScopeReturns the project import specified byindex.- Specified by:
getImportin interfaceIResolutionScope- 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:
hasInterfacesin interfaceIResolutionScope- Returns:
trueif it has interfaces,falseelse
-
isInterface
public boolean isInterface()Description copied from interface:IResolutionScopeReturns whether this scope is an interfaces.- Specified by:
isInterfacein interfaceIResolutionScope- Returns:
trueif it is an interface,falseelse
-
getElement
Description copied from interface:IResolutionScopeReturns a contained model element specified by itsname.- Specified by:
getElementin interfaceIResolutionScope- 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() -
equals
-