streamit.frontend.nodes
Class ExprRange

java.lang.Object
  extended by streamit.frontend.nodes.FENode
      extended by streamit.frontend.nodes.Expression
          extended by streamit.frontend.nodes.ExprRange

public class ExprRange
extends Expression

Indicates a range such as [min,ave,max] as used in a dynamic rate. Ranges are over integers.


Constructor Summary
ExprRange(Expression min, Expression max)
          Create a new ExprRange with no context.
ExprRange(Expression min, Expression ave, Expression max)
          Create a new ExprRange with no context.
ExprRange(FEContext context, Expression min, Expression max)
           
ExprRange(FEContext context, Expression min, Expression ave, Expression max)
          Create a new ExprDynamicToken.
 
Method Summary
 Object accept(FEVisitor v)
          Accept a front-end visitor.
 boolean equals(Object other)
           
 Expression getAve()
          Return average of range.
 Expression getMax()
          Return maximum of range.
 Expression getMin()
          Return minimum of range.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class streamit.frontend.nodes.Expression
isLValue
 
Methods inherited from class streamit.frontend.nodes.FENode
getContext
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExprRange

public ExprRange(FEContext context,
                 Expression min,
                 Expression ave,
                 Expression max)
Create a new ExprDynamicToken.


ExprRange

public ExprRange(FEContext context,
                 Expression min,
                 Expression max)

ExprRange

public ExprRange(Expression min,
                 Expression ave,
                 Expression max)
Create a new ExprRange with no context.


ExprRange

public ExprRange(Expression min,
                 Expression max)
Create a new ExprRange with no context.

Method Detail

getMin

public Expression getMin()
Return minimum of range.


getAve

public Expression getAve()
Return average of range.


getMax

public Expression getMax()
Return maximum of range.


accept

public Object accept(FEVisitor v)
Accept a front-end visitor.

Specified by:
accept in class FENode
Parameters:
v - visitor object
Returns:
the value returned by the method corresponding to this type in the visitor object

equals

public boolean equals(Object other)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object