|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectstory.dbcore.parameters.Parameter
story.dbcore.parameters.BooleanReturnParameter
story.dbcore.parameters.NodesRelatedParameter
public class NodesRelatedParameter
A filter (BooleanReturn) parameter testing whether some two nodes are related by some link type. Works for either previously matched nodes in references or concrete nodes. Also includes a constructor to filter for whether two nodes are the same.
Constructor Summary | |
---|---|
NodesRelatedParameter(NodeAddress node1,
LinkType linkType,
NodeAddress node2,
boolean overrideInference)
Constructor for checking the relationship between two concrete nodes. |
|
NodesRelatedParameter(NodeAddress node1,
LinkType linkType,
VariableID node2reference,
boolean overrideInference)
Constructor for checking the relationship between one concrete and one previously matched node. |
|
NodesRelatedParameter(VariableID node1reference,
LinkType linkType,
NodeAddress node2,
boolean overrideInference)
Constructor for checking the relationship between one concrete and one previously matched node. |
|
NodesRelatedParameter(VariableID node1reference,
LinkType linkType,
VariableID node2reference,
boolean overrideInference)
Constructor for checking the relationship between two previously matched nodes. |
|
NodesRelatedParameter(VariableID node1reference,
NodeAddress node2)
Constructor for checking if a previously matched node is the same as some constant node. |
|
NodesRelatedParameter(VariableID node1reference,
VariableID node2reference)
Constructor for checking if two previously matched nodes are the same. |
Method Summary | |
---|---|
NodeAddressSet |
assumedNodes()
Each concretizing class needs to provide a list of nodes that it assumes exist prior to evaluation, i.e., concrete nodes with which it is constructed. |
LinkType |
getLinkType()
Returns the type of link that this parameter concerns. |
NodeAddress |
getNode1AsAddress()
Get the address of node 1. |
VariableID |
getNode1AsReference()
Get the VariableID of the reference storing node 1 for this parameter. |
NodeAddress |
getNode2AsAddress()
Get the address of node 2. |
VariableID |
getNode2AsReference()
Get the VariableID of the reference storing node 2 for this parameter. |
boolean |
getOverrideInference()
Returns whether relationship inference should be overridden (turned off) for the testing of this parameter. |
boolean |
getTestingEquality()
Returns whether the relationship being tested is node equality in particuar. |
Parameter |
makeCopy()
All Parameters must include a self-duplication function. |
boolean |
node1UsesReference()
Return whether node 1 is accessible by getNode1AsReference or getNode1AsAddress, which depends on which constructor was used. |
boolean |
node2UsesReference()
Return whether node 2 is accessible by getNode1AsReference or getNode1AsAddress, which depends on which constructor was used. |
ReferenceReqSet |
referenceRequirements()
Each concretizing class needs to provide a ReferenceReqSet of all the references which must be set prior to the parameter's evaluation. |
java.lang.StringBuffer |
specificRender()
Render as a StringBuffer |
Methods inherited from class story.dbcore.parameters.Parameter |
---|
makeClone, render |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NodesRelatedParameter(VariableID node1reference, LinkType linkType, VariableID node2reference, boolean overrideInference)
public NodesRelatedParameter(VariableID node1reference, LinkType linkType, NodeAddress node2, boolean overrideInference)
public NodesRelatedParameter(NodeAddress node1, LinkType linkType, VariableID node2reference, boolean overrideInference)
public NodesRelatedParameter(NodeAddress node1, LinkType linkType, NodeAddress node2, boolean overrideInference)
public NodesRelatedParameter(VariableID node1reference, NodeAddress node2)
public NodesRelatedParameter(VariableID node1reference, VariableID node2reference)
Method Detail |
---|
public boolean node1UsesReference()
public boolean node2UsesReference()
public VariableID getNode1AsReference() throws Scheherexception
Scheherexception
public VariableID getNode2AsReference() throws Scheherexception
Scheherexception
public NodeAddress getNode1AsAddress() throws Scheherexception
Scheherexception
public NodeAddress getNode2AsAddress() throws Scheherexception
Scheherexception
public boolean getOverrideInference()
public boolean getTestingEquality()
public LinkType getLinkType()
public java.lang.StringBuffer specificRender() throws Scheherexception
specificRender
in class Parameter
Scheherexception
public ReferenceReqSet referenceRequirements()
Parameter
referenceRequirements
in class Parameter
public Parameter makeCopy()
Parameter
makeCopy
in class Parameter
public NodeAddressSet assumedNodes()
Parameter
assumedNodes
in class Parameter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |