|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmapss.dif.csdf.sdf.sched.ProcedureSynthesis
public class ProcedureSynthesis
Procedure synthesis for a schedule. This class is a helpful
companion tool for ProcedureStrategy
or any schedule that will be
implemented in procedures.
Field Summary | |
---|---|
protected java.util.Collection |
_bottomProcedures
A collection of bottom-level procedures. |
protected java.util.List |
_procedures
A list of all procedures synthesized. |
protected java.util.List |
_schedules
A list of registered schedules. |
protected java.util.Map |
_scheduleToProcedureMap
A map from schedules to procedures. |
protected Procedure |
_topProcedure
The toppest level procedure of the synthesis. |
Constructor Summary | |
---|---|
ProcedureSynthesis(mocgraph.sched.Schedule schedule)
Constructor of a Schedule . |
Method Summary | |
---|---|
protected java.lang.String |
_getName(boolean isGeneralName,
Procedure procedure,
java.util.Map nameMap)
Get a procedure's name depending on its type. |
protected Procedure |
_register(mocgraph.sched.ScheduleElement schedule)
Register the schedule with a new procedure instantiated. |
protected Procedure |
_synthesize(mocgraph.sched.ScheduleElement schedule,
Procedure caller)
Synthesize a procedure given a schedule and the caller procedure. |
Procedure |
getProcedure(int label)
Get the procedure with the given procedure label. |
Procedure |
getProcedure(mocgraph.sched.ScheduleElement schedule)
Get the synthesized procedure given a registered schedule. |
int |
procedureCount()
The total number of procedures synthesized. |
int |
procedureLabel(Procedure procedure)
Get the integer label of a synthesized procedure. |
java.lang.String |
toString()
Display the synthesized procedures in text. |
java.lang.String |
toString(java.util.Map nameMap)
Display the synthesized procedures in text. |
java.lang.String |
toStringWithSchedules(java.util.Map nameMap)
Display the synthesized procedures in text. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.util.Collection _bottomProcedures
protected java.util.List _procedures
protected java.util.List _schedules
protected java.util.Map _scheduleToProcedureMap
protected Procedure _topProcedure
Constructor Detail |
---|
public ProcedureSynthesis(mocgraph.sched.Schedule schedule)
Schedule
.
schedule
- The given schedule.Method Detail |
---|
public Procedure getProcedure(int label)
label
- The procedure label.
public Procedure getProcedure(mocgraph.sched.ScheduleElement schedule)
schedule
- The given schedule.
public int procedureCount()
public int procedureLabel(Procedure procedure)
procedure
- The given procedure.
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toString(java.util.Map nameMap)
nameMap
- Map from SDF nodes to their String
names.
public java.lang.String toStringWithSchedules(java.util.Map nameMap)
nameMap
- Map from SDF nodes to their names.
protected java.lang.String _getName(boolean isGeneralName, Procedure procedure, java.util.Map nameMap)
isGeneralName
- True if general name is desired; false otherwise.procedure
- The procedure.nameMap
- A map from SDF nodes to text names.
protected Procedure _register(mocgraph.sched.ScheduleElement schedule)
It is users' responsibility to ensure that the schedule was not registered before.
schedule
- The schedule to register.
protected Procedure _synthesize(mocgraph.sched.ScheduleElement schedule, Procedure caller)
schedule
- The schedule for synthesis.caller
- The procedure calling the synthesized procedure.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |