We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a4b45fe commit f8c09e1Copy full SHA for f8c09e1
1 file changed
src/main/HeadlessChildModel.java
@@ -6,6 +6,7 @@
6
7
import org.nlogo.api.*;
8
import org.nlogo.headless.HeadlessWorkspace;
9
+import org.nlogo.nvm.HaltException;
10
import org.nlogo.workspace.AbstractWorkspace;
11
12
public class HeadlessChildModel extends ChildModel {
@@ -50,6 +51,19 @@ public void updateView() {
50
51
}
52
53
54
+ @Override
55
+ public void ask(String command, Object[] actuals) throws ExtensionException, HaltException {
56
+ super.ask(command, actuals);
57
+ updateView();
58
+ }
59
+
60
61
+ public Object of(String reporter, Object[] actuals) throws ExtensionException, HaltException {
62
+ Object result = super.of(reporter, actuals);
63
64
+ return result;
65
66
67
@Override
68
public AbstractWorkspace workspace() {
69
return myWS;
0 commit comments