From 254ee6f47eebfc00462c10756a92066e82cc1a96 Mon Sep 17 00:00:00 2001 From: Andrew Branson Date: Tue, 21 Jun 2011 15:46:02 +0200 Subject: Initial commit --- source/com/c2kernel/collection/Aggregation.java | 111 ++++++++++++++++++++++++ 1 file changed, 111 insertions(+) create mode 100755 source/com/c2kernel/collection/Aggregation.java (limited to 'source/com/c2kernel/collection/Aggregation.java') diff --git a/source/com/c2kernel/collection/Aggregation.java b/source/com/c2kernel/collection/Aggregation.java new file mode 100755 index 0000000..72b8005 --- /dev/null +++ b/source/com/c2kernel/collection/Aggregation.java @@ -0,0 +1,111 @@ +package com.c2kernel.collection; + +import java.util.Iterator; + +import com.c2kernel.collection.gui.model.AggregationVertexOutlineCreator; +import com.c2kernel.graph.model.*; +import com.c2kernel.utils.*; + +/** + * @version $Revision: 1.59 $ $Date: 2004/08/10 07:56:08 $ + * @author $Author: abranson $ + */ + +abstract public class Aggregation extends Parent2ChildCollection +{ + + protected GraphModel mLayout = new GraphModel(new AggregationVertexOutlineCreator()); + + private final TypeNameAndConstructionInfo[] mVertexTypeNameAndConstructionInfo = { + new TypeNameAndConstructionInfo(Language.translate("Slot"), "AggregationMember") + }; + + public Aggregation() + { + setName("Aggregation"); + mMembers = new CollectionMemberList(); + } + + + public GraphModel getLayout() + { + return mLayout; + } + + public void setLayout(GraphModel layout) + { + mLayout = layout; + } + + public TypeNameAndConstructionInfo[] getVertexTypeNameAndConstructionInfo() + { + return mVertexTypeNameAndConstructionInfo; + } + + public boolean exists(int entityKey) + { + for (int i=0; i