Package easysm.datatypes.information

Examples of easysm.datatypes.information.StateObserverInfo


  }

  public void doUpdateStateObserver_OneNullInvariant()
  {
    Expr e = new Expr("Pine");
    StateObserverInfo soInfo = new StateObserverInfo(soPine, Type.INTEGER, e);
    main.doAddStateObserver(soInfo);
    StateObserver so = new StateObserver(soInfo);
    StateObserverInfo newSoInfo = new StateObserverInfo(soPine, Type.INTEGER, Expr.EMPTY);
    main.doUpdateStateObserver(so, newSoInfo);
    assertTrue(so.name().equals(soPine));
    assertTrue(so.type().equals(Type.INTEGER));
    assertTrue(so.invariant().equals(Expr.EMPTY));
  }
View Full Code Here


      name.selectAll();
      name.requestFocus();
      return;
    }

    StateObserverInfo newSO = new StateObserverInfo(soName, soType, soExpr);

    if (soToMod == null)
      updateStateObservers.addStateObserver(newSO);
    else
      updateStateObservers.updateStateObserver(soToMod.stateObserver(), newSO);
View Full Code Here

TOP

Related Classes of easysm.datatypes.information.StateObserverInfo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.