mapss.dif.csdf.sdf
Class SDFUtilities

java.lang.Object
  extended by mapss.dif.csdf.sdf.SDFUtilities

public class SDFUtilities
extends java.lang.Object

Utilities for synchronous dataflow (SDF) graphs.

Version:
$Id: SDFUtilities.java 362 2007-02-25 21:08:57Z plishker $
Author:
Shuvra S. Bhattacharyya. Portions are adapted from a file by Jeff Tsay and Christopher Hylands.
See Also:
SDFGraph

Method Summary
static java.lang.String timeAndMemory(long startTime)
          Return a diagnostic string with the elapsed time since a reference start time, and the amount of memory used.
static java.lang.String toString(ptolemy.actor.sched.ScheduleElement element)
          Output a string representation of a looped schedule.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

timeAndMemory

public static java.lang.String timeAndMemory(long startTime)
Return a diagnostic string with the elapsed time since a reference start time, and the amount of memory used. This method is useful for evaluating the time and memory efficiency of synthesis algorithms.

Parameters:
startTime - the reference start time.
Returns:
the diagnostic string.

toString

public static java.lang.String toString(ptolemy.actor.sched.ScheduleElement element)
Output a string representation of a looped schedule. In this string representation, each schedule loop is represented by a string of the form (n S1 S2 ... Sm), where n is the iteration count of the loop, and each Si is the string representation (as determined recursively by this method) of the ith iterand.

Parameters:
element - the looped schedule, which can be any SDF ScheduleElement.
Returns:
the string representation of the schedule.