com.dbmain.jidbm
Class DBMProcessingUnit

java.lang.Object
  extended by com.dbmain.jidbm.DBMGenericObject
      extended by com.dbmain.jidbm.DBMConcreteObject
          extended by com.dbmain.jidbm.DBMDataObject
              extended by com.dbmain.jidbm.DBMProcessingUnit

public class DBMProcessingUnit
extends DBMDataObject

The DBMProcessingUnit class represents processing unit objects of the DB-MAIN repository.

A processing unit can have several elements, environments, elements and processing unit cardinalitys.


Field Summary
static char DECISION_MODE_PU
          Constant of field mode: Decision state.
static char FINAL_MODE_PU
          Constant of field mode: Final state.
static char HOR_SYNC_MODE_PU
          Constant of field mode: Horizontal synchronisation bar.
static char INITIAL_MODE_PU
          Constant of field mode: Initial state.
static char METHOD_TYPE_PU
          Constant of field type: Method type.
static char PREDICAT_TYPE_PU
          Constant of field type: Predicat type.
static char PROCEDURE_TYPE_PU
          Constant of field type: Procedure type.
static char SIGNAL_REC_MODE_PU
          Constant of field mode: Signal receipt.
static char SIGNAL_SEND_MODE_PU
          Constant of field mode: Signal sending.
static char TRIGGER_TYPE_PU
          Constant of field type: Trigger type.
static char VER_SYNC_MODE_PU
          Constant of field mode: Vertical synchronisation bar.
 
Fields inherited from class com.dbmain.jidbm.DBMGenericObject
ALLPARENTS, CLUSTER, CO_ATTRIBUTE, COLLECTION, CONNECTION, CONS_PU, CONS_RES, CONSTRAINT, CONSUMPTION, ELEMENT, ENTITY_TYPE, ENVIRONMENT, ETROUND, ETSHADOW, ETSQUARE, GRAPHCOUPLE, GROUP, HAVESEL, HIDEASSOCIATION, HIDEATT, HIDECTRLFLOW, HIDEEXTEND, HIDEGENACT, HIDEGENUC, HIDEGR, HIDEINCLUDE, HIDENEWADD, HIDENOTE, HIDEOBJFLOW, HIDEPRIMID, HIDEPROD, HIDEPU, HIDESTEREOTYPE, ISASTRAIGHT, LOCK_USED, MARK1, MARK2, MARK3, MARK4, MARK5, MEMBER_CST, META_OBJECT, META_PROPERTY, METH_USED, NN_NOTE, NOTE, PROC_UNIT, PROCESS_TITLE, PROD_SET, RE_ISA, REJECTED, REL_ELEMENT, REL_TYPE, RESOURCE, ROLE, RTROUND, RTSHADOW, RTSQUARE, SCHEMA, SELECT, SHOWTYPEATT, SI_ATTRIBUTE, STATE, SUB_TYPE, SYSTEM, TEXT, TEXT_LINE, UMLCENTER, UMLCENTERDOWN, UMLCENTERUP, UMLLEFTCENTER, UMLLEFTDOWN, UMLLEFTUP, UMLRIGHTCENTER, UMLRIGHTDOWN, UMLRIGHTUP, USER_OBJECT, USER_VIEW, WITHOUT_SELECT
 
Constructor Summary
DBMProcessingUnit(int id)
          Creates a new instance of the DBMProcessingUnit class representing the processing unit identified by id and the current project in DB-MAIN.
DBMProcessingUnit(int id, long sysid)
          Creates a new instance of the DBMProcessingUnit class representing the processing unit identified by id and sysid in the DB-MAIN repository.
 
