public class SWIPeer extends PrologImplementationPeer
REGULAR_PROMPT
Constructor and Description |
---|
SWIPeer(AbstractPrologEngine engine) |
Modifier and Type | Method and Description |
---|---|
String[] |
alternativePrologExtensions(String filename)
No support for SWI (q)saved states
|
String |
executablePath(String d) |
String |
fetchPrologNumericVersion() |
String |
getBinDirectoryEnvVar() |
String |
getBinDirectoryProperty(Properties p) |
boolean |
hasPrologExtension(String filename) |
String |
interprologFilename()
Returns the path for the Prolog file that must be loaded for InterProlog to function, USING '/' AS THE SEPARATION CHARACTER independently of the OS platform
|
boolean |
isInterrupt(Object error)
True if an error, as obtained in a ResultFromProlog object, looks like an interrupt detection on the Prolog side,
cf.
|
Recognizer |
makeBreakRecognizer() |
Recognizer |
makePromptRecognizer() |
String |
prologBinToBaseDirectory(String binDirectoryOrStartCommand)
Assumes that Prolog options can not include "/bin/"...
|
String |
unescapedFilePath(String p)
Some Prologs use '\' as an escape character in atoms, which can affect file paths under Windows.
|
String |
visualizationFilename()
Returns the path for the Prolog file that must be loaded for InterProlog's visualization predicates to function, typically
in the context of using a ListenerWindow.
|
executablePath, getOperators, getPrologNumericVersion, getPrologVersion
public SWIPeer(AbstractPrologEngine engine)
public String getBinDirectoryProperty(Properties p)
getBinDirectoryProperty
in class PrologImplementationPeer
public String executablePath(String d)
executablePath
in class PrologImplementationPeer
public String fetchPrologNumericVersion()
public String[] alternativePrologExtensions(String filename)
alternativePrologExtensions
in class PrologImplementationPeer
public boolean hasPrologExtension(String filename)
hasPrologExtension
in class PrologImplementationPeer
public String prologBinToBaseDirectory(String binDirectoryOrStartCommand)
prologBinToBaseDirectory
in class PrologImplementationPeer
public Recognizer makePromptRecognizer()
makePromptRecognizer
in class PrologImplementationPeer
public Recognizer makeBreakRecognizer()
makeBreakRecognizer
in class PrologImplementationPeer
public String interprologFilename()
PrologImplementationPeer
interprologFilename
in class PrologImplementationPeer
public String visualizationFilename()
PrologImplementationPeer
visualizationFilename
in class PrologImplementationPeer
public String unescapedFilePath(String p)
PrologImplementationPeer
unescapedFilePath
in class PrologImplementationPeer
public boolean isInterrupt(Object error)
PrologImplementationPeer
isInterrupt
in class PrologImplementationPeer
public String getBinDirectoryEnvVar()
getBinDirectoryEnvVar
in class PrologImplementationPeer