org.tm4j.panckoucke.impl.abstraction.compact .InstanceContributor

Description

This implementation of AbstractionContributor adds information about all Topic, Associations and Occurrences to the model which are instances of tmo Dependant on the property createNodeWithGestaltInstance the class adds the information in the following shape:
if createNodeWithGestaltInstance evaluates to true, the following AMMembers are created - a new Node(n1) with GESTALT_INSTANCE AMGestaltRegistry#GESTALT_INSTANCE is added. - the new Node is connected as an endnode to the centernode of the model via a non-typed, non-labeled arc(a1) - the new Node becomes the startnode of a second new arc(a2) , non-typed and non-labeled as a1. - the endnodes of a2 either represent a Topic, an Occurrence or an Association. if createNodeWithGestaltInstance evaluates to false, the following AMMembers are created - a new arc(a1) with label "Instances" and gestalt GESTALT_INSTANCE AMGestaltRegistry#GESTALT_INSTANCE - the startnode of a1 is the centernode of the model. - the endnodes of a1 either represent a Topic, an Occurrence or an Association.

Inheritance Hierarchy

Field Summary
HINTKEY_CREATE_NODE_FOR_INSTANCES
Method Summary
void contribute(org.tm4j.panckoucke.model.AModel model,org.tm4j.topicmap.TopicMapObject tmo,org.tm4j.panckoucke.abstraction.AbstractionContext ac)
Adds all Topic, Associations and Occurrences to the model which are instances of tmo This methode contributes an outgoing arc to the centernode.