use of nars.main.NAR in project opennars by opennars.
the class TestChamber method main.
public static void main(String[] args) {
// set NAR architecture parameters:
// builder...
// not that much events in testchamber anyway
Parameters.CONSIDER_NEW_OPERATION_BIAS = 1.0f;
// but many possible different ways to achieve certain things
Parameters.SEQUENCE_BAG_SIZE = 100;
NAR nar = new NAR();
nar.param.decisionThreshold.set(0.51);
// set NAR runtime parmeters:
/*for(NAR.PluginState pluginstate : nar.getPlugins()) {
if(pluginstate.plugin instanceof InternalExperience || pluginstate.plugin instanceof FullInternalExperience) {
nar.removePlugin(pluginstate);
}
}*/
// nar.addPlugin(new TemporalParticlePlanner());
// (nar.param).duration.set(10);
(nar.param).noiseLevel.set(0);
new NARSwing(nar);
new TestChamber(nar);
nar.start(narUpdatePeriod);
}
use of nars.main.NAR in project opennars by opennars.
the class Launcher method jButton1ActionPerformed.
// </editor-fold>//GEN-END:initComponents
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
// GEN-FIRST:event_jButton1ActionPerformed
NARSwing sw = new NARSwing(new NAR());
this.dispose();
}
use of nars.main.NAR in project opennars by opennars.
the class Shell method main.
/**
* The entry point of the standalone application.
* <p>
* @param args optional argument used : one addInput file
*/
public static void main(String[] args) {
Shell nars = new Shell(new NAR());
nars.run(args);
// TODO only if single finish ( no reset in between )
if (nars.dumpLastState) {
System.out.println("\n==== Dump Last State ====\n" + nars.nar.toString());
}
}
Aggregations