/*
 * Here comes the text of your license
 * Each line should be prefixed with  * 
 */

package nars.plugin.mental;

import nars.core.EventEmitter;
import nars.core.NAR;
import nars.core.Parameters;
import nars.core.Plugin;

/**
 *
 * @author tc
 */
public class RuntimeNARSettings implements Plugin {

    NAR n=null;
    @Override
    public boolean setEnabled(NAR n, boolean enabled) {
        this.n=n;
        return true;
    }

    public boolean isImmediateEternalization() {
        return Parameters.IMMEDIATE_ETERNALIZATION;
    }
    public void setImmediateEternalization(boolean val) {
        Parameters.IMMEDIATE_ETERNALIZATION=val;
    }
    
    public int getDuration() {
        return n.param.duration.get();
    }
    public void setDuration(int val) {
        n.param.duration.set(val);
    }
    
    public int getTemporalInductionPriority() {
        return Parameters.TEMPORAL_INDUCTION_CHAIN_SAMPLES;
    }
    public void setTemporalInductionPriority(int val) {
        Parameters.TEMPORAL_INDUCTION_CHAIN_SAMPLES=val;
    }
    
    public float getEvidentalHorizon() {
        return Parameters.HORIZON;
    }
    public void setEvidentalHorizon(float val) {
        Parameters.HORIZON=val;
    }
    
}

@@ -660,27 +660,30 @@
 %0A    public 
-int
+double
  getDuration
@@ -760,19 +760,22 @@
 uration(
-int
+double
  val) %7B%0A
@@ -803,16 +803,22 @@
 ion.set(
+(int) 
 val);%0A  
@@ -837,19 +837,22 @@
  public 
-int
+double
  getTemp
@@ -988,19 +988,22 @@
 riority(
-int
+double
  val) %7B%0A
@@ -1054,16 +1054,22 @@
 SAMPLES=
+(int) 
 val;%0A   
@@ -1087,21 +1087,22 @@
  public 
-float
+double
  getEvid
@@ -1199,13 +1199,14 @@
 zon(
-float
+double
  val
@@ -1236,16 +1236,24 @@
 HORIZON=
+(float) 
 val;%0A   

use of double in RuntimeNARSettings, this one works fine