public void setSlotSharingGroup ( SlotSharingGroup grp ) { if ( this . slotSharingGroup != null ) { this . slotSharingGroup . removeVertexFromGroup ( id ) ; } this . slotSharingGroup = grp ; if ( grp != null ) { grp . addVertexToGroup ( id ) ; } }
Associates this vertex with a slot sharing group for scheduling . Different vertices in the same slot sharing group can run one subtask each in the same slot .