Dépôt du be graphe
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

AbstractObserver.java 387B

1234567891011121314151617181920
  1. package org.insa.algo;
  2. public abstract class AbstractObserver {
  3. // Specify if the observer is graphic or not.
  4. private final boolean isgraphic;
  5. protected AbstractObserver(boolean isGraphic) {
  6. this.isgraphic = isGraphic;
  7. }
  8. /**
  9. * @return true if this observer is graphic (use drawing to display
  10. * information).
  11. */
  12. public boolean isGraphic() {
  13. return isgraphic;
  14. }
  15. }