de.upb.hni.vmagic.statement
Class VariableAssignment

java.lang.Object
  extended by de.upb.hni.vmagic.VhdlElement
      extended by de.upb.hni.vmagic.LabeledElement
          extended by de.upb.hni.vmagic.statement.SequentialStatement
              extended by de.upb.hni.vmagic.statement.VariableAssignment

public class VariableAssignment
extends SequentialStatement

Variable assignment.

Example:
vMAGIC code:
Variable target = new Variable("TARGET", Standard.BIT);
VariableAssignment assignment = new VariableAssignment(target, Standard.BIT_1);
VHDL output:
TARGET := '1';

Constructor Summary
VariableAssignment(Target<Variable> target, Expression value)
          Creates a variable assignment.
 
Method Summary
 Target<Variable> getTarget()
          Returns the variable assignement target.
 Expression getValue()
          Returns the assigned value.
 void setTarget(Target<Variable> target)
          Sets the variable assignment target.
 void setValue(Expression value)
          Sets the assigned value.
 
Methods inherited from class de.upb.hni.vmagic.statement.SequentialStatement
getLabel, setLabel
 
Methods inherited from class de.upb.hni.vmagic.VhdlElement
getParent, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VariableAssignment

public VariableAssignment(Target<Variable> target,
                          Expression value)
Creates a variable assignment.

Parameters:
target - the variable assignment target
value - the assigned value
Method Detail

getTarget

public Target<Variable> getTarget()
Returns the variable assignement target.

Returns:
the target

setTarget

public void setTarget(Target<Variable> target)
Sets the variable assignment target.

Parameters:
target - the target

getValue

public Expression getValue()
Returns the assigned value.

Returns:
the value

setValue

public void setValue(Expression value)
Sets the assigned value.

Parameters:
value - the value