public class PipelinedScheduleXml
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private int |
totalProcessorsInPlatform
Variable indicating maximum number of processors in the platform.
|
Constructor and Description |
---|
PipelinedScheduleXml() |
Modifier and Type | Method and Description |
---|---|
private void |
addActorElements(Graph graph,
Solutions solutions,
org.w3c.dom.Document doc,
org.w3c.dom.Element parent)
Add Actor elements in the XML file.
|
private void |
addChannelElements(Graph graph,
Solutions solutions,
org.w3c.dom.Document doc,
org.w3c.dom.Element parent,
java.util.Map<java.lang.String,java.lang.String> schedule)
Add Channel elements in the XML file.
|
private void |
addPostScheduleElement(Graph graph,
Solutions solutions,
java.util.Map<java.lang.String,java.lang.String> schedule,
org.w3c.dom.Document doc,
org.w3c.dom.Element parent)
Add Post schedule element to the XML file.
|
private void |
addPreScheduleElement(Graph graph,
Solutions solutions,
java.util.Map<java.lang.String,java.lang.String> schedule,
org.w3c.dom.Document doc,
org.w3c.dom.Element parent)
Add pre-schedule element to XML file.
|
private void |
addScheduleElement(Graph graph,
Solutions solutions,
java.util.Map<java.lang.String,java.lang.String> schedule,
org.w3c.dom.Document doc,
org.w3c.dom.Element parent)
Add schedule element to the XML file.
|
private void |
generateProcSchedule(org.w3c.dom.Document doc,
int proc,
java.util.List<java.util.Map.Entry<java.lang.String,java.lang.Integer>> procSchedule,
org.w3c.dom.Element clusterElement)
Generate Processor schedule information.
|
void |
generateSolutionXml(java.lang.String outputFileName,
Graph graph,
Solutions solutions,
java.util.Map<java.lang.String,java.lang.String> schedule)
Generate pipelined schedule XML for the platform.
|
private java.util.Map<java.lang.Integer,java.lang.String> |
getActorsBelongToK(Graph graph,
java.util.Map<java.lang.String,java.lang.String> schedule,
int k,
int processor,
boolean yPrimeLess) |
private java.util.List<java.util.Map.Entry<java.lang.String,java.lang.Integer>> |
getScheduleForProcSortedWithXprime(java.util.Map<java.lang.String,java.lang.String> schedule,
int processor) |
private final int totalProcessorsInPlatform
private void addChannelElements(Graph graph, Solutions solutions, org.w3c.dom.Document doc, org.w3c.dom.Element parent, java.util.Map<java.lang.String,java.lang.String> schedule)
graph
- application graphsolutions
- solutions for application graphdoc
- XML documentparent
- parent node where to add this elementschedule
- Model with scheduling informationprivate void addActorElements(Graph graph, Solutions solutions, org.w3c.dom.Document doc, org.w3c.dom.Element parent)
graph
- application graphsolutions
- solutions for application graphdoc
- XML documentparent
- parent node where to add this elementprivate java.util.List<java.util.Map.Entry<java.lang.String,java.lang.Integer>> getScheduleForProcSortedWithXprime(java.util.Map<java.lang.String,java.lang.String> schedule, int processor)
schedule
- pipelined scheduleprocessor
- processor indexprivate void generateProcSchedule(org.w3c.dom.Document doc, int proc, java.util.List<java.util.Map.Entry<java.lang.String,java.lang.Integer>> procSchedule, org.w3c.dom.Element clusterElement)
doc
- XML documentproc
- processor indexprocSchedule
- Scheduling information for the processor.clusterElement
- parent cluster node where to add this elementprivate void addScheduleElement(Graph graph, Solutions solutions, java.util.Map<java.lang.String,java.lang.String> schedule, org.w3c.dom.Document doc, org.w3c.dom.Element parent)
graph
- application graphsolutions
- solutions for application graphdoc
- XML documentparent
- parent node where to add this elementschedule
- Model with scheduling informationprivate java.util.Map<java.lang.Integer,java.lang.String> getActorsBelongToK(Graph graph, java.util.Map<java.lang.String,java.lang.String> schedule, int k, int processor, boolean yPrimeLess)
graph
- schedule
- k
- processor
- yPrimeLess
- private void addPreScheduleElement(Graph graph, Solutions solutions, java.util.Map<java.lang.String,java.lang.String> schedule, org.w3c.dom.Document doc, org.w3c.dom.Element parent)
graph
- application graphsolutions
- solutions for application graphdoc
- XML documentparent
- parent node where to add this elementschedule
- pipelined schedule modelprivate void addPostScheduleElement(Graph graph, Solutions solutions, java.util.Map<java.lang.String,java.lang.String> schedule, org.w3c.dom.Document doc, org.w3c.dom.Element parent)
graph
- application graphsolutions
- solutions for application graphdoc
- XML documentparent
- parent node where to add this elementpublic void generateSolutionXml(java.lang.String outputFileName, Graph graph, Solutions solutions, java.util.Map<java.lang.String,java.lang.String> schedule)
outputFileName
- output schedule xml file namegraph
- application graphsolutions
- solutions to the application graphschedule
- Model of the pipelined schedule