Пример #1
0
  /**
   * This is called when somebody is fired/quit/removed from the plant. So far it's purely
   * decorative (tells the network if the GUI is on)
   *
   * @param employer the employer
   * @param employee the employee
   */
  public void registerFiring(EconomicAgent employer, EconomicAgent employee) {
    // with no GUI, forget about it
    if (!MacroII.hasGUI()) return;

    boolean removedSuccessfully = network.removeEdges(employer, employee);
    assert removedSuccessfully;
  }