com.languagecomputer.api
Class Session

java.lang.Object
  extended by com.languagecomputer.api.Session

public final class Session
extends Object

Session responsible for maintaining state and access to various services. Currently available services:

Since:
1.0
Author:
Kirk Roberts

Method Summary
 void close()
          Ends this Session, removing any state that goes with it.
 AnnotationMetaService getAnnotationMetaService()
          Returns the AnnotationMetaService that belongs to this Session.
 AnswerExtractionService getAnswerExtractionService()
          Returns the AnswerExtractionService that belongs to this Session.
 AnswerFusionService getAnswerFusionService()
          Returns the AnswerFusionService that belongs to this Session.
 AttributeService getAttributeService()
          Returns the AttributeService that belongs to this Session.
 CoreferenceService getCoreferenceService()
          Returns the CoreferenceService that belongs to this Session.
 DocumentRetrievalService getDocumentRetrievalService()
          Returns the DocumentRetrievalService that blongs to this Session.
 DocumentService getDocumentService()
          Returns the DocumentService that belongs to this Session.
 DossierService getDossierService()
          Returns the DossierService that belongs to this Session.
 EntityService getEntityService()
          Returns the EntityService that belongs to this Session.
 EventService getEventService()
          Returns the EventService that belongs to this Session.
 String getID()
          Returns the ID for this Session.
 IndexService getIndexService()
          Returns the IndexService that belongs to this Session.
 Properties getProperties()
          Returns the Properties used by this Session.
 QuestionAnsweringService getQuestionAnsweringService()
          Returns the QuestionAnsweringService that belongs to this Session.
 QuestionAnswerPairService getQuestionAnswerPairService()
          Returns the QuestionAnswerPairService that belongs to this Session.
 QuestionProcessingService getQuestionProcessingService()
          Returns the QuestionProcessingService that belongs to this Session.
 SpatialService getSpatialService()
          Returns the SpatialService that belongs to this Session.
 SummarizationService getSummarizationService()
          Returns the SummarizationService that belongs to this Session.
 TemporalService getTemporalService()
          Returns the TemporalService that belongs to this Session.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getProperties

public Properties getProperties()
Returns the Properties used by this Session.

Returns:
The Properties object that contains session-level configuration options.

getID

public String getID()
Returns the ID for this Session. The session ID should be a randomly generated java.util.UUID.

Returns:
The Session ID.

close

public void close()
Ends this Session, removing any state that goes with it.


getDocumentService

public DocumentService getDocumentService()
Returns the DocumentService that belongs to this Session.

Returns:
The lazy-loaded DocumentService for this Session.

getEntityService

public EntityService getEntityService()
Returns the EntityService that belongs to this Session.

Returns:
The lazy-loaded EntityService for this Session.

getSpatialService

public SpatialService getSpatialService()
Returns the SpatialService that belongs to this Session.

Returns:
The lazy-loaded SpatialService for this Session.

getTemporalService

public TemporalService getTemporalService()
Returns the TemporalService that belongs to this Session.

Returns:
The lazy-loaded TemporalService for this Session.

getCoreferenceService

public CoreferenceService getCoreferenceService()
Returns the CoreferenceService that belongs to this Session.

Returns:
The lazy-loaded CoreferenceService for this Session.

getAttributeService

public AttributeService getAttributeService()
Returns the AttributeService that belongs to this Session.

Returns:
The lazy-loaded AttributeService for this Session.

getEventService

public EventService getEventService()
Returns the EventService that belongs to this Session.

Returns:
The lazy-loaded EventService for this Session.

getQuestionAnswerPairService

public QuestionAnswerPairService getQuestionAnswerPairService()
Returns the QuestionAnswerPairService that belongs to this Session.

Returns:
The lazy-loaded QuestionAnswerPairService for this Session.

getAnnotationMetaService

public AnnotationMetaService getAnnotationMetaService()
Returns the AnnotationMetaService that belongs to this Session.

Returns:
The lazy-loaded AnnotationMetaService for this Session.

getIndexService

public IndexService getIndexService()
Returns the IndexService that belongs to this Session.

Returns:
The lazy-loaded IndexService for this Session.

getDossierService

public DossierService getDossierService()
Returns the DossierService that belongs to this Session.

Returns:
The lazy-loaded DossierService for this Session.

getQuestionProcessingService

public QuestionProcessingService getQuestionProcessingService()
Returns the QuestionProcessingService that belongs to this Session.

Returns:
The lazy-loaded QuestionProcessingService for this Session.

getDocumentRetrievalService

public DocumentRetrievalService getDocumentRetrievalService()
Returns the DocumentRetrievalService that blongs to this Session.

Returns:
The lazy-loaded DocumentRetrievalService for this Session.

getAnswerExtractionService

public AnswerExtractionService getAnswerExtractionService()
Returns the AnswerExtractionService that belongs to this Session.

Returns:
The lazy-loaded AnswerExtractionService for this Session.

getAnswerFusionService

public AnswerFusionService getAnswerFusionService()
Returns the AnswerFusionService that belongs to this Session.

Returns:
The lazy-loaded AnswerFusionService for this Session.

getQuestionAnsweringService

public QuestionAnsweringService getQuestionAnsweringService()
Returns the QuestionAnsweringService that belongs to this Session.

Returns:
The lazy-loaded QuestionAnsweringService for this Session.

getSummarizationService

public SummarizationService getSummarizationService()
Returns the SummarizationService that belongs to this Session.

Returns:
The lazy-loaded SummarizationService for this Session.


Copyright © 2009. All Rights Reserved.