public class DesignFlowSolution.Schedule
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.HashMap<java.lang.String,java.lang.Integer> |
bufferSizeMap
Map containing buffer size value for each channel.
|
private java.util.HashMap<Cluster,java.util.HashSet<Processor>> |
clusterUtilizationMap
Map containing utilized processors inside a cluster
|
private java.util.HashMap<DmaEngine,java.util.List<java.lang.Integer>> |
dmaActorInstanceIdMap
List of actor instancess mapped to DMA
|
private java.util.HashMap<DmaEngine,java.util.List<java.lang.String>> |
dmaActorMap
List of actors mapped to DMA
|
private java.util.HashMap<DmaEngine,java.util.List<java.lang.Integer>> |
dmaActorStartTimeMap
List of start times of actor instances mapped to DMA
|
private java.util.HashMap<Processor,java.util.List<java.lang.Integer>> |
processorActorInstanceIdMap
List of actor instances mapped to a processor
|
private java.util.HashMap<Processor,java.util.List<java.lang.String>> |
processorActorMap
List of actors mapped to a processor
|
private java.util.HashMap<Processor,java.util.List<java.lang.Integer>> |
processorActorStartTimeMap
List of start times of actor instances mapped to a processor
|
Constructor and Description |
---|
DesignFlowSolution.Schedule()
Initialize a schedule class object
|
DesignFlowSolution.Schedule(DesignFlowSolution.Schedule anotherSchedule)
Build a schedule object from another object
|
Modifier and Type | Method and Description |
---|---|
void |
addActor(java.lang.String actr,
int instanceId,
DmaEngine dma,
int startTime)
Add an actor instance to DMA engine.
|
void |
addActor(java.lang.String actr,
int instanceId,
Processor proc,
int startTime)
Add an actor instance to Processor.
|
void |
addBufferSize(java.lang.String chnnl,
int bufferSize)
Add a buffer size of a channel to the schedule.
|
Cluster |
getAllocatedCluster(java.lang.String actr)
Get cluster to which an actor is allocated to.
|
Processor |
getAllocatedProcessor(java.lang.String actr,
int instanceId)
Get processor to which an actor instance is allocated to.
|
int |
getBufferSize(Channel chnnl)
Get buffer size calculated for a channel.
|
int |
getMaxDmaEnginesUsed(Cluster cluster,
java.lang.String channelName)
Get total number of DMA engines used by producers or consumers of channel.
|
java.util.HashSet<java.lang.String> |
getNonAppGraphActors()
Get a list of actors which do not belong to application graph and mapped on processors.
|
java.util.List<java.util.Map.Entry<java.lang.String,java.lang.Integer>> |
getSortedActorInstances(DmaEngine dma)
Get a list of actors allocated to DMA engine sorted by their start times.
|
java.util.List<java.util.Map.Entry<java.lang.String,java.lang.Integer>> |
getSortedActorInstances(Processor processor)
Get a list of actors allocated to processor sorted by their start times.
|
int |
numProcessorsUsed(Cluster cluster)
Get number of processors used in a cluster.
|
private java.util.HashMap<java.lang.String,java.lang.Integer> bufferSizeMap
private java.util.HashMap<Cluster,java.util.HashSet<Processor>> clusterUtilizationMap
private java.util.HashMap<Processor,java.util.List<java.lang.String>> processorActorMap
private java.util.HashMap<Processor,java.util.List<java.lang.Integer>> processorActorInstanceIdMap
private java.util.HashMap<Processor,java.util.List<java.lang.Integer>> processorActorStartTimeMap
private java.util.HashMap<DmaEngine,java.util.List<java.lang.String>> dmaActorMap
private java.util.HashMap<DmaEngine,java.util.List<java.lang.Integer>> dmaActorInstanceIdMap
private java.util.HashMap<DmaEngine,java.util.List<java.lang.Integer>> dmaActorStartTimeMap
public DesignFlowSolution.Schedule()
public DesignFlowSolution.Schedule(DesignFlowSolution.Schedule anotherSchedule)
anotherSchedule
- another schedule objectpublic java.util.HashSet<java.lang.String> getNonAppGraphActors()
public void addBufferSize(java.lang.String chnnl, int bufferSize)
chnnl
- name of the channelbufferSize
- size of the bufferpublic void addActor(java.lang.String actr, int instanceId, DmaEngine dma, int startTime)
actr
- name of the actorinstanceId
- instance iddma
- DMA engine to add tostartTime
- start time of the actor instancepublic void addActor(java.lang.String actr, int instanceId, Processor proc, int startTime)
actr
- name of the actorinstanceId
- instance idproc
- Processor to add tostartTime
- start time of the actor instancepublic Cluster getAllocatedCluster(java.lang.String actr)
actr
- name of the actorpublic Processor getAllocatedProcessor(java.lang.String actr, int instanceId)
actr
- name of the actorinstanceId
- instance idpublic int getBufferSize(Channel chnnl)
chnnl
- channel instancepublic java.util.List<java.util.Map.Entry<java.lang.String,java.lang.Integer>> getSortedActorInstances(DmaEngine dma)
dma
- DMA enginepublic java.util.List<java.util.Map.Entry<java.lang.String,java.lang.Integer>> getSortedActorInstances(Processor processor)
processor
- processor instancepublic int numProcessorsUsed(Cluster cluster)
cluster
- cluster instancepublic int getMaxDmaEnginesUsed(Cluster cluster, java.lang.String channelName)
cluster
- name of the clusterchannelName
- name of the channel