|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object gov.nasa.arc.brahms.common.rt.BrahmsObjectCtx gov.nasa.arc.brahms.common.rt.ConceptCtx gov.nasa.arc.brahms.common.rt.ConceptualInstanceCtx
public class ConceptualInstanceCtx
The ConceptualInstanceCtx is the runtime representation of conceptual instances defined in a Brahms model. The conceptual instance context manages the creation and deletion time of the conceptual instances. The conceptual instance context also manages the list of sub aggregates or parts of the conceptual instance and the parent aggregates of the conceptual instance.
Field Summary |
---|
Fields inherited from interface gov.nasa.arc.brahms.common.rt.IRuntimeConstants |
---|
ABORTED, ACTIVE, ACTIVITY, AVAILABLE, COMPLETED, CONSEQUENCE, DETECTABLE, ENDED, ENGINE, EXTERNAL_AGENT, FROM, IMPASSED, INITIAL, INTERRUPTED, JAVA_PROPERTY, sABORTED, sACTIVE, sAVAILABLE, sCOMPLETED, sENDED, sIMPASSED, sINTERRUPTED, sUNAVAILABLE, TO, TRANSFER, UNAVAILABLE |
Constructor Summary | |
---|---|
ConceptualInstanceCtx(ConceptualInstance ci)
Constructor, creates a new context for the specified conceptual instance. |
Method Summary | |
---|---|
void |
addAggregate(PartCtx aggregate)
Adds the specified aggregate as an aggregate for this conceptual instance. |
void |
addSubAggregate(PartCtx subaggregate)
Adds the specified sub aggregate as a sub aggregate for this conceptual instance. |
java.util.Enumeration |
getAggregates()
Returns a list of all the aggregates (PartCtx). |
java.util.Enumeration |
getSubAggregates()
Returns a list of all the sub aggregates (PartCtx). |
void |
removeAggregate(PartCtx aggregate)
Removes the specified aggregate as an aggregate for this conceptual instance. |
void |
removeAllAggregates()
Removes all the aggregates from the list of aggregates. |
void |
removeAllSubAggregates()
Removes all the sub aggregates from the list of aggregates. |
void |
removeSubAggregate(PartCtx subaggregate)
Removes the specified sub aggregate as a sub aggregate from this conceptual instance. |
Methods inherited from class gov.nasa.arc.brahms.common.rt.ConceptCtx |
---|
addAttribute, addRelation, getAttribute, getRelation, initAttributeRelationCache, removeAttribute, removeRelation, resetAttributeRelationCache, toString |
Methods inherited from class gov.nasa.arc.brahms.common.rt.BrahmsObjectCtx |
---|
addNote, getContextFor, getEndTime, getID, getNote, getNotes, getStartTime, removeNote, setContextFor, setEndTime, setID, setStartTime |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface gov.nasa.arc.brahms.common.rt.IBrahmsObjectCtx |
---|
addNote, getContextFor, getEndTime, getID, getNote, getNotes, getStartTime, removeNote, setEndTime, setID, setStartTime |
Constructor Detail |
---|
public ConceptualInstanceCtx(ConceptualInstance ci)
ci
- the ConceptualInstance for which to create a contextMethod Detail |
---|
public void addAggregate(PartCtx aggregate) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
addAggregate
in interface IConceptualInstanceCtx
aggregate
- the aggregate (PartCtx) to be added
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if aggregate is nullpublic void removeAggregate(PartCtx aggregate) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
removeAggregate
in interface IConceptualInstanceCtx
aggregate
- the aggregate to be removed
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if aggregate is null, no aggregates
are available, or the aggregate is not foundpublic java.util.Enumeration getAggregates() throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
getAggregates
in interface IConceptualInstanceCtx
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if there are no aggregatespublic void removeAllAggregates()
removeAllAggregates
in interface IConceptualInstanceCtx
public void addSubAggregate(PartCtx subaggregate) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
addSubAggregate
in interface IConceptualInstanceCtx
subaggregate
- the sub aggregate (PartCtx) to be added
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if sub aggregate is nullpublic void removeSubAggregate(PartCtx subaggregate) throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
removeSubAggregate
in interface IConceptualInstanceCtx
subaggregate
- the aggregate to be removed
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if sub aggregate is null, no sub aggregates
are available, or the sub aggregate is not foundpublic java.util.Enumeration getSubAggregates() throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
getSubAggregates
in interface IConceptualInstanceCtx
gov.nasa.arc.brahms.common.exceptions.BrahmsException
- if there are no sub aggregatespublic void removeAllSubAggregates()
removeAllSubAggregates
in interface IConceptualInstanceCtx
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |