コード例 #1
0
 /** Broadcast my RM groups to the group. */
 private void broadcastRMGroups() {
   RMInfoMessage rmsg = new RMInfoMessage();
   rmsg.setCarGroup(carGroup);
   rmsg.setFlightGroup(flightGroup);
   rmsg.setRoomGroup(roomGroup);
   // Broadcast the message.
   send(rmsg);
 }
コード例 #2
0
 /**
  * Update my RM groups from a message.
  *
  * @param rmsg
  */
 private void updateRMGroups(RMInfoMessage rmsg) {
   updateRMGroup(carGroup, rmsg.getCarGroup());
   updateRMGroup(flightGroup, rmsg.getFlightGroup());
   updateRMGroup(roomGroup, rmsg.getRoomGroup());
   // print the group members.
   // System.out.println("car group: " + carGroup);
   // System.out.println("flight group: " + flightGroup);
   // System.out.println("room group: " + roomGroup);
 }