|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvs.plotagent.inspiration.InspirationRule
public class InspirationRule
Field Summary | |
---|---|
java.util.Set<de.fuberlin.wiwiss.ng4j.Quad> |
m_antecedent
|
java.util.Set<de.fuberlin.wiwiss.ng4j.Quad> |
m_consequent
|
java.util.Set<com.hp.hpl.jena.graph.Node> |
m_inspirationCausers
|
com.hp.hpl.jena.graph.Node |
m_inspirationNode
|
com.hp.hpl.jena.graph.Node |
m_inspirationType
|
java.lang.String |
m_maingraphVar
|
java.lang.String |
m_name
|
java.util.Map<com.hp.hpl.jena.graph.Node,java.lang.String> |
m_nodeToVarMap
|
java.util.Set<com.hp.hpl.jena.graph.Node> |
m_subgraphnodes
|
java.util.Set<java.lang.String> |
m_uniqueVars
|
int |
m_varCounter
|
static java.lang.String |
mainGraphVar
|
Constructor Summary | |
---|---|
InspirationRule(java.lang.String name,
com.hp.hpl.jena.graph.Node inspirationNode,
com.hp.hpl.jena.graph.Node inspirationType,
java.util.Set<com.hp.hpl.jena.graph.Node> inspirationCausers,
java.util.Set<com.hp.hpl.jena.graph.Node> subGraphNodes)
|
Method Summary | |
---|---|
void |
add(InspirationRule r)
|
void |
addAntecedent(de.fuberlin.wiwiss.ng4j.Quad q)
Adds a quad to the antecedent (left hand side) of the rule. |
void |
addConsequent(de.fuberlin.wiwiss.ng4j.Quad q)
Adds a quad to the consequent (right hand side) of the rule. |
boolean |
equals(java.lang.Object o)
Following the steps from http://java.sun.com/developer/Books/effectivejava/Chapter3.pdf It must be symmetric, transitive and consistent |
java.util.Set<de.fuberlin.wiwiss.ng4j.Quad> |
getAntecedent()
|
java.util.Set<de.fuberlin.wiwiss.ng4j.Quad> |
getConsequent()
|
java.util.Set<com.hp.hpl.jena.graph.Node> |
getInspirationCausers()
|
com.hp.hpl.jena.graph.Node |
getInspirationNode()
|
com.hp.hpl.jena.graph.Node |
getInspirationType()
|
java.lang.String |
getName()
|
int |
hashCode()
Return the sum of the hashcodes of the important parts. hashCode must be overridden when equals() is used. |
java.lang.String |
toString()
A rule looks like this: suggestion('rule_14', ( |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static java.lang.String mainGraphVar
public java.lang.String m_name
public java.util.Set<com.hp.hpl.jena.graph.Node> m_subgraphnodes
public com.hp.hpl.jena.graph.Node m_inspirationNode
public com.hp.hpl.jena.graph.Node m_inspirationType
public java.util.Set<com.hp.hpl.jena.graph.Node> m_inspirationCausers
public java.util.Set<de.fuberlin.wiwiss.ng4j.Quad> m_antecedent
public java.util.Set<de.fuberlin.wiwiss.ng4j.Quad> m_consequent
public java.util.Map<com.hp.hpl.jena.graph.Node,java.lang.String> m_nodeToVarMap
public java.util.Set<java.lang.String> m_uniqueVars
public java.lang.String m_maingraphVar
public int m_varCounter
Constructor Detail |
---|
public InspirationRule(java.lang.String name, com.hp.hpl.jena.graph.Node inspirationNode, com.hp.hpl.jena.graph.Node inspirationType, java.util.Set<com.hp.hpl.jena.graph.Node> inspirationCausers, java.util.Set<com.hp.hpl.jena.graph.Node> subGraphNodes)
Method Detail |
---|
public void add(InspirationRule r)
public void addAntecedent(de.fuberlin.wiwiss.ng4j.Quad q)
q
- the quad to add to the antecedent of the rule.public void addConsequent(de.fuberlin.wiwiss.ng4j.Quad q)
q
- the quad to add to the consequent of the rule.public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public java.util.Set<de.fuberlin.wiwiss.ng4j.Quad> getAntecedent()
public java.util.Set<de.fuberlin.wiwiss.ng4j.Quad> getConsequent()
public java.util.Set<com.hp.hpl.jena.graph.Node> getInspirationCausers()
public com.hp.hpl.jena.graph.Node getInspirationNode()
public com.hp.hpl.jena.graph.Node getInspirationType()
public java.lang.String getName()
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |