at.dms.kjc.sir
Class SIRLatencyRange

java.lang.Object
  extended by at.dms.kjc.sir.SIRLatency
      extended by at.dms.kjc.sir.SIRLatencyMax
          extended by at.dms.kjc.sir.SIRLatencyRange
All Implemented Interfaces:
DeepCloneable, Serializable, Comparable

public class SIRLatencyRange
extends SIRLatencyMax

This represents a range of latencies for message delivery.

See Also:
Serialized Form

Field Summary
protected  JExpression min
          The minimum latency for this.
 
Fields inherited from class at.dms.kjc.sir.SIRLatencyMax
max
 
Fields inherited from class at.dms.kjc.sir.SIRLatency
BEST_EFFORT
 
Constructor Summary
protected SIRLatencyRange()
          No argument constructor, FOR AUTOMATIC CLONING ONLY.
  SIRLatencyRange(JExpression min, JExpression max)
          Constructs a latency with the range between and .
 
Method Summary
 Object accept(AttributeVisitor p)
          Accepts the specified attribute visitor.
 void accept(KjcVisitor p)
          Accepts the specified visitor.
 Object deepClone()
          Returns a deep clone of this object.
protected  void deepCloneInto(SIRLatencyRange other)
          Clones all fields of this into
 int getMin()
          Returns the minimum of this range.
 JExpression getMinExpression()
          Returns the minimum of this latency.
 boolean isExact()
          Returns whether or not this latency is constrained to be an exact value, without a range of zero.
 void setMinExpression(JExpression _min)
          Sets minimum of this latency.
 String toString()
           
 
Methods inherited from class at.dms.kjc.sir.SIRLatencyMax
compareTo, deepCloneInto, getMax, getMaxExpression, setMaxExpression
 
Methods inherited from class at.dms.kjc.sir.SIRLatency
deepCloneInto
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

min

protected JExpression min
The minimum latency for this. (The maximum latency is held in the superclass.)

Constructor Detail

SIRLatencyRange

protected SIRLatencyRange()
No argument constructor, FOR AUTOMATIC CLONING ONLY.


SIRLatencyRange

public SIRLatencyRange(JExpression min,
                       JExpression max)
Constructs a latency with the range between and .

Method Detail

getMinExpression

public JExpression getMinExpression()
Returns the minimum of this latency.


setMinExpression

public void setMinExpression(JExpression _min)
Sets minimum of this latency.


getMin

public int getMin()
Returns the minimum of this range.


isExact

public boolean isExact()
Returns whether or not this latency is constrained to be an exact value, without a range of zero.


toString

public String toString()
Overrides:
toString in class SIRLatency

accept

public Object accept(AttributeVisitor p)
Accepts the specified attribute visitor.

Overrides:
accept in class SIRLatencyMax
Parameters:
p - the visitor

accept

public void accept(KjcVisitor p)
Accepts the specified visitor.

Overrides:
accept in class SIRLatencyMax

deepClone

public Object deepClone()
Returns a deep clone of this object.

Specified by:
deepClone in interface DeepCloneable
Overrides:
deepClone in class SIRLatencyMax

deepCloneInto

protected void deepCloneInto(SIRLatencyRange other)
Clones all fields of this into
other