Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- this.nurseObjectHandle = rtiamb.getObjectClassHandle("HLAobjectRoot.Nurse");
- AttributeHandle nurseIsBusyWithPatientHandle = rtiamb.getAttributeHandle( this.nurseObjectHandle, "IsBusyWithPatient" );
- AttributeHandle nurseIsBusyWithWorkHandle = rtiamb.getAttributeHandle( this.nurseObjectHandle, "IsBusyWithWork" );
- // do the actual publication
- AttributeHandleSet attributes = rtiamb.getAttributeHandleSetFactory().create();
- attributes.add( nurseIsBusyWithPatientHandle );
- attributes.add( nurseIsBusyWithWorkHandle );
- rtiamb.publishObjectClassAttributes( this.nurseObjectHandle, attributes );
Advertisement
Add Comment
Please, Sign In to add comment