Beispiel #1
0
  /** Called before the MAS execution with the args informed in .mas2j */
  @Override
  public void init(String[] args) {
    super.init(args);

    logger.info("Java version:" + System.getProperty("java.version"));
    logger.info("Java architecture:" + System.getProperty("sun.arch.data.model"));

    try {
      this.model = new TEPRModel();
    } catch (IOException e) {
      addPercept(Literal.parseLiteral("error(\"Could not inatantiate the model\")"));
      e.printStackTrace();
    }
  }
Beispiel #2
0
 /** Called before the end of MAS execution */
 @Override
 public void stop() {
   super.stop();
 }