public class ThresholdSource
extends java.lang.Object
Thresholds
structure.
Each reference in the Thresholds structure needs certain information about each source it
is linking with, including the current link value, or the source reference itself,
including probably a URI description. As this is different for each source, the information
is stored here.Modifier and Type | Field and Description |
---|---|
Thresholds |
negativeConcepts
A list of negative related concepts
|
protected int |
negativeMax
The maximum number of allowed negative entries at all levels
|
Thresholds |
parent
The parent thresholds structure
|
java.lang.Object |
source
The source representation as stored in the thresholds structure,
e.g.
|
long |
timeStamp
A time stamp indicating the last time the source was incremented
|
float |
value
The source value
|
Constructor and Description |
---|
ThresholdSource(int thisNegativeMax,
Thresholds thisParent)
Creates a new instance of ThresholdSource.
|
ThresholdSource(Thresholds thisParent)
Creates a new instance of ThresholdSource.
|
Modifier and Type | Method and Description |
---|---|
void |
addNegative(java.util.ArrayList<java.lang.Object> theNodes)
Add the specified negative relations to the list.
|
boolean |
hasNegative(java.util.ArrayList<java.lang.Object> theNodes)
Return true if any of the negative concepts are stored with the link.
|
boolean |
notAssigned()
Return true if object not yet assigned new values.
|
protected int negativeMax
public java.lang.Object source
public Thresholds negativeConcepts
public float value
public long timeStamp
public Thresholds parent
public ThresholdSource(Thresholds thisParent) throws java.lang.Exception
Const
.DEFAULTMAXNEGATIVE
.
The value itself is a special case however and not generally used.thisParent
- the parent thresholds structure.java.lang.Exception
- any error.public ThresholdSource(int thisNegativeMax, Thresholds thisParent) throws java.lang.Exception
thisNegativeMax
- the maximum number of negative allowed entries.thisParent
- the parent thresholds structure.java.lang.Exception
- any error.public boolean hasNegative(java.util.ArrayList<java.lang.Object> theNodes) throws java.lang.Exception
theNodes
- the node sources to add as negative, in relation to concepts(parts).java.lang.Exception
- any error.public void addNegative(java.util.ArrayList<java.lang.Object> theNodes) throws java.lang.Exception
theNodes
- the node sources to add as negative, in relation to concepts(parts).java.lang.Exception
- any error.public boolean notAssigned()