de.cau.cs.kieler.core.kexpressions
Interface Variable

All Superinterfaces:
Annotatable, EObject, Notifier, ValuedObject
All Known Subinterfaces:
IVariable
All Known Implementing Classes:
IVariableImpl, VariableImpl

public interface Variable
extends ValuedObject

A representation of the model object 'Variable'. A Variable is a data object that may be used for internal calculations. It is not directly intended for communication with concurrent program parts. Variables may be overridden multiple times within one synchronous tick. Hence writing a signal in concurrent program parts is not allowed. Therefore Variables, unlike Signals, do not need a combine strategy.

A Variable always carries a value and therefore needs a proper type. A Variable may be tagged to be a constant by the const attribute and then the value is given by the initialValue.

Due to the restrictions in broadcast communication, the usage of Variables is discouraged everywhere where Signals could be used instead.

The following features are supported:

See Also:
KExpressionsPackage.getVariable()
Rating red
Generated:
This code was automatically generated.
Model element

Method Summary
 boolean isConst()
          Returns the value of the 'Const' attribute.
 void setConst(boolean value)
          Sets the value of the 'Const' attribute.
 
Methods inherited from interface de.cau.cs.kieler.core.kexpressions.ValuedObject
getHostType, getInitialValue, getName, getType, setHostType, setInitialValue, setName, setType
 
Methods inherited from interface de.cau.cs.kieler.core.annotations.Annotatable
getAllAnnotations, getAnnotation, getAnnotations, removeAllAnnotations
 
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.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
 

Method Detail

isConst

boolean isConst()
Returns the value of the 'Const' attribute.

If the meaning of the 'Const' attribute isn't clear, there really should be more of a description here...

Returns:
the value of the 'Const' attribute.
See Also:
setConst(boolean), KExpressionsPackage.getVariable_Const()
Generated:
This code was automatically generated.
Model element:
required=true

setConst

void setConst(boolean value)
Sets the value of the 'Const' attribute.

Parameters:
value - the new value of the 'Const' attribute.
See Also:
isConst()
Generated:
This code was automatically generated.