| Constructor and Description | 
|---|
Agent(InputStream is)
Constructs the Agent with a theory provided
 by an input stream 
 | 
Agent(InputStream is,
     String goal)
Constructs the Agent with a theory provided
 by an input stream and a goal 
 | 
Agent(String theory)
Builds a prolog agent providing it a theory 
 | 
Agent(String theory,
     String goal)
Builds a prolog agent providing it a theory and a goal 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
addOutputListener(OutputListener l)
Adds a listener to ouput events 
 | 
static void | 
main(String[] args)  | 
void | 
removeAllOutputListener()
Removes all output event listeners 
 | 
void | 
removeOutputListener(OutputListener l)
Removes a listener to ouput events 
 | 
void | 
spawn()
Starts agent execution 
 | 
public Agent(String theory)
theory - the text representing the theorypublic Agent(String theory, String goal)
public Agent(InputStream is)
public Agent(InputStream is, String goal)
public final void spawn()
public void addOutputListener(OutputListener l)
l - the listenerpublic void removeOutputListener(OutputListener l)
l - the listenerpublic void removeAllOutputListener()
public static void main(String[] args)
Copyright © 2015. All rights reserved.