EventEmitter.EventObserver
public abstract class AnswerHandler extends Object implements EventEmitter.EventObserver
Modifier and Type | Field | Description |
---|---|---|
(package private) static Class[] |
events |
|
private Nar |
nar |
|
private Task |
question |
Constructor | Description |
---|---|
AnswerHandler() |
Modifier and Type | Method | Description |
---|---|---|
void |
event(Class event,
Object[] args) |
|
void |
off() |
|
abstract void |
onSolution(Sentence belief) |
called when the question task has been solved directly
|
void |
start(Task question,
Nar n) |
public void off()
public void event(Class event, Object[] args)
event
in interface EventEmitter.EventObserver
public abstract void onSolution(Sentence belief)
Copyright © 2020 OpenNARS. All rights reserved.