protected class WorkingMemory.AVEntry
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
protected Attribute |
getAttribute() |
protected Value |
getValue()
It return value of the attribute.
|
protected void |
setAttributeValue(Value value)
A method that sets a value of the attribute for a value given as a parameter.
|
public AVEntry(Attribute attr, Value value) throws NotInTheDomainException
NotInTheDomainExceptionprotected Attribute getAttribute()
protected Value getValue()
Null, or the value is outadet.
All the values that were set in past reasoning cycle are considered outdated.
If called from outside the reasoning process (i.e. time is not locked), it does not trigger callabck.
Instead the last set value is returned.
If the attribute has ambiguous values assigned during the reasoning process, the method resolves the
ambiguity, but leaves the list of ambiguous values intact, so that the second call of this method
will yeld the same result assuming, no new value was assigned to the working memory.WorkingMemory.isTimeLocked(),
WorkingMemory.lockTime()protected void setAttributeValue(Value value) throws NotInTheDomainException
NotInTheDomainException is thrown.
Casting between SimpleSymbolic and SimpleNumeric is allowed if
SimpleSimbolic type is ordered. In every other case, the NotInTheDomainException
is thrown.
During inference process the method does not assign a value directly to the attribute
Instead, it stores the value (or values if multiple rules set the same attribute value)
and when getValue() method is called, the ambiguity resolver chooses which
value to assign to the attribute.
After the getValue() is called, the list of ambiguous values is cleared.
The only exception is Null value, that despite not being in any domain
can be assigned to the attribute value.value - to setNotInTheDomainException