|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.deri.iris.optimisations.magicsets.LeftToRightSip
public class LeftToRightSip
Sip, which examines the body literals from left to right.
This class is final, because the constructor is calling public non-final methods.
| Constructor Summary | |
|---|---|
LeftToRightSip(IRule rule)
Constructs a sip out of a rule. |
|
LeftToRightSip(IRule rule,
IQuery query)
Creates a SIP for the given rule with bindings for the given query. NOTE: at the moment only the first literal of the head and the query are recognized. |
|
| Method Summary | |
|---|---|
boolean |
containsVertex(ILiteral literal)
Determines whether the sip constains a specific literal. |
boolean |
equals(Object object)
|
Set<IVariable> |
getBoundVariables(ILiteral literal)
Determines all variables, which are passed to this literal. |
Set<ILiteral> |
getDepends(ILiteral literal)
Searches for literals on which the submitted literal depends. |
Set<LabeledEdge<ILiteral,Set<IVariable>>> |
getEdges()
Returns an unmodifiable set of all edges of the sip. |
Set<LabeledEdge<ILiteral,Set<IVariable>>> |
getEdgesEnteringLiteral(ILiteral literal)
Searches for edges entering this literal. |
Set<LabeledEdge<ILiteral,Set<IVariable>>> |
getEdgesLeavingLiteral(ILiteral literal)
Searches for edges leaving this literal. |
Set<ILiteral> |
getLeafVertices()
Determines the leafes of this graph. |
Comparator<ILiteral> |
getLiteralComparator()
Returns the Comparator to compare literals according to their position in the sips. |
Set<ILiteral> |
getRootVertices()
Determines the roots of this graph. |
int |
hashCode()
|
String |
toString()
Returns a simple string representation of this graph. |
Set<IVariable> |
variablesPassedByLiteral(ILiteral source,
ILiteral target)
Determines the set of variables passed to one literal by one specific edge. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LeftToRightSip(IRule rule,
IQuery query)
rule - the rule for which to construct the graphquery - the query for this rule
IllegalArgumentException - if the rule is null
IllegalArgumentException - if the query is nullpublic LeftToRightSip(IRule rule)
rule - the rule for which to create the sip
IllegalArgumentException - if the rule is null| Method Detail |
|---|
public Set<IVariable> getBoundVariables(ILiteral literal)
ISip
getBoundVariables in interface ISipliteral - the literal for which to determine the variables
public Set<ILiteral> getDepends(ILiteral literal)
ISip
getDepends in interface ISipliteral - the literal for which to search for dependencies
public Set<LabeledEdge<ILiteral,Set<IVariable>>> getEdgesEnteringLiteral(ILiteral literal)
ISip
getEdgesEnteringLiteral in interface ISipliteral - the literal for which to search for entering edges
public Set<LabeledEdge<ILiteral,Set<IVariable>>> getEdgesLeavingLiteral(ILiteral literal)
ISip
getEdgesLeavingLiteral in interface ISipliteral - the literal for which to search for entering edges
public Set<IVariable> variablesPassedByLiteral(ILiteral source,
ILiteral target)
ISip
variablesPassedByLiteral in interface ISipsource - the source of the edgetarget - the target of the edge
public String toString()
toString in class Objectpublic boolean containsVertex(ILiteral literal)
ISip
containsVertex in interface ISipliteral - the literal for which to search for
public Set<ILiteral> getRootVertices()
ISip
getRootVertices in interface ISippublic Set<ILiteral> getLeafVertices()
ISip
getLeafVertices in interface ISippublic Comparator<ILiteral> getLiteralComparator()
ISip
getLiteralComparator in interface ISipSipHelper#getAdornedSip(org.deri.iris.evaluation.common.AdornedProgram.IAdornedRule)public Set<LabeledEdge<ILiteral,Set<IVariable>>> getEdges()
public boolean equals(Object object)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||