public interface Session extends OntologyCollector, OWLExportable, Lockable, SessionListenable
| Modifier and Type | Interface and Description |
|---|---|
static class |
Session.State
The states a session can be in: ACTIVE (for running sessions), HALTED (for inactive sessions that may
later be activated, e.g. when a user logs in), ZOMBIE (inactive and bound for destruction, no longer
referenceable).
|
OWLExportable.ConnectivityPolicy| Modifier and Type | Method and Description |
|---|---|
void |
attachScope(String scopeId)
Instructs the session to reference the supplied ontology scope.
|
void |
clearScopes()
Removes all references to ontology scopes, thus leaving the session data as standalone.
|
void |
close()
Closes this Session irreversibly.
|
void |
detachScope(String scopeId)
Instructs the session to no longer reference the supplied ontology scope.
|
Set<String> |
getAttachedScopes()
Gets the identifiers of the scopes currently attached to this session.
|
Session.State |
getSessionState()
Returns the current state of this KReS session.
|
boolean |
isActive()
Equivalent to
getState() == State.ACTIVE. |
void |
open()
Sets this session as active
|
Session.State |
setActive(boolean active)
Sets the session as ACTIVE if
active is true, INACTIVE otherwise. |
addOntology, getManagedOntologies, getOntology, getOntology, getOntology, getOntology, getOntology, getOntology, getOntology, getOntology, hasOntology, hasOntology, listManagedOntologies, removeOntology, removeOntology, setUp, tearDownaddOntologyCollectorListener, clearOntologyCollectorListeners, getOntologyCollectorListeners, removeOntologyCollectorListenergetDefaultNamespace, getID, getNamespace, setDefaultNamespace, setNamespacegetSupportedOntologyTypesexport, export, getConnectivityPolicy, setConnectivityPolicyisLockedaddSessionListener, clearSessionListeners, getSessionListeners, removeSessionListenerstatic final String shortName
void attachScope(String scopeId)
scope - the ontology scope to be referenced.void clearScopes()
void close()
void detachScope(String scopeId)
scope - the identifer of the ontology scope to be detached.Set<String> getAttachedScopes()
Session.State getSessionState()
boolean isActive()
getState() == State.ACTIVE.void open()
NonReferenceableSessionExceptionSession.State setActive(boolean active)
active is true, INACTIVE otherwise. The state set is
returned, which should match the input state unless an error occurs.active - the desired activity state for this sessionCopyright © 2010-2014 The Apache Software Foundation. All Rights Reserved.