Method Summary
 void addFirstEnvironment(DBMEnvironment cur)
          Adds a first environment (cur) to the current processing unit in the DB-MAIN repository.
 void addFirstInvokeElement(DBMElement cur)
          Adds a first element (cur) to the current processing unit in the DB-MAIN repository.
 void addFirstMadeOfElement(DBMElement cur)
          Adds a first element (cur) to the current processing unit in the DB-MAIN repository.
 void addFirstProcessingUnitCardinality(DBMProcessingUnitCardinality cur)
          Adds a first processing unit cardinality (cur) to the current processing unit in the DB-MAIN repository.
 void addNextEnvironment(DBMEnvironment cur, DBMEnvironment prev)
          Adds a environment (cur) following the environment (prev) to the current processing unit in the DB-MAIN repository.
 void addNextInvokeElement(DBMElement cur, DBMElement prev)
          Adds a element (cur) following the element (prev) to the current processing unit in the DB-MAIN repository.
 void addNextMadeOfElement(DBMElement cur, DBMElement prev)
          Adds a element (cur) following the element (prev) to the current processing unit in the DB-MAIN repository.
 void addNextProcessingUnitCardinality(DBMProcessingUnitCardinality cur, DBMProcessingUnitCardinality prev)
          Adds a processing unit cardinality (cur) following the processing unit cardinality (prev) to the current processing unit in the DB-MAIN repository.
 DBMEnvironment createEnvironment(java.lang.String name, char type, char mode, DBMState state)
          Creates a new instance of environment attached to the current processing unit in the DB-MAIN repository.
 DBMProcessingUnitCardinality createProcessingUnitCardinality(java.lang.String name, int min_card, int max_card, DBMConsumption consumption)
          Creates a new instance of processing unit cardinality attached to the current processing unit in the DB-MAIN repository.
 void deleteProcessingUnit()
          Deletes the processing unit of the DB-MAIN repository represented by the current DBMProcessingUnit instance.
 DBMEnvironment getFirstEnvironment()
          Returns the first environment of the current processing unit in the DB-MAIN repository.
 DBMElement getFirstInvokeElement()
          Returns the first element of the current processing unit in the DB-MAIN repository.
 DBMElement getFirstMadeOfElement()
          Returns the first element of the current processing unit in the DB-MAIN repository.
 DBMProcessingUnitCardinality getFirstProcessingUnitCardinality()
          Returns the first processing unit cardinality of the current processing unit in the DB-MAIN repository.
 DBMEnvironment getLastEnvironment()
          Returns the last environment of the current processing unit in the DB-MAIN repository.
 DBMElement getLastInvokeElement()
          Returns the last element of the current processing unit in the DB-MAIN repository.
 DBMElement getLastMadeOfElement()
          Returns the last element of the current processing unit in the DB-MAIN repository.
 DBMProcessingUnitCardinality getLastProcessingUnitCardinality()
          Returns the last processing unit cardinality of the current processing unit in the DB-MAIN repository.
 char getMode()
          Returns the mode of the current processing unit.
 java.lang.String getModeName()
          Returns the mode constant name of the current processing unit.
 DBMEnvironment getNextEnvironment(DBMEnvironment cur)
          Returns the environment (of the current processing unit) that follows the environment cur in the DB-MAIN repository.
 DBMElement getNextInvokeElement(DBMElement cur)
          Returns the element (of the current processing unit) that follows the element cur in the DB-MAIN repository.
 DBMElement getNextMadeOfElement(DBMElement cur)
          Returns the element (of the current processing unit) that follows the element cur in the DB-MAIN repository.
 DBMProcessingUnitCardinality getNextProcessingUnitCardinality(DBMProcessingUnitCardinality cur)
          Returns the processing unit cardinality (of the current processing unit) that follows the processing unit cardinality cur in the DB-MAIN repository.
 DBMEnvironment getPreviousEnvironment(DBMEnvironment cur)
          Returns the environment (of the current processing unit) that precedes the environment cur in the DB-MAIN repository.
 DBMElement getPreviousInvokeElement(DBMElement cur)
          Returns the element (of the current processing unit) that precedes the element cur in the DB-MAIN repository.
 DBMElement getPreviousMadeOfElement(DBMElement cur)
          Returns the element (of the current processing unit) that precedes the element cur in the DB-MAIN repository.
 DBMProcessingUnitCardinality getPreviousProcessingUnitCardinality(DBMProcessingUnitCardinality cur)
          Returns the processing unit cardinality (of the current processing unit) that precedes the processing unit cardinality cur in the DB-MAIN repository.
 DBMGenericObject getProcessingUnitOwner()
          Returns the generic object of the current processing unit.
 char getType()
          Returns the type of the current processing unit.
 java.lang.String getTypeName()
          Returns the type constant name of the current processing unit.
 void removeEnvironment()
          Removes the list of environment attached to the current processing unit in the DB-MAIN repository.
 void removeInvokeElement()
          Removes the list of element attached to the current processing unit in the DB-MAIN repository.
 void removeMadeOfElement()
          Removes the list of element attached to the current processing unit in the DB-MAIN repository.
 void removeProcessingUnitCardinality()
          Removes the list of processing unit cardinality attached to the current processing unit in the DB-MAIN repository.
 void removeProcessingUnitOwner()
          Removes the generic object attached to the current processing unit in the DB-MAIN repository.
 void setMode(char val)
          Updates the value of mode in the current processing unit in the DB-MAIN repository.
 void setType(char val)
          Updates the value of type in the current processing unit in the DB-MAIN repository.
 
Methods inherited from class com.dbmain.jidbm.DBMDataObject
addFirstGroup, addFirstSimpleAttribute, addNextGroup, addNextSimpleAttribute, copyGroup, createGroup, createUniqueGroup, deleteDataObject, getFirstAccessKey, getFirstCollection, getFirstGroup, getFirstReferentialConstraint, getFirstSecondaryIdentifier, getFirstSimpleAttribute, getLastCollection, getLastGroup, getLastSimpleAttribute, getNextAccessKey, getNextCollection, getNextGroup, getNextReferentialConstraint, getNextSecondaryIdentifier, getNextSimpleAttribute, getPreviousCollection, getPreviousGroup, getPreviousSimpleAttribute, getPrimaryIdentifier, getSchema, removeCollection, removeCollection, removeGroup, removeSchema, removeSimpleAttribute
 
Methods inherited from class com.dbmain.jidbm.DBMConcreteObject
deleteConcreteObject, getName, getQualifiedName, getSemanticDescription, getShortName, getTechnicalDescription, setName, setSemanticDescription, setShortName, setTechnicalDescription, toString
 
Methods inherited from class com.dbmain.jidbm.DBMGenericObject
addFirstNoteRelation, addFirstState, addFirstUserObject, addNextNoteRelation, addNextState, addNextUserObject, createNote, createNoteRelation, deleteGenericObject, equals, getFirstNoteRelation, getFirstState, getFirstUserObject, getFlag, getLastNoteRelation, getLastState, getLastUserObject, getMetaPropertyBooleanListValue, getMetaPropertyBooleanValue, getMetaPropertyCharListValue, getMetaPropertyCharValue, getMetaPropertyDoubleListValue, getMetaPropertyDoubleValue, getMetaPropertyIntListValue, getMetaPropertyIntValue, getMetaPropertyListValue, getMetaPropertyStringListValue, getMetaPropertyStringValue, getMetaPropertyValue, getNextNoteRelation, getNextState, getNextUserObject, getObjectIdentifier, getObjectType, getObjectTypeName, getPreviousNoteRelation, getPreviousState, getPreviousUserObject, getProjectIdentifier, hashCode, isAttribute, isCluster, isCollection, isCompoundAttribute, isConcreteObject, isConnection, isConstraint, isConstraintMember, isConsumption, isDataObject, isElement, isElementRelation, isEntityRelationshipType, isEntityType, isEnvironment, isFlagConstant, isGroup, isMetaObject, isMetaProperty, isNote, isNoteRelation, isProcessingUnit, isProcessingUnitCardinality, isProduct, isProductSet, isProject, isRelationshipType, isResource, isResourceCardinality, isResourceSubType, isRole, isSchema, isSimpleAttribute, isState, isSubType, isText, isTextLine, isUserObject, isUserView, removeNoteRelation, removeState, removeUserObject, setFlag, setFlagConstant, setMetaPropertyBooleanListValue, setMetaPropertyBooleanValue, setMetaPropertyCharListValue, setMetaPropertyCharValue, setMetaPropertyDoubleListValue, setMetaPropertyDoubleValue, setMetaPropertyIntListValue, setMetaPropertyIntValue, setMetaPropertyListValue, setMetaPropertyStringListValue, setMetaPropertyStringValue, setMetaPropertyValue
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

METHOD_TYPE_PU

public static final char METHOD_TYPE_PU
Constant of field type: Method type.

See Also:
Constant Field Values

PREDICAT_TYPE_PU

public static final char PREDICAT_TYPE_PU
Constant of field type: Predicat type.

See Also:
Constant Field Values

TRIGGER_TYPE_PU

public static final char TRIGGER_TYPE_PU
Constant of field type: Trigger type.

See Also:
Constant Field Values

PROCEDURE_TYPE_PU

public static final char PROCEDURE_TYPE_PU
Constant of field type: Procedure type.

See Also:
Constant Field Values

INITIAL_MODE_PU

public static final char INITIAL_MODE_PU
Constant of field mode: Initial state.

See Also:
Constant Field Values

FINAL_MODE_PU

public static final char FINAL_MODE_PU
Constant of field mode: Final state.

See Also:
Constant Field Values

HOR_SYNC_MODE_PU

public static final char HOR_SYNC_MODE_PU
Constant of field mode: Horizontal synchronisation bar.

See Also:
Constant Field Values

VER_SYNC_MODE_PU

public static final char VER_SYNC_MODE_PU
Constant of field mode: Vertical synchronisation bar.

See Also:
Constant Field Values

DECISION_MODE_PU

public static final char DECISION_MODE_PU
Constant of field mode: Decision state.

See Also:
Constant Field Values

SIGNAL_SEND_MODE_PU

public static final char SIGNAL_SEND_MODE_PU
Constant of field mode: Signal sending.

See Also:
Constant Field Values

SIGNAL_REC_MODE_PU

public static final char SIGNAL_REC_MODE_PU
Constant of field mode: Signal receipt.

See Also:
Constant Field Values
Constructor Detail

DBMProcessingUnit

public DBMProcessingUnit(int id,
                         long sysid)
Creates a new instance of the DBMProcessingUnit class representing the processing unit identified by id and sysid in the DB-MAIN repository.

Parameters:
id - the object identifier of a processing unit.
sysid - the system identifier of a processing unit.

DBMProcessingUnit

public DBMProcessingUnit(int id)
Creates a new instance of the DBMProcessingUnit class representing the processing unit identified by id and the current project in DB-MAIN.

Parameters:
id - the object identifier of a processing unit.
Method Detail

getType

public char getType()
Returns the type of the current processing unit.

Returns:
the char value of the field type.

getTypeName

public java.lang.String getTypeName()
Returns the type constant name of the current processing unit.

Returns:
the string representation of the field type.

setType

public void setType(char val)
Updates the value of type in the current processing unit in the DB-MAIN repository.

Parameters:
val - the new char value of the field Type.

getMode

public char getMode()
Returns the mode of the current processing unit.

Returns:
the char value of the field mode.

getModeName

public java.lang.String getModeName()
Returns the mode constant name of the current processing unit.

Returns:
the string representation of the field mode.

setMode

public void setMode(char val)
Updates the value of mode in the current processing unit in the DB-MAIN repository.

Parameters:
val - the new char value of the field Mode.

deleteProcessingUnit

public void deleteProcessingUnit()
Deletes the processing unit of the DB-MAIN repository represented by the current DBMProcessingUnit instance.


createEnvironment

public DBMEnvironment createEnvironment(java.lang.String name,
                                        char type,
                                        char mode,
                                        DBMState state)
Creates a new instance of environment attached to the current processing unit in the DB-MAIN repository.

Parameters:
name - the value of the field name.
type - the value of the field type.
mode - the value of the field mode.
state - the state linked to the created object.
Returns:
the DBMEnvironment instance representing the new environment.

createProcessingUnitCardinality

public DBMProcessingUnitCardinality createProcessingUnitCardinality(java.lang.String name,
                                                                    int min_card,
                                                                    int max_card,
                                                                    DBMConsumption consumption)
Creates a new instance of processing unit cardinality attached to the current processing unit in the DB-MAIN repository.

Parameters:
name - the value of the field name.
min_card - the value of the field minimum cardinality.
max_card - the value of the field maximum cardinality.
consumption - the consumption linked to the created object.
Returns:
the DBMProcessingUnitCardinality instance representing the new processing unit cardinality.

getFirstMadeOfElement

public DBMElement getFirstMadeOfElement()
Returns the first element of the current processing unit in the DB-MAIN repository.

Returns:
the DBMElement instance representing the first element.

getLastMadeOfElement

public DBMElement getLastMadeOfElement()
Returns the last element of the current processing unit in the DB-MAIN repository.

Returns:
the DBMElement instance representing the last element.

getNextMadeOfElement

public DBMElement getNextMadeOfElement(DBMElement cur)
Returns the element (of the current processing unit) that follows the element cur in the DB-MAIN repository.

Parameters:
cur - the current element.
Returns:
the DBMElement instance representing the next element.

getPreviousMadeOfElement

public DBMElement getPreviousMadeOfElement(DBMElement cur)
Returns the element (of the current processing unit) that precedes the element cur in the DB-MAIN repository.

Parameters:
cur - the current element.
Returns:
the DBMElement instance representing the previous element.

addFirstMadeOfElement

public void addFirstMadeOfElement(DBMElement cur)
Adds a first element (cur) to the current processing unit in the DB-MAIN repository.

Parameters:
cur - the added element.

addNextMadeOfElement

public void addNextMadeOfElement(DBMElement cur,
                                 DBMElement prev)
Adds a element (cur) following the element (prev) to the current processing unit in the DB-MAIN repository.

Parameters:
cur - the added element.
prev - the element after which the element cur is inserted.

removeMadeOfElement

public void removeMadeOfElement()
Removes the list of element attached to the current processing unit in the DB-MAIN repository.


getFirstEnvironment

public DBMEnvironment getFirstEnvironment()
Returns the first environment of the current processing unit in the DB-MAIN repository.

Returns:
the DBMEnvironment instance representing the first environment.

getLastEnvironment

public DBMEnvironment getLastEnvironment()
Returns the last environment of the current processing unit in the DB-MAIN repository.

Returns:
the DBMEnvironment instance representing the last environment.

getNextEnvironment

public DBMEnvironment getNextEnvironment(DBMEnvironment cur)
Returns the environment (of the current processing unit) that follows the environment cur in the DB-MAIN repository.

Parameters:
cur - the current environment.
Returns:
the DBMEnvironment instance representing the next environment.

getPreviousEnvironment

public DBMEnvironment getPreviousEnvironment(DBMEnvironment cur)
Returns the environment (of the current processing unit) that precedes the environment cur in the DB-MAIN repository.

Parameters:
cur - the current environment.
Returns:
the DBMEnvironment instance representing the previous environment.

addFirstEnvironment

public void addFirstEnvironment(DBMEnvironment cur)
Adds a first environment (cur) to the current processing unit in the DB-MAIN repository.

Parameters:
cur - the added environment.

addNextEnvironment

public void addNextEnvironment(DBMEnvironment cur,
                               DBMEnvironment prev)
Adds a environment (cur) following the environment (prev) to the current processing unit in the DB-MAIN repository.

Parameters:
cur - the added environment.
prev - the environment after which the environment cur is inserted.

removeEnvironment

public void removeEnvironment()
Removes the list of environment attached to the current processing unit in the DB-MAIN repository.


getFirstInvokeElement

public DBMElement getFirstInvokeElement()
Returns the first element of the current processing unit in the DB-MAIN repository.

