public class Equivalence extends Entity implements Group
Entity.LabelValuePair
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
EQUIVNAME |
bundle, changeList, defaultToStringIsCompact, elementOf, exampleOf, FIRE_NOTIFICATION, LOGGER, LOGGER_GROUP, LOGGER_INSTANCE, MARKER_ACTION, MARKER_COMPLETE, MARKER_DESCRIPTION, MARKER_DETERMINER, MARKER_ENTITY, MARKER_FEATURE, MARKER_OWNERS, MARKER_WORD, modifiers, name, nameSuffix, objectOf, observers, OWNER, pathElement, pathList, placeList, previousState, PROPERTY, roleList, SAVE_STATE, subjectOf, TYPECHAR_ENTITY, TYPECHAR_FUNCTION, TYPECHAR_RELATION, TYPECHAR_SEQUENCE
Constructor and Description |
---|
Equivalence() |
Equivalence(java.lang.String type) |
Modifier and Type | Method and Description |
---|---|
boolean |
addAll(java.util.Set<Entity> elts) |
boolean |
addElt(Entity elt)
Adds elt to the group.
|
boolean |
addRel(Relation rel)
If one component of rel is in the equivalence group
and another one is not, this method adds the other
component, irrespective of the relations types.
|
java.util.List<Entity> |
getAllComponents()
Returns an ordered list of all Entities that are subcomponents:
- for a Entity: empty list
- for a Function: subject
- for a Relation: subject, object
- for a Sequence: getElements()
|
java.util.HashSet<Entity> |
getElts()
Returns the set of Things which belong to this group.
|
java.util.HashSet<Relation> |
getRelationsInvolving(Entity elt)
Returns all relations of which elt is either subject or object.
|
java.util.HashSet<Relation> |
getRels()
Returns the set of relations between elements of the group.
|
boolean |
in(Entity elt)
Reports if elt is a member of the group
|
boolean |
in(Relation rel)
Returns true if both the subject and object of rel are
elements of the equivalence, irrespective of rel's type.
|
boolean |
isEqual(java.lang.Object o)
Checks if object o is equal to this.
|
Equivalence |
merge(Equivalence e) |
boolean |
removeElt(Entity elt)
Removes elt, and all relations involving elt, from the group.
|
boolean |
removeRel(Relation rel)
Removes the object of rel from the equivalence group.
|
java.lang.String |
whatGroup()
Returns the type of group of which the implementing class is,
such as sequence or graph.
|
addDeterminer, addElement, addElementOf, addExampleOf, addFeature, addModifier, addModifier, addObjectOf, addObserver, addProperty, addSubjectOf, addThread, addType, addType, addType, addTypes, addTypes, asString, asStringWithIndexes, asStringWithoutIndexes, breakLinksFromChildren, bundleModified, changed, changed, clearModifiers, clone, clone, cloneForResolver, cloneForResolver, clonePropertyList, config, deepClone, deepClone, deepClone, deepClone, deepClone, delete, deleteObserver, deleteObservers, entityP, entityP, featureP, filler, fillerSansName, fine, finer, finest, fireNotification, functionP, functionP, getAllFramesDeep, getAllFramesDeepHelper, getAllFramesShallow, getAllTypes, getAllTypesExcept, getAllTypesForFindMatchingThing, getAncestors, getAncestralTrajectorySpaces, getBundle, getChildren, getClassesFromString, getConnected, getCopy, getCopy, getDescendants, getDeterminer, getElement, getElementOf, getElements, getExampleOf, getExplicitName, getFeatures, getID, getIdentifier, getKeys, getLogger, getMatcherTypes, getModifiers, getName, getNameSuffix, getNumberOfChildren, getObject, getObjectOf, getObjectOf, getParents, getPrettyPrintType, getPrimedThread, getPrintStringFromCollection, getProperty, getPropertyList, getRoots, getSaveStringForm, getSubject, getSubjectOf, getSubjectOf, getSupertype, getThread, getThreadWith, getThreadWith, getType, getTypes, hasFeature, hash, hashCode, hashCodeSansID, hashIncludingThings, hasProperty, hasProperty, identity, identitySansName, imagineType, info, isA, isA, isA, isA, isAllOf, isAncestorOf, isAnyOf, isAnyOf, isAnyOf, isAPrimed, isAPrimed, isAPrimedAction, isDeepEqual, isFirstOrderThing, isNoneOf, isNotA, isNotAPrimed, isPathElement, isRoot, isZeroOrderThing, limitTo, limitToRoot, main, makeLinksFromChildren, makeThread, marker, order, printNamesFromCollection, pushPrimedThread, reader, relationP, relationP, removeElementOf, removeFeature, removeObjectOf, removeParent, removeProperty, removeSubjectOf, removeType, replacePrimedThread, resolvePath, resolvePath, saveState, sendPrimedThreadToEnd, sequenceP, sequenceP, setBundle, setModifiers, setName, setNameSuffix, setNotification, setNotificationOnDependents, setObject, setPrimedThread, setPropertyList, setSaveStringForm, setSaveStringFormOnDependents, setSubject, severe, showDifferences, swapPrimedThread, toString, toString, toStringNamesOnly, toStringSansName, warning
public Equivalence()
public Equivalence(java.lang.String type)
type
- public boolean addElt(Entity elt)
Group
public boolean addRel(Relation rel)
public java.util.HashSet<Entity> getElts()
Group
public java.util.HashSet<Relation> getRelationsInvolving(Entity elt)
Group
getRelationsInvolving
in interface Group
public java.util.HashSet<Relation> getRels()
Group
public boolean in(Entity elt)
Group
public boolean in(Relation rel)
public boolean removeElt(Entity elt)
Group
public boolean removeRel(Relation rel)
public java.lang.String whatGroup()
Group
public boolean addAll(java.util.Set<Entity> elts)
public Equivalence merge(Equivalence e)
public java.util.List<Entity> getAllComponents()
Frame
getAllComponents
in interface Frame
getAllComponents
in interface Group
getAllComponents
in class Entity
Frame.getAllComponents()