public abstract class PrimitiveArrayType extends Object implements HGAtomType
Modifier and Type | Field and Description |
---|---|
protected HyperGraph |
hg |
Constructor and Description |
---|
PrimitiveArrayType() |
Modifier and Type | Method and Description |
---|---|
void |
release(HGPersistentHandle handle)
Release a hypergraph value instance from the persistent store.
|
void |
setHyperGraph(HyperGraph hg)
During load time, set the
HyperGraph
instance to which this atom belongs. |
boolean |
subsumes(Object general,
Object specific)
A generic semantic predicate that returns
true if the first argument
is more general than the second. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
make, store
protected HyperGraph hg
public void setHyperGraph(HyperGraph hg)
HGGraphHolder
During load time, set the HyperGraph
instance to which this atom belongs.
setHyperGraph
in interface HGGraphHolder
public void release(HGPersistentHandle handle)
HGAtomType
Release a hypergraph value instance from the persistent store.
This method should be called when a HGPersistentHandle
returned from the store
is no longer in use.
release
in interface HGAtomType
handle
- The persistent handle of the value to release.public boolean subsumes(Object general, Object specific)
HGAtomType
A generic semantic predicate that returns true
if the first argument
is more general than the second. Atom types must implement this notion of specialization
whenever meaningful in the context of the entities being constructed.
The notion of subsumption can be seen as partial equivalence, or equivalence in one direction only.
As a relation, subsumtion is transitive and reflexive. The latter implies that, at a minimum,
the subsumes
method must return true
if
general.equals(specific)
.
subsumes
in interface HGAtomType
general
- The object which might be more general. Cannot be null
.specific
- The object which might be more specific. Cannot be null
.true if specific
can be used whenever general
is required and false
otherwise.
Copyright © 2015. All rights reserved.