Example #1
0
 private void addUsersToModel(int n) {
   for (int i = 0; i < n; ++i) {
     if (!model.AddRandomUser()) {
       System.out.println("Cannot place user");
     }
   }
 }
Example #2
0
 /**
  * Whether or not this piece of equipment is disabled. Presently, all equipment is disabled when
  * running on a simulation rather than an actual chip. In particular, GPIB communication is
  * disabled so that we do not need to connect to GPIB devices.
  */
 protected boolean isDisabled() {
   return SimulationModel.isInUse();
 }