mapss.dif.mdsdf.mem
Class MDBuffers

java.lang.Object
  extended by mapss.dif.mdsdf.mem.MDBuffers

public class MDBuffers
extends java.lang.Object

The class computes buffer information of the MDSDF graph. Given the MDSDFGraph and its corresponding single appearance schedule, this class computes buffer size and collects buffer access information.

Version:
$Id: MDBuffers.java 1687 2007-05-08 01:38:09Z jerryhsu $
Author:
Chia-Jui Hsu

Constructor Summary
MDBuffers(MDSDFGraph graph, MDSchedule schedule)
          Constructor.
 
Method Summary
protected  void _compute()
          Compuate buffer size and collects buffer access information of all edges.
 int[] size(mocgraph.Edge edge)
          Get the buffer size of edge.
 MDBufferAccess snkAccess(mocgraph.Edge edge)
          Get the sink buffer access of edge.
 MDBufferAccess srcAccess(mocgraph.Edge edge)
          Get the source buffer access of edge.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MDBuffers

public MDBuffers(MDSDFGraph graph,
                 MDSchedule schedule)
Constructor.

Parameters:
graph -
schedule -
Method Detail

size

public int[] size(mocgraph.Edge edge)
Get the buffer size of edge.

Parameters:
edge -
Returns:
The buffer size of edge.

srcAccess

public MDBufferAccess srcAccess(mocgraph.Edge edge)
Get the source buffer access of edge.

Parameters:
edge -
Returns:
The source buffer access of edge.

snkAccess

public MDBufferAccess snkAccess(mocgraph.Edge edge)
Get the sink buffer access of edge.

Parameters:
edge -
Returns:
The sink buffer access of edge.

_compute

protected void _compute()
Compuate buffer size and collects buffer access information of all edges.