nars.io
Class Record

java.lang.Object
  extended by nars.io.Record

public class Record
extends java.lang.Object

Inference log, which record input/output of each inference step


Field Summary
private static boolean isReporting
          whether to display
private static java.io.PrintWriter logFile
          the log file
private static InferenceWindow window
          the display window
 
Constructor Summary
Record()
           
 
Method Summary
static void append(java.lang.String s)
          Add new text to display
static void closeLogFile()
          Close the log file
static void init()
          Initialize the window and the file
static boolean isLogging()
          Check file logging
static void openLogFile()
          Open the log file
static void play()
          Begin the display
static void show()
          Show the window
static void stop()
          Stop the display
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

window

private static InferenceWindow window
the display window


isReporting

private static boolean isReporting
whether to display


logFile

private static java.io.PrintWriter logFile
the log file

Constructor Detail

Record

public Record()
Method Detail

init

public static void init()
Initialize the window and the file


show

public static void show()
Show the window


play

public static void play()
Begin the display


stop

public static void stop()
Stop the display


append

public static void append(java.lang.String s)
Add new text to display

Parameters:
s - The line to be displayed

openLogFile

public static void openLogFile()
Open the log file


closeLogFile

public static void closeLogFile()
Close the log file


isLogging

public static boolean isLogging()
Check file logging

Returns:
If the file logging is going on