edu.isi.powerloom.gui.serverinterface
Class LocalServerImpl

java.lang.Object
  |
  +--edu.isi.powerloom.gui.serverinterface.LocalServerImpl
All Implemented Interfaces:
ServerInterface

public class LocalServerImpl
extends java.lang.Object
implements ServerInterface

Local implementation of client/server interface. Currently this does nothing, but eventually it could communicate directly with an in-process version of powerloom.

Since:
Sun Feb 24 16:09:47 2002
Author:
Eric Melz

Constructor Summary
LocalServerImpl()
           
 
Method Summary
 void clearKB(PLModule mod)
          Insert the method's description here.
 PLString destroyObject(PLString modName, PLString objectName)
           
 PLString evaluateLogicCommand(PLString modName, PLString command)
           
 PLConceptContainer getConcept(PLString modName, PLString concept)
           
 PLConceptContainer getConceptCompletions(PLString modName, PLString prefix)
           
 PLConceptContainer getConceptsForModule(PLString modName)
           
 PLDirectoryContents getDefaultDirectoryListing(PLString extensionFilter)
           
 PLInstanceContainer getDirectInstancesForConcept(PLString modName, PLString conceptName)
           
 PLDirectoryContents getDirectoryListing(PLString currentDir, PLString extensionFilter)
           
 PLString getDocumentationForConcept(PLString modName, PLString conceptName)
           
 PLString getDocumentationForInstance(PLString mod, PLString rel)
          Insert the method's description here.
 PLString getDocumentationForRelation(PLString mod, PLString rel)
          Insert the method's description here.
 PLString getExplanationForQuery(PLQuery query, PLString resultNum)
           
 PLQueryResult getExtensionForRelation(PLString modName, PLString relation)
           
 PLSurrogateCollection getIncludesForModule(PLString modName)
          Insert the method's description here.
 PLRelationContainer getInheritedRelationsForConcept(PLString modName, PLString conceptName)
           
 PLInstanceContainer getInstance(PLString modName, PLString instance)
           
 PLInstanceContainer getInstanceCompletions(PLString modName, PLString prefix)
           
 PLInstanceContainer getInstancesForConcept(PLString modName, PLString conceptName)
           
 PLInstanceContainer getInstancesForModule(PLString modName)
           
 PLModuleFileList getLoadableKBs()
          Insert the method's description here.
 PLModuleContainer getModules()
           
 PLPropositionContainer getPropositionsForConcept(PLString modName, PLString conceptName)
           
 PLPropositionContainer getPropositionsForInstance(PLString modName, PLString instanceName)
           
 PLPropositionContainer getPropositionsForInstanceAndRelation(PLString modName, PLString instanceName, PLString relationName)
           
 PLPropositionContainer getPropositionsForRelation(PLString modName, PLString relationName)
           
 PLRelationContainer getRelation(PLString modName, PLString relation)
           
 PLRelationContainer getRelationCompletions(PLString modName, PLString prefix)
           
 PLRelationContainer getRelationsForConcept(PLString modName, PLString conceptName)
           
 PLRelationContainer getRelationsForModule(PLString modName)
           
 PLPropositionContainer getRulesForConcept(PLString modName, PLString conceptName)
           
 PLPropositionContainer getRulesForRelation(PLString modName, PLString relationName)
           
 PLServerInfo getServerInfo()
           
 PLSurrogateCollection getShadowedSurrogatesForModule(PLString modName)
          Insert the method's description here.
 PLString getSourceForConcept(PLString modName, PLString conceptName)
           
 PLSurrogateCollection getSuperConceptsForConcept(PLString modName, PLString conceptName)
           
 PLSurrogateCollection getSuperRelationsForRelation(PLString modName, PLString conceptName)
          Insert the method's description here.
 PLSurrogateCollection getTypesForInstance(PLString modName, PLString instanceName)
          Insert the method's description here.
 PLSurrogateCollection getUsesForModule(PLString modName)
          Insert the method's description here.
 PLVariableList getVariablesForRelation(PLString modName, PLString conceptName)
           
 PLString loadKB(PLString kbName)
          Insert the method's description here.
 PLString loadKB2(PLString fileName)
           
 PLQueryResult query(PLQuery query, PLString continueFlag)
           
 PLString saveKB(PLString modName, PLString kbName, PLString description)
          Insert the method's description here.
 PLString saveKB2(PLString modName, PLString fileName)
           
 PLSearchResult search(PLSearchParameter searchParameter)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalServerImpl

public LocalServerImpl()
Method Detail

getModules

public PLModuleContainer getModules()
                             throws AppException
Specified by:
getModules in interface ServerInterface
AppException

getConceptsForModule

public PLConceptContainer getConceptsForModule(PLString modName)
                                        throws AppException
Specified by:
getConceptsForModule in interface ServerInterface
AppException

getInstancesForModule

public PLInstanceContainer getInstancesForModule(PLString modName)
                                          throws AppException
Specified by:
getInstancesForModule in interface ServerInterface
AppException

getRelationsForModule

public PLRelationContainer getRelationsForModule(PLString modName)
                                          throws AppException
Specified by:
getRelationsForModule in interface ServerInterface
AppException

getInstancesForConcept

public PLInstanceContainer getInstancesForConcept(PLString modName,
                                                  PLString conceptName)
Specified by:
getInstancesForConcept in interface ServerInterface

getDirectInstancesForConcept

public PLInstanceContainer getDirectInstancesForConcept(PLString modName,
                                                        PLString conceptName)
Specified by:
getDirectInstancesForConcept in interface ServerInterface

getDocumentationForConcept

public PLString getDocumentationForConcept(PLString modName,
                                           PLString conceptName)
                                    throws AppException
Specified by:
getDocumentationForConcept in interface ServerInterface
AppException

getSourceForConcept

public PLString getSourceForConcept(PLString modName,
                                    PLString conceptName)
                             throws AppException
Specified by:
getSourceForConcept in interface ServerInterface
AppException

getSuperConceptsForConcept

public PLSurrogateCollection getSuperConceptsForConcept(PLString modName,
                                                        PLString conceptName)
                                                 throws AppException
Specified by:
getSuperConceptsForConcept in interface ServerInterface
AppException

getPropositionsForInstance

public PLPropositionContainer getPropositionsForInstance(PLString modName,
                                                         PLString instanceName)
Specified by:
getPropositionsForInstance in interface ServerInterface

getRelationsForConcept

public PLRelationContainer getRelationsForConcept(PLString modName,
                                                  PLString conceptName)
                                           throws AppException
Specified by:
getRelationsForConcept in interface ServerInterface
AppException

getInheritedRelationsForConcept

public PLRelationContainer getInheritedRelationsForConcept(PLString modName,
                                                           PLString conceptName)
                                                    throws AppException
Specified by:
getInheritedRelationsForConcept in interface ServerInterface
AppException

getPropositionsForConcept

public PLPropositionContainer getPropositionsForConcept(PLString modName,
                                                        PLString conceptName)
                                                 throws AppException
Specified by:
getPropositionsForConcept in interface ServerInterface
AppException

getPropositionsForRelation

public PLPropositionContainer getPropositionsForRelation(PLString modName,
                                                         PLString relationName)
                                                  throws AppException
Specified by:
getPropositionsForRelation in interface ServerInterface
AppException

getRulesForConcept

public PLPropositionContainer getRulesForConcept(PLString modName,
                                                 PLString conceptName)
                                          throws AppException
Specified by:
getRulesForConcept in interface ServerInterface
AppException

getRulesForRelation

public PLPropositionContainer getRulesForRelation(PLString modName,
                                                  PLString relationName)
                                           throws AppException
Specified by:
getRulesForRelation in interface ServerInterface
AppException

getPropositionsForInstanceAndRelation

public PLPropositionContainer getPropositionsForInstanceAndRelation(PLString modName,
                                                                    PLString instanceName,
                                                                    PLString relationName)
                                                             throws AppException
Specified by:
getPropositionsForInstanceAndRelation in interface ServerInterface
AppException

evaluateLogicCommand

public PLString evaluateLogicCommand(PLString modName,
                                     PLString command)
                              throws AppException
Specified by:
evaluateLogicCommand in interface ServerInterface
AppException

getDocumentationForRelation

public PLString getDocumentationForRelation(PLString mod,
                                            PLString rel)
                                     throws AppException
Insert the method's description here. Creation date: (4/13/2002 1:18:55 PM)

Specified by:
getDocumentationForRelation in interface ServerInterface
Parameters:
mod - edu.isi.powerloom.gui.xmlobject.PLModule
rel - edu.isi.powerloom.gui.xmlobject.PLRelation
Throws:
AppException - The exception description.

getSuperRelationsForRelation

public PLSurrogateCollection getSuperRelationsForRelation(PLString modName,
                                                          PLString conceptName)
                                                   throws AppException
Insert the method's description here. Creation date: (4/13/2002 1:18:17 PM)

Specified by:
getSuperRelationsForRelation in interface ServerInterface
Parameters:
modName - edu.isi.powerloom.gui.xmlobject.PLString
conceptName - edu.isi.powerloom.gui.xmlobject.PLString
Returns:
edu.isi.powerloom.gui.xmlobject.PLSurrogateCollection
Throws:
AppException - The exception description.

getVariablesForRelation

public PLVariableList getVariablesForRelation(PLString modName,
                                              PLString conceptName)
                                       throws AppException
Specified by:
getVariablesForRelation in interface ServerInterface
AppException

clearKB

public void clearKB(PLModule mod)
             throws AppException
Insert the method's description here. Creation date: (4/24/2002 3:35:36 PM)

Specified by:
clearKB in interface ServerInterface
Parameters:
mod - edu.isi.powerloom.gui.xmlobject.PLModule
Throws:
AppException - The exception description.

getDocumentationForInstance

public PLString getDocumentationForInstance(PLString mod,
                                            PLString rel)
                                     throws AppException
Insert the method's description here. Creation date: (4/13/2002 1:18:55 PM)

Specified by:
getDocumentationForInstance in interface ServerInterface
Parameters:
mod - edu.isi.powerloom.gui.xmlobject.PLModule
rel - edu.isi.powerloom.gui.xmlobject.PLRelation
Throws:
AppException - The exception description.

getIncludesForModule

public PLSurrogateCollection getIncludesForModule(PLString modName)
                                           throws AppException
Insert the method's description here. Creation date: (4/16/2002 5:45:30 PM)

Specified by:
getIncludesForModule in interface ServerInterface
Parameters:
modName - edu.isi.powerloom.gui.xmlobject.PLString
Returns:
edu.isi.powerloom.gui.xmlobject.PLSurrogateCollection
Throws:
AppException - The exception description.

getLoadableKBs

public PLModuleFileList getLoadableKBs()
                                throws AppException
Insert the method's description here. Creation date: (4/23/2002 8:22:40 PM)

Specified by:
getLoadableKBs in interface ServerInterface
Returns:
edu.isi.powerloom.gui.xmlobject.PLModuleFileList
Throws:
AppException - The exception description.

getShadowedSurrogatesForModule

public PLSurrogateCollection getShadowedSurrogatesForModule(PLString modName)
                                                     throws AppException
Insert the method's description here. Creation date: (4/16/2002 5:45:30 PM)

Specified by:
getShadowedSurrogatesForModule in interface ServerInterface
Parameters:
modName - edu.isi.powerloom.gui.xmlobject.PLString
Returns:
edu.isi.powerloom.gui.xmlobject.PLSurrogateCollection
Throws:
AppException - The exception description.

getTypesForInstance

public PLSurrogateCollection getTypesForInstance(PLString modName,
                                                 PLString instanceName)
                                          throws AppException
Insert the method's description here. Creation date: (5/1/2002 10:44:37 AM)

Specified by:
getTypesForInstance in interface ServerInterface
Parameters:
modName - edu.isi.powerloom.gui.xmlobject.PLString
instanceName - edu.isi.powerloom.gui.xmlobject.PLString
Returns:
edu.isi.powerloom.gui.xmlobject.PLSurrogateCollection
Throws:
AppException - The exception description.

loadKB

public PLString loadKB(PLString kbName)
                throws AppException
Insert the method's description here. Creation date: (4/24/2002 1:21:56 PM)

Specified by:
loadKB in interface ServerInterface
Parameters:
kbName - edu.isi.powerloom.gui.xmlobject.PLString
Returns:
<{PLString}>
Throws:
AppException - The exception description.

getUsesForModule

public PLSurrogateCollection getUsesForModule(PLString modName)
                                       throws AppException
Insert the method's description here. Creation date: (4/16/2002 5:45:30 PM)

Specified by:
getUsesForModule in interface ServerInterface
Parameters:
modName - edu.isi.powerloom.gui.xmlobject.PLString
Returns:
edu.isi.powerloom.gui.xmlobject.PLSurrogateCollection
Throws:
AppException - The exception description.

loadKB2

public PLString loadKB2(PLString fileName)
                 throws AppException
Specified by:
loadKB2 in interface ServerInterface
AppException

saveKB

public PLString saveKB(PLString modName,
                       PLString kbName,
                       PLString description)
                throws AppException
Insert the method's description here. Creation date: (4/24/2002 1:22:28 PM)

Specified by:
saveKB in interface ServerInterface
Parameters:
modName - edu.isi.powerloom.gui.xmlobject.PLString
kbName - edu.isi.powerloom.gui.xmlobject.PLString
description - edu.isi.powerloom.gui.xmlobject.PLString
Returns:
edu.isi.powerloom.gui.xmlobject.PLString
Throws:
AppException - The exception description.

saveKB2

public PLString saveKB2(PLString modName,
                        PLString fileName)
                 throws AppException
Specified by:
saveKB2 in interface ServerInterface
AppException

query

public PLQueryResult query(PLQuery query,
                           PLString continueFlag)
                    throws AppException
Specified by:
query in interface ServerInterface
AppException

search

public PLSearchResult search(PLSearchParameter searchParameter)
                      throws AppException
Specified by:
search in interface ServerInterface
AppException

getDefaultDirectoryListing

public PLDirectoryContents getDefaultDirectoryListing(PLString extensionFilter)
                                               throws AppException
Specified by:
getDefaultDirectoryListing in interface ServerInterface
AppException

getDirectoryListing

public PLDirectoryContents getDirectoryListing(PLString currentDir,
                                               PLString extensionFilter)
                                        throws AppException
Specified by:
getDirectoryListing in interface ServerInterface
AppException

getExtensionForRelation

public PLQueryResult getExtensionForRelation(PLString modName,
                                             PLString relation)
                                      throws AppException
Specified by:
getExtensionForRelation in interface ServerInterface
AppException

getRelation

public PLRelationContainer getRelation(PLString modName,
                                       PLString relation)
                                throws AppException
Specified by:
getRelation in interface ServerInterface
AppException

getConcept

public PLConceptContainer getConcept(PLString modName,
                                     PLString concept)
                              throws AppException
Specified by:
getConcept in interface ServerInterface
AppException

getInstance

public PLInstanceContainer getInstance(PLString modName,
                                       PLString instance)
                                throws AppException
Specified by:
getInstance in interface ServerInterface
AppException

getRelationCompletions

public PLRelationContainer getRelationCompletions(PLString modName,
                                                  PLString prefix)
                                           throws AppException
Specified by:
getRelationCompletions in interface ServerInterface
AppException

getConceptCompletions

public PLConceptContainer getConceptCompletions(PLString modName,
                                                PLString prefix)
                                         throws AppException
Specified by:
getConceptCompletions in interface ServerInterface
AppException

getInstanceCompletions

public PLInstanceContainer getInstanceCompletions(PLString modName,
                                                  PLString prefix)
                                           throws AppException
Specified by:
getInstanceCompletions in interface ServerInterface
AppException

destroyObject

public PLString destroyObject(PLString modName,
                              PLString objectName)
                       throws AppException
Specified by:
destroyObject in interface ServerInterface
AppException

getExplanationForQuery

public PLString getExplanationForQuery(PLQuery query,
                                       PLString resultNum)
                                throws AppException
Specified by:
getExplanationForQuery in interface ServerInterface
AppException

getServerInfo

public PLServerInfo getServerInfo()
                           throws AppException
Specified by:
getServerInfo in interface ServerInterface
AppException


Copyright © 2002 University of Southern California Information Sciences Institute. All Rights Reserved.