|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dllearner.server.ClientState
public class ClientState
Stores the state of a DL-Learner client session.
| Constructor Summary | |
|---|---|
ClientState()
|
|
| Method Summary | |
|---|---|
int |
addKnowledgeSource(KnowledgeSource ks)
Adds a knowledge source to the client session. |
int |
addQuery(SparqlQuery query)
|
Component |
getComponent(int id)
|
Set<KnowledgeSource> |
getKnowledgeSources()
|
LearningAlgorithm |
getLearningAlgorithm()
|
LearningProblem |
getLearningProblem()
|
SparqlQuery |
getQuery(int id)
|
ReasonerComponent |
getReasonerComponent()
|
boolean |
isAlgorithmRunning()
Deprecated. |
boolean |
removeKnowledgeSource(int componentID)
|
boolean |
removeKnowledgeSource(String url)
Removes a knowledge source with the given URL (independant of its type). |
void |
setAlgorithmRunning(boolean isAlgorithmRunning)
Deprecated. |
int |
setLearningAlgorithm(LearningAlgorithm learningAlgorithm)
|
int |
setLearningProblem(LearningProblem learningProblem)
|
int |
setReasonerComponent(ReasonerComponent reasonerComponent)
Sets the reasoner component and creates the corresponding ReasonerComponent instance. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClientState()
| Method Detail |
|---|
public int addQuery(SparqlQuery query)
public SparqlQuery getQuery(int id)
@Deprecated public boolean isAlgorithmRunning()
@Deprecated public void setAlgorithmRunning(boolean isAlgorithmRunning)
isAlgorithmRunning - the isAlgorithmRunning to setpublic boolean removeKnowledgeSource(String url)
url - URL of the OWL file or SPARQL Endpoint.
public LearningProblem getLearningProblem()
public int setLearningProblem(LearningProblem learningProblem)
learningProblem - the learningProblem to setpublic ReasonerComponent getReasonerComponent()
public int setReasonerComponent(ReasonerComponent reasonerComponent)
ReasonerComponent instance.
reasonerComponent - the reasonerComponent to setpublic LearningAlgorithm getLearningAlgorithm()
public int setLearningAlgorithm(LearningAlgorithm learningAlgorithm)
learningAlgorithm - the learningAlgorithm to setpublic Component getComponent(int id)
id - A component ID.
Map.get(java.lang.Object)public int addKnowledgeSource(KnowledgeSource ks)
ks - The knowledge source to add.
public boolean removeKnowledgeSource(int componentID)
public Set<KnowledgeSource> getKnowledgeSources()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||