public abstract class Aggregation extends Collection<AggregationMember>
| Modifier and Type | Field and Description |
|---|---|
protected GraphModel |
mLayout |
EMPTY, mMembers, mName, mVersion| Constructor and Description |
|---|
Aggregation() |
| Modifier and Type | Method and Description |
|---|---|
AggregationMember |
addMember(CastorHashMap props,
String classProps,
GraphPoint location,
int w,
int h) |
AggregationMember |
addMember(ItemPath itemPath,
CastorHashMap props,
String classProps)
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.
|
AggregationMember |
addMember(ItemPath itemPath,
CastorHashMap props,
String classProps,
GraphPoint location,
int w,
int h) |
AggregationMember |
addSlot(CastorHashMap props,
String classProps) |
AggregationMember |
addSlot(CastorHashMap props,
String classProps,
GraphPoint location,
int w,
int h) |
boolean |
exists(ItemPath itemPath) |
static boolean |
getIsComposite(ItemPath itemPath,
String name) |
GraphModel |
getLayout() |
AggregationMember |
getMemberPair(int vertexID) |
TypeNameAndConstructionInfo[] |
getVertexTypeNameAndConstructionInfo() |
void |
removeMember(int memberId)
Removes the slot with the given ID from the collection.
|
void |
setLayout(GraphModel layout) |
contains, equals, getClusterType, getCounter, getDescVer, getMember, getMembers, getName, getVersion, getVersionName, hashCode, isFull, setMembers, setName, setVersion, sizeprotected GraphModel mLayout
public GraphModel getLayout()
public void setLayout(GraphModel layout)
public TypeNameAndConstructionInfo[] getVertexTypeNameAndConstructionInfo()
public boolean exists(ItemPath itemPath)
public AggregationMember getMemberPair(int vertexID)
public AggregationMember addSlot(CastorHashMap props, String classProps, GraphPoint location, int w, int h)
public AggregationMember addMember(ItemPath itemPath, CastorHashMap props, String classProps, GraphPoint location, int w, int h) throws InvalidCollectionModification, ObjectAlreadyExistsException
public AggregationMember addMember(ItemPath itemPath, CastorHashMap props, String classProps) throws InvalidCollectionModification, ObjectAlreadyExistsException
CollectionaddMember in class Collection<AggregationMember>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.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 attemptedpublic AggregationMember addMember(CastorHashMap props, String classProps, GraphPoint location, int w, int h) throws InvalidCollectionModification
InvalidCollectionModificationpublic AggregationMember addSlot(CastorHashMap props, String classProps)
public void removeMember(int memberId)
throws ObjectNotFoundException
CollectionremoveMember in class Collection<AggregationMember>memberId - to removeObjectNotFoundException - when there was no slot with this ID found.Copyright © 1997–2016 CRISTAL-iSE. All rights reserved.