protected class Resolver3.Instance extends Object implements Cloneable
Definition
.
Goes through several states:
\(creation by resolveAllPublics(..)) \ ownClass [isClass=true,hypo=requires=false,representative=null] ^ | \(creation by newHypthesis(old)) |setIsClass() \ | hypoEquivalent | h=[isClass=requires=falsified=false, hypo=true,representative=old,requiredBy={}] |^ |^ | | ^ || || | | | ||Equivalence.match(h) | |hypothesisFalsified() || with currentHypothesis=x | | |newHypothesis(old) || || | | | || ||Equivalence.match(some hypo) | | || ||with currentHypothesis=h | | | V| || | | | [ ..., requiredBy={x...}] | V | |V | falsified | [ ..., requires=true, ...] | [.., representative=null, falsified=true,..] | hypothesisConfirmed()| V equivWithOther [.. hypothetical=false..]
Modifier and Type | Method and Description |
---|---|
Format |
format() |
void |
hypothesisConfirmed()
The hypothetical equivalence to
representative is changed to a
confirmed equivalence. |
void |
hypothesisFalsified()
The hypothetical equivalence to
representative has been falsified. |
boolean |
isBound()
Is its own class or hypothetically bound or confirmed bound.
|
boolean |
isClass() |
Resolver3.Instance |
newHypothesis(Resolver3.Instance other)
Delivers an instance which is hypothetically equivalent with "other".
|
Resolver3.Instance |
representative() |
void |
setIsClass() |
public void setIsClass()
public boolean isClass()
public boolean isBound()
public Resolver3.Instance representative()
public Resolver3.Instance newHypothesis(Resolver3.Instance other)
requires
==true,
technically a new object must be built, because the existing one is in
(at least) one set for delivering future fail events. Otherwise the object
can be reused.public void hypothesisConfirmed()
representative
is changed to a
confirmed equivalence.public void hypothesisFalsified()
representative
has been falsified.
This is reflected by setting that field to ==null. This failure is propagated
to al Instances in #dependent
.
It is memorized in different
for quick check of later hypotheses.
It is memorized in falsified
only for optimization, to skip
propagation in case of multiple calls to this method.public Format format()
see also the complete user documentation .