com.declarativa.interprolog.remote
Class RemoteXSBSubprocessEngine

java.lang.Object
  extended by com.declarativa.interprolog.AbstractPrologEngine
      extended by com.declarativa.interprolog.SubprocessEngine
          extended by com.declarativa.interprolog.remote.RemoteXSBSubprocessEngine
All Implemented Interfaces:
PrologEngine

public class RemoteXSBSubprocessEngine
extends SubprocessEngine


Nested Class Summary
 
Nested classes/interfaces inherited from class com.declarativa.interprolog.SubprocessEngine
SubprocessEngine.OutputDumper
 
Field Summary
 
Fields inherited from class com.declarativa.interprolog.SubprocessEngine
ctrl_c, ctrlc
 
Fields inherited from class com.declarativa.interprolog.AbstractPrologEngine
firstJavaMessageName, interPrologFileLoaded, interrupting, nl, prologBinDirectoryOrCommand
 
Fields inherited from interface com.declarativa.interprolog.PrologEngine
MAX_INT_VALUE, MIN_INT_VALUE, version
 
Constructor Summary
RemoteXSBSubprocessEngine(String hostname, int port)
           
RemoteXSBSubprocessEngine(String hostname, int port, boolean debug)
          assumes that hostname has interprolog.jar, and PrologServer.main() executing
RemoteXSBSubprocessEngine(String hostname, String user, String xsbPath, String interprologPath, boolean windowsServer)
           
RemoteXSBSubprocessEngine(String hostname, String user, String xsbPath, String interprologPath, boolean windowsServer, boolean debug)
          Assumes ssh connection exists preconfigured to this host, with signatures in place, and XSB Prolog in there with the interprolog prolog file
 
Method Summary
 boolean isPrologServerBased()
           
 char serverFileSeparatorChar()
           
 boolean serverIsWindows()
          Whether the Prolog machine is a Windows box
 boolean usesRemoteInterPrologServer()
           
 
Methods inherited from class com.declarativa.interprolog.SubprocessEngine
addPrologOutputListener, addPrologStderrListener, addPrologStdoutListener, deterministicGoal, isAvailable, realCommand, removePrologOutputListener, removePrologStderrListener, removePrologStdoutListener, sendAndFlush, sendAndFlushLn, setDebug, setEngineStarted, setSlowWindowsShutdown, shutdown
 
Methods inherited from class com.declarativa.interprolog.AbstractPrologEngine
abortTasks, addPrologEngineListener, assignableType, command, consultAbsolute, consultAbsolute, consultFromPackage, consultRelative, deterministicGoal, deterministicGoal, deterministicGoal, deterministicGoal, doCallback, endAllTasks, exec, findConstructor, findMethod, firstJavaMessage, getImplementationPeer, getInterprologPath, getJarDirectory, getJarDirectory, getLoadFromJar, getPrologBaseDirectory, getPrologNumericVersion, getPrologVersion, getRealJavaObject, getRealJavaObject, getRealJavaObject, getThePrologListener, goal, goal, handleCallback, inPrologShell, interrupt, interruptTasks, is64WindowsOS, isDebug, isIdle, isMacOS, isProfiling, isSerializable, isShutingDown, isThreadedCallbacks, isWindowsOS, lastSolutionUndefined, load_dynAbsolute, load_dynRelative, makeInvisible, printAllStackTraces, printAllStackTraces, printBindings, printStackTrace, profilingMessage, progressMessage, progressMessage, prologBinToBaseDirectory, prologCanWork, registerJavaObject, removePrologEngineListener, setProfiling, setThreadedCallbacks, setTimedCallIntervall, shortClassName, stop, teachMoreObjects, teachMoreObjects, teachMoreObjects, teachOneObject, unescapedFilePath, unregisterJavaObject, unregisterJavaObject, unregisterJavaObjects, waitUntilAvailable, waitUntilIdle
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteXSBSubprocessEngine

public RemoteXSBSubprocessEngine(String hostname,
                                 String user,
                                 String xsbPath,
                                 String interprologPath,
                                 boolean windowsServer)

RemoteXSBSubprocessEngine

public RemoteXSBSubprocessEngine(String hostname,
                                 String user,
                                 String xsbPath,
                                 String interprologPath,
                                 boolean windowsServer,
                                 boolean debug)
Assumes ssh connection exists preconfigured to this host, with signatures in place, and XSB Prolog in there with the interprolog prolog file


RemoteXSBSubprocessEngine

public RemoteXSBSubprocessEngine(String hostname,
                                 int port)

RemoteXSBSubprocessEngine

public RemoteXSBSubprocessEngine(String hostname,
                                 int port,
                                 boolean debug)
assumes that hostname has interprolog.jar, and PrologServer.main() executing

Method Detail

usesRemoteInterPrologServer

public boolean usesRemoteInterPrologServer()

serverIsWindows

public boolean serverIsWindows()
Description copied from class: AbstractPrologEngine
Whether the Prolog machine is a Windows box

Overrides:
serverIsWindows in class AbstractPrologEngine

serverFileSeparatorChar

public char serverFileSeparatorChar()
Overrides:
serverFileSeparatorChar in class AbstractPrologEngine

isPrologServerBased

public boolean isPrologServerBased()