Search in sources :

Example 6 with NAR

use of nars.core.NAR in project narchy by automenta.

the class BudgetExpense method main.

public static void main(String[] args) throws Exception {
    int cycles = 1000;
    NAR nar = new Default().build();
    NARTrace t = new NARTrace(nar);
    nar.addInput("<a --> b>.");
    nar.addInput("<b --> c>.");
    nar.addInput("<(^pick,x) =\\> a>.");
    nar.addInput("<(*, b, c) <-> x>.");
    nar.addInput("a!");
    TimelineVis tc = new TimelineVis(new LineChart(t.getCharts("task.novel.add", "task.immediate_processed")).height(3), new LineChart(t.getCharts("task.goal.process", "task.question.process", "task.judgment.process")).height(3), new LineChart(t.getCharts("emotion.busy")).height(1));
    nar.run(cycles);
    new NWindow("_", new PCanvas(tc)).show(800, 800, true);
}
Also used : TimelineVis(automenta.vivisect.timeline.TimelineVis) NARTrace(nars.util.NARTrace) NWindow(automenta.vivisect.swing.NWindow) PCanvas(automenta.vivisect.swing.PCanvas) Default(nars.model.Default) NAR(nars.core.NAR) LineChart(automenta.vivisect.timeline.LineChart)

Aggregations

NAR (nars.core.NAR)6 Default (nars.model.Default)6 NWindow (automenta.vivisect.swing.NWindow)5 PCanvas (automenta.vivisect.swing.PCanvas)5 TimelineVis (automenta.vivisect.timeline.TimelineVis)5 LineChart (automenta.vivisect.timeline.LineChart)4 NARTrace (nars.util.NARTrace)3 Task (nars.nal.entity.Task)2 Term (nars.nal.language.Term)2 TaskImmediateProcess (nars.core.Events.TaskImmediateProcess)1 NAL (nars.cycle.NAL)1 NARSwing (nars.gui.NARSwing)1 ConceptsPanel (nars.gui.output.ConceptsPanel)1 ChangedTextInput (nars.io.ChangedTextInput)1 TextOutput (nars.io.TextOutput)1 Concept (nars.nal.entity.Concept)1 TreeMLData (nars.util.TreeMLData)1 AgentLoader (org.rlcommunity.rlglue.codec.util.AgentLoader)1