Package org.jamesii.core.model

Examples of org.jamesii.core.model.AbstractState


  public void instrumentModel(IModel model,
      IComputationTaskConfiguration simConfig) {

    ICoupledModel m = (ICoupledModel) model;

    AbstractState mapState = ((IAtomicModel<?>) m.getModel("Map")).getState();

    mapState.setMediator(new Mediator());

    // System.out.println("Instrumenting the model");

    IObserver<? extends IObservable> obs = null;

    obs = new FFStateModelObs(model);

    if (obs == null) {
      return;
    }

    mapState.registerObserver(obs);
    observers = new ArrayList<>();
    // observers.clear();
    observers.add(obs);
  }
View Full Code Here

TOP

Related Classes of org.jamesii.core.model.AbstractState

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.