|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnenok.va.Identity
public final class Identity
This implementation of the valuation interface represents an identity element in a
valuation algebra. It has been shown that all valuation algebras can artificially be
extended to have such an identity element. Since identity elements are unique, the
constructor's visibility is set to private and the single instance is avaiable through
the constant Identity.INSTANCE
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface nenok.va.Idempotency |
---|
Idempotency.Implementor |
Field Summary | |
---|---|
static Identity |
INSTANCE
Unique instance of an identity element. |
Method Summary | |
---|---|
Valuation |
combine(Valuation val)
Combination of valuations. |
Separativity |
inverse()
Returns an inverse element for the current valuation. |
Domain |
label()
|
Valuation |
marginalize(Domain dom)
The marginalization to the empty set is the only possible marginalization for identity elements. |
Scalability |
scale()
Scales the current valuation. |
String |
toString()
|
int |
weight()
Weight function: |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final Identity INSTANCE
Method Detail |
---|
public int weight()
Valuation
weight
in interface Valuation
Valuation.weight()
public Domain label()
label
in interface Labeled
Labeled.label()
public Valuation combine(Valuation val)
Valuation
combine
in interface Valuation
val
- The second valuation involved in the combination.
this
and val
.Valuation.combine(nenok.va.Valuation)
public Valuation marginalize(Domain dom) throws VAException
marginalize
in interface Valuation
dom
- The domain onto this valuation is marginalized.
this
to dom
.
VAException
- Exception occuring when a marginalization is performed onto an illegal domain.
Throwing this exception is the recommended way to implement partial marginalization.Valuation.marginalize(nenok.va.Domain)
public String toString()
toString
in class Object
Object.toString()
public Scalability scale()
Scalability
scale
in interface Scalability
Scalability.scale()
public Separativity inverse()
Separativity
inverse
in interface Separativity
Separativity.inverse()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |