gov.nasa.arc.brahms.common.rt
Class PartCtx

java.lang.Object
  extended by gov.nasa.arc.brahms.common.rt.BrahmsObjectCtx
      extended by gov.nasa.arc.brahms.common.rt.PartCtx
All Implemented Interfaces:
IBrahmsObjectCtx, IRuntimeConstants, java.io.Serializable

public class PartCtx
extends BrahmsObjectCtx

The PartCtx is the context defining the relationship between a conceptual instance context and a sub aggregate. The PartCtx defines when a conceptual instance or object instance became a part of another conceptual instance and when a part was disassociated with a conceptual instance.

Version:
1.0
Author:
Ron van Hoof
See Also:
Serialized Form

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
PartCtx(IConceptualInstanceCtx aggregate, IConceptCtx part)
          Constructor, creates a new PartCtx associating a conceptual instance and a concept (conceptual instance or object instance).
 
Method Summary
 IConceptualInstanceCtx getAggregate()
          Returns the conceptual instance being the aggregate for the part specified in this part context.
 IConceptCtx getPart()
          Returns the conceptual instance (ConceptualInstanceCtx) or object instance (ObjectInstanceCtx) being part of the aggregate specified in this part context.
 void setAggregate(IConceptualInstanceCtx aggregate)
          Sets the conceptual instance being the aggregate for the part specified in this part context.
 void setPart(IConceptCtx part)
          Sets the conceptual instance (ConceptualInstanceCtx) or object instance (ObjectInstanceCtx) being part of the aggregate specified in this part context.
 
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, toString, wait, wait, wait
 

Constructor Detail

PartCtx

public PartCtx(IConceptualInstanceCtx aggregate,
               IConceptCtx part)
        throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
Constructor, creates a new PartCtx associating a conceptual instance and a concept (conceptual instance or object instance).

Parameters:
aggregate - the conceptual instance serving as the aggregate
part - the conceptual instance or object instance serving as the part or sub aggregate.
Throws:
gov.nasa.arc.brahms.common.exceptions.BrahmsException - if a null aggregate or part is specified
Method Detail

setAggregate

public void setAggregate(IConceptualInstanceCtx aggregate)
                  throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
Sets the conceptual instance being the aggregate for the part specified in this part context.

Parameters:
aggregate - the aggregate conceptual instance (ConceptualInstanceCtx)
Throws:
gov.nasa.arc.brahms.common.exceptions.BrahmsException - if a null aggregate is specified

getAggregate

public IConceptualInstanceCtx getAggregate()
                                    throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
Returns the conceptual instance being the aggregate for the part specified in this part context.

Returns:
IConceptualInstanceCtx the aggregate conceptual instance
Throws:
gov.nasa.arc.brahms.common.exceptions.BrahmsException - if no aggregate is specified

setPart

public void setPart(IConceptCtx part)
             throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
Sets the conceptual instance (ConceptualInstanceCtx) or object instance (ObjectInstanceCtx) being part of the aggregate specified in this part context.

Parameters:
part - the part conceptual instance or object instance (ConceptCtx)
Throws:
gov.nasa.arc.brahms.common.exceptions.BrahmsException - if a null part is specified

getPart

public IConceptCtx getPart()
                    throws gov.nasa.arc.brahms.common.exceptions.BrahmsException
Returns the conceptual instance (ConceptualInstanceCtx) or object instance (ObjectInstanceCtx) being part of the aggregate specified in this part context.

Returns:
IConceptCtx the part conceptual instance or object instance
Throws:
gov.nasa.arc.brahms.common.exceptions.BrahmsException - if no part is specified


Copyright © 1997-2012 All Rights Reserved.