public class AtomProjection extends HGPlainLink
This link represents a relationship between a composite type and one of its
projections. It states that the projection in question is an atom in itself
and therefore must be recorded as a HGAtomRef
in all values
of this composite type. The mode
of the atom reference projection
is the sole attribute of the relationship.
The link is between the type whose projection is an atom reference and the type of the projection's value.
An AtomProjection
also holds the name of the projection as an attribute.
the name together with the value type are enough (and generally necessary) to identify
the projection.
outgoingSet
Constructor and Description |
---|
AtomProjection(HGHandle[] targetSet) |
AtomProjection(HGHandle type,
String name,
HGHandle valueType,
HGAtomRef.Mode mode)
Construct an atom projection link.
|
Modifier and Type | Method and Description |
---|---|
HGAtomRef.Mode |
getMode() |
String |
getName() |
HGHandle |
getProjectionValueType() |
HGHandle |
getType() |
void |
setMode(HGAtomRef.Mode mode) |
void |
setName(String name) |
getArity, getTargetAt, iterator, notifyTargetHandleUpdate, notifyTargetRemoved, toString, toStringHdlArr
public AtomProjection(HGHandle[] targetSet)
public AtomProjection(HGHandle type, String name, HGHandle valueType, HGAtomRef.Mode mode)
Construct an atom projection link.
type
- The handle to a HGCompositeType
.name
- The name of the projection.valueType
- The type of the projection's value.mode
- The mode of the atom reference to be used when managing atoms
of the composite type.public HGHandle getType()
public HGHandle getProjectionValueType()
public HGAtomRef.Mode getMode()
public void setMode(HGAtomRef.Mode mode)
public String getName()
public void setName(String name)
Copyright © 2015. All rights reserved.