stuk06

Untitled

Jun 14th, 2016
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.60 KB | None | 0 0
  1. this.nurseObjectHandle = rtiamb.getObjectClassHandle("HLAobjectRoot.Nurse");
  2.  
  3.         AttributeHandle nurseIsBusyWithPatientHandle = rtiamb.getAttributeHandle( this.nurseObjectHandle, "IsBusyWithPatient" );
  4.         AttributeHandle nurseIsBusyWithWorkHandle = rtiamb.getAttributeHandle( this.nurseObjectHandle, "IsBusyWithWork" );
  5.  
  6.         // do the actual publication
  7.         AttributeHandleSet attributes = rtiamb.getAttributeHandleSetFactory().create();
  8.         attributes.add( nurseIsBusyWithPatientHandle );
  9.         attributes.add( nurseIsBusyWithWorkHandle );
  10.         rtiamb.publishObjectClassAttributes( this.nurseObjectHandle, attributes );
Advertisement
Add Comment
Please, Sign In to add comment