public class DesignFlowSolution.Mapping
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.HashMap<Cluster,java.lang.Integer> |
clusterToGroupMap
Map of group assigned to a cluster.
|
private boolean |
sdfAllocation
Are the SDF actors allocated to groups in mapping?
TODO: HSDF is not yet supported.
|
Constructor and Description |
---|
DesignFlowSolution.Mapping(boolean sdfAllocation)
Build a mapping solution.
|
DesignFlowSolution.Mapping(DesignFlowSolution.Mapping anotherMappingSolution)
Build a mapping solution from another mapping solution.
|
Modifier and Type | Method and Description |
---|---|
void |
addGroupToCluster(Cluster cluster,
int group)
Assign a groupe to a cluster.
|
Cluster |
getClusterAllocatedToGroup(int group)
Get the cluster allocated to a group.
|
SchedulingConstraints |
getSchedulingConstraints()
Get all the scheduling constraints based on mapping.
|
void |
resolveDmaTaskExecutionTime()
Resolve the execution times for all the DMA actors
|
java.util.List<Cluster> |
usedClusters()
Get a list of clusters on which there are some actor allocated.
|
private final boolean sdfAllocation
private java.util.HashMap<Cluster,java.lang.Integer> clusterToGroupMap
public DesignFlowSolution.Mapping(DesignFlowSolution.Mapping anotherMappingSolution)
anotherMappingSolution
- another mapping solutionpublic DesignFlowSolution.Mapping(boolean sdfAllocation)
sdfAllocation
- is it SDF allocation?public java.util.List<Cluster> usedClusters()
public void addGroupToCluster(Cluster cluster, int group)
cluster
- cluster instancegroup
- group numberpublic Cluster getClusterAllocatedToGroup(int group)
group
- group indexpublic void resolveDmaTaskExecutionTime()
public SchedulingConstraints getSchedulingConstraints()