Package org.cristalise.kernel.collection
Class Aggregation
java.lang.Object
org.cristalise.kernel.collection.Collection<AggregationMember>
org.cristalise.kernel.collection.Aggregation
- All Implemented Interfaces:
C2KLocalObject
- Direct Known Subclasses:
AggregationDescription,AggregationInstance
A Collection with a graph layout
-
Nested Class Summary
Nested classes/interfaces inherited from class org.cristalise.kernel.collection.Collection
Collection.Cardinality, Collection.Type -
Field Summary
FieldsFields inherited from class org.cristalise.kernel.collection.Collection
mMembers, mName, mVersion -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddMember(ItemPath itemPath, CastorHashMap props, String classProps, GraphPoint location, int w, int h, TransactionKey transactionKey) addMember(ItemPath itemPath, CastorHashMap props, String classProps, TransactionKey transactionKey) Add a member to this collection, with the given property and class properties and optionally an Item to assign, which may be null if the collection allows empty slots.addMember(CastorHashMap props, String classProps, GraphPoint location, int w, int h, TransactionKey transactionKey) addSlot(CastorHashMap props, String classProps) addSlot(CastorHashMap props, String classProps, GraphPoint location, int w, int h) booleanstatic booleangetIsComposite(ItemPath itemPath, String name, TransactionKey transactionKey) getMemberPair(int vertexID) removeMember(int memberId) Removes the slot with the given ID from the collection.voidsetLayout(GraphModel layout) Methods inherited from class org.cristalise.kernel.collection.Collection
contains, equals, getClusterPath, getClusterType, getCounter, getDescVer, getMember, getMember, getMembers, getName, getVersion, getVersionName, hashCode, isFull, removeMember, resolveMembers, resolveMembers, resolveMembers, setMembers, setName, setVersion, size
-
Field Details
-
mLayout
-
-
Constructor Details
-
Aggregation
public Aggregation() -
Aggregation
-
Aggregation
-
-
Method Details
-
getLayout
-
setLayout
-
getVertexTypeNameAndConstructionInfo
-
exists
-
getMemberPair
-
addSlot
public AggregationMember addSlot(CastorHashMap props, String classProps, GraphPoint location, int w, int h) -
addMember
public AggregationMember addMember(ItemPath itemPath, CastorHashMap props, String classProps, GraphPoint location, int w, int h, TransactionKey transactionKey) throws InvalidCollectionModification, ObjectAlreadyExistsException -
addMember
public AggregationMember addMember(ItemPath itemPath, CastorHashMap props, String classProps, TransactionKey transactionKey) throws InvalidCollectionModification, ObjectAlreadyExistsException Description copied from class:CollectionAdd a member to this collection, with the given property and class properties and optionally an Item to assign, which may be null if the collection allows empty slots.- Specified by:
addMemberin classCollection<AggregationMember>- Parameters:
itemPath- the Item to assign to the new slot. Optional for collections that allow empty slotsprops- the Properties of the new memberclassProps- the names of the properties that dictate the type of assigned Items.- Returns:
- the new CollectionMember instance
- Throws:
InvalidCollectionModification- when the assignment was invalid because of collection constraints, such as global type constraints, or not allowing empty slots.ObjectAlreadyExistsException- some collections don't allow multiple slots assigned to the same Item, and throw this Exception if it is attempted
-
addMember
public AggregationMember addMember(CastorHashMap props, String classProps, GraphPoint location, int w, int h, TransactionKey transactionKey) throws InvalidCollectionModification - Throws:
InvalidCollectionModification
-
addSlot
-
removeMember
Description copied from class:CollectionRemoves the slot with the given ID from the collection.- Overrides:
removeMemberin classCollection<AggregationMember>- Parameters:
memberId- to remove- Returns:
- removed member instance
- Throws:
ObjectNotFoundException- when there was no slot with this ID found.
-
getIsComposite
-