Package net.ssehub.easy.varModel.model
Class AttributeAssignment.Assignment
- java.lang.Object
-
- net.ssehub.easy.varModel.model.AttributeAssignment.Assignment
-
- Enclosing class:
- AttributeAssignment
public static class AttributeAssignment.Assignment extends java.lang.ObjectCharacterizes an attribute-value assignment. Please note that this instance may store the data to be applied to multiple attributes.- Author:
- Holger Eichelberger
-
-
Field Summary
Fields Modifier and Type Field Description private ConstraintSyntaxTreeexpressionprivate java.lang.Stringnameprivate java.lang.Stringoperation
-
Constructor Summary
Constructors Constructor Description Assignment()Constructor for serialization.Assignment(java.lang.String name, java.lang.String operation, ConstraintSyntaxTree expression)Creates an attribute-value assignment.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConstraintSyntaxTreegetExpression()Returns the expression representing the actual value of the assignment.java.lang.StringgetName()Returns the name of the attribute the value shall be assigned to.java.lang.StringgetOperation()Returns the operation of this individual attribute assignment.
-
-
-
Field Detail
-
name
private java.lang.String name
-
expression
private ConstraintSyntaxTree expression
-
operation
private java.lang.String operation
-
-
Constructor Detail
-
Assignment
Assignment()
Constructor for serialization.
-
Assignment
public Assignment(java.lang.String name, java.lang.String operation, ConstraintSyntaxTree expression)Creates an attribute-value assignment.- Parameters:
name- the name of the attribute the value shall be assigned tooperation- the operation to be applied (as string as this data may apply to multiple attributes)expression- the value expression
-
-
Method Detail
-
getName
public java.lang.String getName()
Returns the name of the attribute the value shall be assigned to.- Returns:
- the name of the attribute
-
getExpression
public ConstraintSyntaxTree getExpression()
Returns the expression representing the actual value of the assignment.- Returns:
- the value expression
-
getOperation
public java.lang.String getOperation()
Returns the operation of this individual attribute assignment. We cannot store the name and data in this instance as it may apply to multiple attributes.- Returns:
- the name of the operation
-
-