|
||||||||||
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.SIRJoiner
public class SIRJoiner
This represents a stream construct with a single output and multiple inputs.
Field Summary | |
---|---|
int |
oldSumWeights
|
static JMethodDeclaration |
WORK_FUNCTION
This is a dummy work function that is used to represent the work of a joiner to the scheduling package. |
Method Summary | |
---|---|
Object |
accept(AttributeStreamVisitor v)
Accepts attribute visitor |
static SIRJoiner |
create(SIRContainer parent,
SIRJoinType type,
int n)
Constructs a joiner with given parent, type and n number of inputs. |
static SIRJoiner |
create(SIRContainer parent,
SIRJoinType type,
JExpression[] weights)
|
static SIRJoiner |
createUniformRR(SIRContainer parent,
JExpression weight)
This is for creating a round robin with uniform weights across the stream. |
static SIRJoiner |
createWeightedRR(SIRContainer parent,
JExpression[] weights)
Constructs a weighted round-robin joiner with the given parent and weights. |
Object |
deepClone()
Returns a deep clone of this object. |
protected void |
deepCloneInto(SIRJoiner other)
Clones all fields of this into |
boolean |
equals(SIRJoiner obj)
Tests whether or not this has the same type and the same weights as obj. |
String |
getIdent()
See doc in SIROperator. |
JExpression[] |
getInternalWeights()
Returns JExpression weights of this. |
int |
getSumOfWeights()
Returns the sum of all weights in this. |
SIRJoinType |
getType()
Return type of this. |
int |
getWays()
Return the number of inputs to this. |
int |
getWeight(int i)
Return int weight at position i. |
JExpression |
getWeightNoChecking(int i)
|
int[] |
getWeights()
Return int weights array of this. |
void |
rescale(int extent)
If this is a joiner that has equal weight per way, then rescale the weights to be of the given |
String |
toString()
|
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 |
Field Detail |
---|
public static final JMethodDeclaration WORK_FUNCTION
public int oldSumWeights
Method Detail |
---|
public static SIRJoiner create(SIRContainer parent, SIRJoinType type, JExpression[] weights)
public static SIRJoiner create(SIRContainer parent, SIRJoinType type, int n)
public static SIRJoiner createWeightedRR(SIRContainer parent, JExpression[] weights)
public static SIRJoiner createUniformRR(SIRContainer parent, JExpression weight)
public boolean equals(SIRJoiner obj)
public Object accept(AttributeStreamVisitor v)
accept
in class SIROperator
public SIRJoinType getType()
public void rescale(int extent)
public int getWays()
public String getIdent()
getIdent
in class SIROperator
public String toString()
toString
in class Object
public JExpression[] getInternalWeights()
public int getSumOfWeights()
public int[] getWeights()
public int getWeight(int i)
public JExpression getWeightNoChecking(int i)
public Object deepClone()
deepClone
in interface DeepCloneable
deepClone
in class SIROperator
protected void deepCloneInto(SIRJoiner other)
other
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |