Interface ParameterRef
-
- All Known Implementing Classes:
ParameterRefImpl
public interface ParameterRef extends LogicTerm
A representation of the model object 'Parameter Ref'.The following features are supported:
- See Also:
PrologmodelPackage.getParameterRef()
- Generated class or method.
- EMF model class or method.
- annotation="http://www.eclipse.org/emf/2002/Ecore constraints='isParameterValid isAttributeValid isValueValid'" annotation="http://www.eclipse.org/emf/2002/Ecore/OCL/Pivot isParameterValid='getPossibleParameters()->includes(parameter)' isAttributeValid='getPossibleAttributes()->includes(attribute)' isValueValid='getPossibleValues()->includes(value)'"
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Attribute
getAttribute()
Returns the value of the 'Attribute' reference.Variable
getParameter()
Returns the value of the 'Parameter' reference.EList<Attribute>
getPossibleAttributes()
EList<Variable>
getPossibleParameters()
EList<Value>
getPossibleValues()
Value
getValue()
Returns the value of the 'Value' reference.boolean
isAttributeWildcard()
boolean
isValueWildcard()
void
setAttribute(Attribute value)
Sets the value of the 'Attribute
' reference.void
setParameter(Variable value)
Sets the value of the 'Parameter
' reference.void
setValue(Value value)
Sets the value of the 'Value
' reference.-
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
-
Methods inherited from interface org.palladiosimulator.pcm.dataprocessing.prolog.prologmodel.LogicTerm
getContainingAssignment
-
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
-
-
-
-
Method Detail
-
getParameter
Variable getParameter()
Returns the value of the 'Parameter' reference.- Returns:
- the value of the 'Parameter' reference.
- See Also:
setParameter(Variable)
,PrologmodelPackage.getParameterRef_Parameter()
- Generated class or method.
- EMF model class or method.
- required="true"
-
setParameter
void setParameter(Variable value)
Sets the value of the 'Parameter
' reference.- Parameters:
value
- the new value of the 'Parameter' reference.- See Also:
getParameter()
- Generated class or method.
-
getAttribute
Attribute getAttribute()
Returns the value of the 'Attribute' reference.- Returns:
- the value of the 'Attribute' reference.
- See Also:
setAttribute(Attribute)
,PrologmodelPackage.getParameterRef_Attribute()
- Generated class or method.
- EMF model class or method.
-
setAttribute
void setAttribute(Attribute value)
Sets the value of the 'Attribute
' reference.- Parameters:
value
- the new value of the 'Attribute' reference.- See Also:
getAttribute()
- Generated class or method.
-
getValue
Value getValue()
Returns the value of the 'Value' reference.- Returns:
- the value of the 'Value' reference.
- See Also:
setValue(Value)
,PrologmodelPackage.getParameterRef_Value()
- Generated class or method.
- EMF model class or method.
-
setValue
void setValue(Value value)
Sets the value of the 'Value
' reference.- Parameters:
value
- the new value of the 'Value' reference.- See Also:
getValue()
- Generated class or method.
-
getPossibleParameters
EList<Variable> getPossibleParameters()
- Generated class or method.
- EMF model class or method.
- kind="operation" ordered="false" annotation="http://www.eclipse.org/emf/2002/Ecore/OCL/Pivot body='\n\t\t\t\tlet assi = containingAssignment in\n\t\t\t\tif(assi.oclIsUndefined() or assi.oclContainer().oclIsUndefined()) then\n\t\t\t\t\tOperation.allInstances().parameters->asSet()\n\t\t\t\telse \n\t\t\t\t\tif(assi.oclContainer().oclIsKindOf(OperationCall)) then\n\t\t\t\t\t\tlet caller = assi.oclContainer().oclAsType(OperationCall).caller in\n\t\t\t\t\t\tif (caller.oclIsKindOf(Operation)) then\n\t\t\t\t\t\t\tcaller.oclAsType(Operation).parameters->asSet()\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tSet{}\t\t\t\t\t\n\t\t\t\t\t\tendif\n\t\t\t\t\telse\n\t\t\t\t\t\tif(assi.oclContainer().oclIsKindOf(Operation)) then\n\t\t\t\t\t\t\tassi.oclContainer().oclAsType(Operation).parameters->asSet()\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tOperation.allInstances().parameters->asSet()\n\t\t\t\t\t\tendif\n\t\t\t\t\tendif\n\t\t\t\tendif'"
-
getPossibleAttributes
EList<Attribute> getPossibleAttributes()
- Generated class or method.
- EMF model class or method.
- kind="operation" ordered="false" annotation="http://www.eclipse.org/emf/2002/Ecore/OCL/Pivot body='\n\t\t\t\tif parameter.oclIsUndefined() then\n\t\t\t\t\tgetPossibleParameters().datatype.attributes->asSet()->union(Set{null})\n\t\t\t\telse\n\t\t\t\t\tparameter.datatype.attributes->asSet()->union(Set{null})\n\t\t\t\tendif'"
-
getPossibleValues
EList<Value> getPossibleValues()
- Generated class or method.
- EMF model class or method.
- kind="operation" ordered="false" annotation="http://www.eclipse.org/emf/2002/Ecore/OCL/Pivot body='\n\t\t\t\tif attribute.oclIsUndefined() then\n\t\t\t\t\tgetPossibleAttributes()->reject(oclIsUndefined()).type.values->asSet()->union(Set{null})\n\t\t\t\telse\n\t\t\t\t\tattribute.type.values->asSet()->union(Set{null})\n\t\t\t\tendif'"
-
isAttributeWildcard
boolean isAttributeWildcard()
- Generated class or method.
- EMF model class or method.
- kind="operation" required="true" annotation="http://www.eclipse.org/emf/2002/Ecore/OCL/Pivot body='\n\t\t\t\tattribute.oclIsUndefined()'"
-
isValueWildcard
boolean isValueWildcard()
- Generated class or method.
- EMF model class or method.
- kind="operation" required="true" annotation="http://www.eclipse.org/emf/2002/Ecore/OCL/Pivot body='\n\t\t\t\tvalue.oclIsUndefined()'"
-
-