at.dms.kjc.cluster
Class LatencyConstraint

java.lang.Object
  extended by at.dms.kjc.cluster.LatencyConstraint

public class LatencyConstraint
extends Object

Represents a pairwise constraint due to a latency constrained message between a source and destination filters. Note that source will have to send credit messages to the destination. Destination will have to check credit messages and make sure it does not execute past the credit received to guarantee a correct message delivery.


Method Summary
 int getDependencyData(int index)
          Returns a credit that can be sent by source to dest during first steady state.
 int getDestSteadyExec()
           
 SIRFilter getReceiver()
           
 int getSourceInit()
           
 int getSourceSteadyExec()
           
 void output()
           
 void setDependencyData(int index, int value)
          A method for setting the dependency data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setDependencyData

public void setDependencyData(int index,
                              int value)
A method for setting the dependency data. The size of dependency array is equal to sourceSteadyExec. This represents what credit can be sent by source during first steady state (For downstream message the phase starts after sourceInit number of source iterations). During subsequent phases source can send a credit that is by destSteadyExec larger each time.

Parameters:
index - index within dependency data array
value - value of credit that can be sent during the first phase

getDependencyData

public int getDependencyData(int index)
Returns a credit that can be sent by source to dest during first steady state.

Parameters:
index - index within dependency array
Returns:
the credit

getReceiver

public SIRFilter getReceiver()

getSourceInit

public int getSourceInit()

getSourceSteadyExec

public int getSourceSteadyExec()

getDestSteadyExec

public int getDestSteadyExec()

output

public void output()