at.dms.kjc.sir
Class SIRLatencyMax

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

public class SIRLatencyMax
extends SIRLatency
implements Comparable

This represents a maximum latency for message delivery.

See Also:
Serialized Form

Field Summary
protected  JExpression max
          The maximum latency.
 
Fields inherited from class at.dms.kjc.sir.SIRLatency
BEST_EFFORT
 
Constructor Summary
protected SIRLatencyMax()
          No argument constructor, FOR AUTOMATIC CLONING ONLY.
  SIRLatencyMax(JExpression max)
          Constructs a new latency with the given maximum.
 
Method Summary
 Object accept(AttributeVisitor p)
          Accepts the specified attribute visitor.
 void accept(KjcVisitor p)
          Accepts the specified visitor.
 int compareTo(Object o)
          Compares the max time of this to that of , returning the difference.
 Object deepClone()
          Returns a deep clone of this object.
protected  void deepCloneInto(SIRLatencyMax other)
          Clones all fields of this into
 int getMax()
          Returns the maximum of this latency.
 JExpression getMaxExpression()
          Returns the maximum of this latency.
 void setMaxExpression(JExpression _max)
          Sets maximum of this latency.
 
Methods inherited from class at.dms.kjc.sir.SIRLatency
deepCloneInto, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

max

protected JExpression max
The maximum latency.

Constructor Detail

SIRLatencyMax

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


SIRLatencyMax

public SIRLatencyMax(JExpression max)
Constructs a new latency with the given maximum.

Method Detail

getMaxExpression

public JExpression getMaxExpression()
Returns the maximum of this latency.


setMaxExpression

public void setMaxExpression(JExpression _max)
Sets maximum of this latency.


getMax

public int getMax()
Returns the maximum of this latency.


compareTo

public int compareTo(Object o)
Compares the max time of this to that of , returning the difference.

Specified by:
compareTo in interface Comparable

accept

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

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

accept

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

Overrides:
accept in class SIRLatency

deepClone

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

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

deepCloneInto

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