@ SuppressWarnings ( "unchecked" ) public void setParent ( PvmExecutionImpl parent ) { PvmExecutionImpl currentParent = getParent ( ) ; setParentExecution ( parent ) ; if ( currentParent != null ) { currentParent . getExecutions ( ) . remove ( this ) ; } if ( parent != null ) { ( ( List < PvmExecutionImpl > ) parent . getExecutions ( ) ) . add ( this ) ; } }
Sets the execution s parent and updates the old and new parents set of child executions