|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectat.dms.kjc.sir.SIROperator
at.dms.kjc.sir.SIRStream
at.dms.kjc.sir.SIRContainer
at.dms.kjc.sir.SIRPipeline
public class SIRPipeline
This represents a pipeline of stream structures, as would be declared with a Stream construct in StreaMIT.
Field Summary |
---|
Fields inherited from class at.dms.kjc.sir.SIRStream |
---|
fields, ident, init, methods, work |
Constructor Summary | |
---|---|
SIRPipeline(SIRContainer parent,
String ident)
Construct a new SIRPipeline with empty fields and methods. |
|
SIRPipeline(SIRContainer parent,
String ident,
JFieldDeclaration[] fields,
JMethodDeclaration[] methods)
Construct a new SIRPipeline with the given fields and methods. |
|
SIRPipeline(String ident)
Construct a new SIRPipeline with no parent and empty fields and methods. |
Method Summary | |
---|---|
Object |
accept(AttributeStreamVisitor v)
Accepts attribute visitor |
Object |
deepClone()
Returns a deep clone of this object. |
protected void |
deepCloneInto(SIRPipeline other)
Clones all fields of this into |
List<Object> |
getChildrenBetween(SIROperator first,
SIROperator last)
Returns a list of the children between |
CType |
getInputType()
Returns the input type of this. |
CType |
getOutputType()
Returns the output type of this. |
int |
getPopForSchedule(HashMap[] counts)
Same as getPushForSchedule, but with pop instead of push. |
int |
getPushForSchedule(HashMap[] counts)
Returns the number of items pushed out of this stream in one execution of the steady-state, given the steady-state execution counts specified by |
List<SIRStream> |
getSequentialStreams()
Returns a list of the children of this Use instead of getChildren if want to get List |
LIRStreamType |
getStreamType()
Returns the type of this stream. |
List<SIROperator[]> |
getTapePairs()
Returns a list of tuples (two-element arrays) of SIROperators, representing a tape from the first element of each tuple to the second. |
void |
replace(SIRStream oldStr,
SIRStream newStr)
See documentation in SIRContainer. |
void |
replace(SIRStream start,
SIRStream end,
SIRStream newStream)
Replaces the sequence of |
void |
setChildren(LinkedList<Object> children)
Sets children of this to be all the children of |
String |
toString()
|
Methods inherited from class at.dms.kjc.sir.SIRContainer |
---|
add, add, add, add, clear, contains, deepCloneInto, destroy, get, getChildren, getParams, getParams, getSuccessor, indexOf, makeWrapper, myChildren, myParams, reclaimChildren, remove, remove, set, setParams, size |
Methods inherited from class at.dms.kjc.sir.SIRStream |
---|
addField, addField, addFields, addFields, addMethod, addMethods, addReplacementMethod, deepCloneInto, getFields, getIdent, getInit, getMethods, getStreamWithNumber, getTypeNameInC, getWork, hasMethod, insideFeedbackLoop, makeEmptyInit, makeEmptyInitWork, makeEmptyWork, needsInit, needsWork, setFields, setIdent, setInit, setInitWithoutReplacement, setMethods, setWork |
Methods inherited from class at.dms.kjc.sir.SIROperator |
---|
assertMutable, deepCloneInto, getAncestors, getName, getNumber, getParent, getParents, getParentStructureAccess, getRelativeName, getShortIdent, hashCode, readResolve, setParent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SIRPipeline(SIRContainer parent, String ident, JFieldDeclaration[] fields, JMethodDeclaration[] methods)
public SIRPipeline(SIRContainer parent, String ident)
public SIRPipeline(String ident)
Method Detail |
---|
public CType getOutputType()
getOutputType
in class SIRStream
public CType getInputType()
getInputType
in class SIRStream
public LIRStreamType getStreamType()
getStreamType
in class SIRStream
public int getPushForSchedule(HashMap[] counts)
SIRStream
getPushForSchedule
in class SIRStream
public int getPopForSchedule(HashMap[] counts)
SIRStream
getPopForSchedule
in class SIRStream
public List<SIRStream> getSequentialStreams()
public List<Object> getChildrenBetween(SIROperator first, SIROperator last)
public void setChildren(LinkedList<Object> children)
public List<SIROperator[]> getTapePairs()
getTapePairs
in class SIRContainer
public void replace(SIRStream oldStr, SIRStream newStr)
replace
in class SIRContainer
public void replace(SIRStream start, SIRStream end, SIRStream newStream)
public Object accept(AttributeStreamVisitor v)
accept
in class SIROperator
public String toString()
toString
in class SIRStream
public Object deepClone()
deepClone
in interface DeepCloneable
deepClone
in class SIRContainer
protected void deepCloneInto(SIRPipeline other)
other
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |