| |
com.declarativa.interprolog
Class YAPPeer
java.lang.Object
com.declarativa.interprolog.PrologImplementationPeer
com.declarativa.interprolog.YAPPeer
- public class YAPPeer
- extends PrologImplementationPeer
YAPPeer
public YAPPeer(AbstractPrologEngine engine)
getBinDirectoryProperty
public String getBinDirectoryProperty(Properties p)
- Specified by:
getBinDirectoryProperty in class PrologImplementationPeer
executablePath
public String executablePath(String d)
- Specified by:
executablePath in class PrologImplementationPeer
fetchPrologNumericVersion
public String fetchPrologNumericVersion()
alternativePrologExtensions
public String[] alternativePrologExtensions(String filename)
- Specified by:
alternativePrologExtensions in class PrologImplementationPeer
prologBinToBaseDirectory
public String prologBinToBaseDirectory(String binDirectoryOrStartCommand)
- Assumes that Prolog options can not include "/bin/"...
- Specified by:
prologBinToBaseDirectory in class PrologImplementationPeer
makePromptRecognizer
public Recognizer makePromptRecognizer()
- Specified by:
makePromptRecognizer in class PrologImplementationPeer
makeBreakRecognizer
public Recognizer makeBreakRecognizer()
- Specified by:
makeBreakRecognizer in class PrologImplementationPeer
interprologFilename
public String interprologFilename()
- Description copied from class:
PrologImplementationPeer
- 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
- Specified by:
interprologFilename in class PrologImplementationPeer
visualizationFilename
public String visualizationFilename()
- Description copied from class:
PrologImplementationPeer
- 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. Although the file is common for all Prologs, some (eg XSB) have a compiled form, others do not
- Specified by:
visualizationFilename in class PrologImplementationPeer
unescapedFilePath
public String unescapedFilePath(String p)
- Description copied from class:
PrologImplementationPeer
- Some Prologs use '\' as an escape character in atoms, which can affect file paths under Windows. Use this method to preprocess
all file paths passed to Prolog. this default implementation does no preprocessing, subclasses should define their own if needed
- Overrides:
unescapedFilePath in class PrologImplementationPeer
isInterrupt
public boolean isInterrupt(Object error)
- Description copied from class:
PrologImplementationPeer
- True if an error, as obtained in a ResultFromProlog object, looks like an interrupt detection on the Prolog side,
cf. predicate handleDeterministicGoal in interprolog.P/pl/etc. resultError is not null
- Specified by:
isInterrupt in class PrologImplementationPeer
|