|
||||||||||
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.AttComparedToAttParameter
public class AttComparedToAttParameter
A filter (BooleanReturn) parameter comparing the attributes of two nodes and returning true if (a) the first node is greater than the second, or (b) the first node equals the second, depending on a constructor flag.
Constructor Summary | |
---|---|
AttComparedToAttParameter(VariableID node1reference,
VariableID node2reference,
AttributeID attribute,
boolean testGreaterThan,
boolean overrideInheritance)
Constructor. |
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. |
AttributeID |
getAttribute()
|
VariableID |
getNode1()
|
VariableID |
getNode2()
|
boolean |
getOverrideInheritance()
|
boolean |
getTest()
Returns true if the test is whether node1.attribute > node2.attribute. |
Parameter |
makeCopy()
All Parameters must include a self-duplication function. |
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 AttComparedToAttParameter(VariableID node1reference, VariableID node2reference, AttributeID attribute, boolean testGreaterThan, boolean overrideInheritance)
node1reference
- The name of the reference by which the
node1 should already be stored.node2reference
- The name of the reference by which the
node1 should already be stored.attribute
- The ID of the attribute to check.test
- Pass true for the parameter to return true iff
node1.attribute > node2.attribute. Pass false for the
parameter to return true iff node1.attribute ==
node2.attribute.overrideInheritance
- Set to true if you want to only
check a candidate node itself, but false if you want to allow
the node to inherit the value from a neighborhing node
(according to the rules set in LinkProperties).Method Detail |
---|
public VariableID getNode1()
public VariableID getNode2()
public AttributeID getAttribute()
public NodeAddressSet assumedNodes()
Parameter
assumedNodes
in class Parameter
public boolean getTest()
public boolean getOverrideInheritance()
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |