public class GraphAnalysisSdfAndHsdf extends GraphAnalysis
Modifier and Type | Field and Description |
---|---|
protected Graph |
graph
SDF Graph
|
protected Graph |
hsdf
Equivalent HSDF graph
|
protected Solutions |
solutions
Solutions of SDF graph
|
Constructor and Description |
---|
GraphAnalysisSdfAndHsdf(Graph graph,
Solutions solutions)
Initialize graph analysis object
|
GraphAnalysisSdfAndHsdf(Graph graph,
Solutions solutions,
Graph hsdf)
Initialize graph analysis object
|
Modifier and Type | Method and Description |
---|---|
java.util.List<Actor> |
findHsdfEndActors()
Find HSDF actors with no successors
|
java.util.List<Actor> |
findHsdfStartActors()
Find HSDF actors with no predecessors
|
java.util.List<Actor> |
findSdfEndActors()
Find SDF actors with no successors
|
java.util.List<Actor> |
findSdfStartActors()
Find SDF actors with no predecessors
|
Actor |
getHsdfToSdfActor(Actor hsdfActor)
Get HSDF to corresponding SDF actor
|
int |
getLongestDelay()
This function calculates the longest path in the graph
from source to destination actor.
|
int |
getMaxDistanceFromSrc(Actor actr)
Get maximum distance of an actor from source (or start actor) of the graph
|
java.util.List<java.util.List<Actor>> |
getPath(Actor srcActr,
Actor dstActr)
Get multiple paths between two actors
|
java.util.List<Actor> |
getSdfToAllHsdfActors(Actor actr)
Get HSDF actors corresponding to an SDF actor
|
Actor |
getSdfToHsdfActor(Actor actr,
int instanceId)
Get an HSDF actor from SDF actor and instance id
|
java.util.TreeSet<Channel> |
getSdfToHsdfChannels(Actor srcSdfActor,
Actor dstSdfActor)
Get all HSDF channels corresponding to SDF channel.
|
java.util.List<Channel> |
getSdfToHsdfChannels(Channel chnnl)
Get all HSDF channels corresponding to SDF channel.
|
boolean |
isConnected(Actor srcActor,
Actor dstActor,
Port.DIR direction)
Check if two actors are connected
|
areActorsImmediatelyConnected, getChannelConnectingActors, getImmediatelyConnectedActors, getImmediatelyConnectedActors, getIncomingChannels, getInstanceId
protected Graph graph
protected Graph hsdf
protected Solutions solutions
public GraphAnalysisSdfAndHsdf(Graph graph, Solutions solutions)
graph
- SDF graphsolutions
- solutions of SDF graphpublic Actor getSdfToHsdfActor(Actor actr, int instanceId)
actr
- SDF actorinstanceId
- instance IDpublic boolean isConnected(Actor srcActor, Actor dstActor, Port.DIR direction)
srcActor
- an actordstActor
- other actordirection
- direction to check input or outputpublic java.util.List<Actor> getSdfToAllHsdfActors(Actor actr)
actr
- SDF actorpublic java.util.List<Channel> getSdfToHsdfChannels(Channel chnnl)
chnnl
- HSDF channelpublic java.util.TreeSet<Channel> getSdfToHsdfChannels(Actor srcSdfActor, Actor dstSdfActor)
srcSdfActor
- source actordstSdfActor
- sink actorpublic java.util.List<Actor> findSdfStartActors()
public java.util.List<Actor> findSdfEndActors()
public java.util.List<Actor> findHsdfStartActors()
public java.util.List<Actor> findHsdfEndActors()
public Actor getHsdfToSdfActor(Actor hsdfActor)
hsdfActor
- an HSDF actorpublic int getMaxDistanceFromSrc(Actor actr)
actr
- an actorpublic java.util.List<java.util.List<Actor>> getPath(Actor srcActr, Actor dstActr)
srcActr
- source actordstActr
- sink actorpublic int getLongestDelay()