|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectat.dms.kjc.sir.SIRNavigationUtils
public class SIRNavigationUtils
| Constructor Summary | |
|---|---|
SIRNavigationUtils()
|
|
| Method Summary | |
|---|---|
static SIROperator |
commonAncestor(Collection<SIROperator> ss)
Get the common ancestor of all SIROperators in collection. |
static SIROperator |
commonSIRAncestor(SIROperator s1,
SIROperator s2)
Get the common ancestor of s1 and s2. |
static SIROperator |
getFirstOper(SIROperator op)
Return the first non-container operator in the graph structure of op |
static SIROperator |
getLastOper(SIROperator op)
Return the final non-container operator in the graph structure of op |
static Set<SIRFilter> |
getPredecessorFilters(SIROperator str)
Return set of all filters immediately preceeding this operator or preceeding through some sequence of splitters and joiners. |
static SIROperator |
getPredecessorOper(SIRStream str)
Find a stream's predecessor operator in its parent. |
static Set<SIROperator> |
getPredecessorOpers(SIROperator str)
Get set of all SIROperators that are not SIRContainers immediately preceeding a SIROperator (If passed first oper in graph then returns empty set). |
static Set<SIRFilter> |
getSuccessorFilters(SIROperator str)
Return set of all filters immediately following this operator or following through some sequence of splitters and joiners. |
static SIROperator |
getSuccessorOper(SIRStream str)
Find a stream's successor operator in its parent. |
static Set<SIROperator> |
getSuccessorOpers(SIROperator str)
Get set of all SIROperators that are not SIRContainers immediately following a SIROperator (If passed last oper in graph then returns empty set). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SIRNavigationUtils()
| Method Detail |
|---|
public static Set<SIROperator> getPredecessorOpers(SIROperator str)
getPredecessorOper(SIRStream) is that handles SIRSplitter and
handles SIRJoiner returning set containing last operator on each incoming edge.
str - SIROperator that we want to find preceeding operators for.
public static SIROperator getLastOper(SIROperator op)
op - A SIROperator, may be a SIRContainer, not null
public static SIROperator getFirstOper(SIROperator op)
op - A SIROperator, may be a SIRContainer, not null
public static Set<SIROperator> getSuccessorOpers(SIROperator str)
getSuccessorOper(SIRStream) is that handles SIRJoiner and
handles SIRSplitter returning set containing first operator on each outgoing edge.
str - SIROperator that we want to find following operators for.
public static Set<SIRFilter> getSuccessorFilters(SIROperator str)
str - as per description
public static Set<SIRFilter> getPredecessorFilters(SIROperator str)
str - as per description
public static SIROperator getPredecessorOper(SIRStream str)
str - stream that we wish to find predecessor of.
public static SIROperator getSuccessorOper(SIRStream str)
str - stream that we wish to find successor of.
public static SIROperator commonAncestor(Collection<SIROperator> ss)
ss - a collection of SIROperators (or of any subtype of SIROperator).
public static SIROperator commonSIRAncestor(SIROperator s1,
SIROperator s2)
s1 - one SIROperators2 - the other SIROperator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||