|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnars.main.Center
public class Center
The control center of the system.
Create static main window and input channel, reset memory, and manage system clock.
| Field Summary | |
|---|---|
private static long |
clock
System clock, relatively defined to guaranttee the repeatability of behaviors |
static ExperienceIO |
experienceIO
The unique input channel |
static MainWindow |
mainWindow
The unique main window |
private static boolean |
running
Flag for running continously |
private static long |
stoper
Timer for fixed distance walking |
| Constructor Summary | |
|---|---|
Center()
|
|
| Method Summary | |
|---|---|
static long |
getTime()
Get the current time from the clock Called in nars.entity.Stamp |
static void |
reset()
Reset the system with an empty memory and reset clock. |
static void |
setStoper(long i)
Walk a fixed number of steps or continously. |
static void |
start()
Start the initial windows and memory. |
static void |
tick()
A clock tick. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static MainWindow mainWindow
public static ExperienceIO experienceIO
private static long clock
private static long stoper
private static boolean running
| Constructor Detail |
|---|
public Center()
| Method Detail |
|---|
public static void start()
public static void reset()
public static void setStoper(long i)
i - The number of steps of inference, or infinite if negativepublic static void tick()
public static long getTime()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||