Returns:
the DBMElement instance representing the first element.

getLastInvokeElement

public DBMElement getLastInvokeElement()
Returns the last element of the current processing unit in the DB-MAIN repository.

Returns:
the DBMElement instance representing the last element.

getNextInvokeElement

public DBMElement getNextInvokeElement(DBMElement cur)
Returns the element (of the current processing unit) that follows the element cur in the DB-MAIN repository.

Parameters:
cur - the current element.
Returns:
the DBMElement instance representing the next element.

getPreviousInvokeElement

public DBMElement getPreviousInvokeElement(DBMElement cur)
Returns the element (of the current processing unit) that precedes the element cur in the DB-MAIN repository.

Parameters:
cur - the current element.
Returns:
the DBMElement instance representing the previous element.

addFirstInvokeElement

public void addFirstInvokeElement(DBMElement cur)
Adds a first element (cur) to the current processing unit in the DB-MAIN repository.

Parameters:
cur - the added element.

addNextInvokeElement

public void addNextInvokeElement(DBMElement cur,
                                 DBMElement prev)
Adds a element (cur) following the element (prev) to the current processing unit in the DB-MAIN repository.

Parameters:
cur - the added element.
prev - the element after which the element cur is inserted.

removeInvokeElement

public void removeInvokeElement()
Removes the list of element attached to the current processing unit in the DB-MAIN repository.


getFirstProcessingUnitCardinality

public DBMProcessingUnitCardinality getFirstProcessingUnitCardinality()
Returns the first processing unit cardinality of the current processing unit in the DB-MAIN repository.

Returns:
the DBMProcessingUnitCardinality instance representing the first processing unit cardinality.

getLastProcessingUnitCardinality

public DBMProcessingUnitCardinality getLastProcessingUnitCardinality()
Returns the last processing unit cardinality of the current processing unit in the DB-MAIN repository.

Returns:
the DBMProcessingUnitCardinality instance representing the last processing unit cardinality.

getNextProcessingUnitCardinality

public DBMProcessingUnitCardinality getNextProcessingUnitCardinality(DBMProcessingUnitCardinality cur)
Returns the processing unit cardinality (of the current processing unit) that follows the processing unit cardinality cur in the DB-MAIN repository.

Parameters:
cur - the current processing unit cardinality.
Returns:
the DBMProcessingUnitCardinality instance representing the next processing unit cardinality.

getPreviousProcessingUnitCardinality

public DBMProcessingUnitCardinality getPreviousProcessingUnitCardinality(DBMProcessingUnitCardinality cur)
Returns the processing unit cardinality (of the current processing unit) that precedes the processing unit cardinality cur in the DB-MAIN repository.

Parameters:
cur - the current processing unit cardinality.
Returns:
the DBMProcessingUnitCardinality instance representing the previous processing unit cardinality.

addFirstProcessingUnitCardinality

public void addFirstProcessingUnitCardinality(DBMProcessingUnitCardinality cur)
Adds a first processing unit cardinality (cur) to the current processing unit in the DB-MAIN repository.

Parameters:
cur - the added processing unit cardinality.

addNextProcessingUnitCardinality

public void addNextProcessingUnitCardinality(DBMProcessingUnitCardinality cur,
                                             DBMProcessingUnitCardinality prev)
Adds a processing unit cardinality (cur) following the processing unit cardinality (prev) to the current processing unit in the DB-MAIN repository.

Parameters:
cur - the added processing unit cardinality.
prev - the processing unit cardinality after which the processing unit cardinality cur is inserted.

removeProcessingUnitCardinality

public void removeProcessingUnitCardinality()
Removes the list of processing unit cardinality attached to the current processing unit in the DB-MAIN repository.


getProcessingUnitOwner

public DBMGenericObject getProcessingUnitOwner()
Returns the generic object of the current processing unit.

Returns:
the DBMGenericObject instance representing the generic object.

removeProcessingUnitOwner

public void removeProcessingUnitOwner()
Removes the generic object attached to the current processing unit in the DB-MAIN repository.