GrammarScope  4.0.0
Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Static Private Attributes | List of all members
grammarscope.server.parser.SingletonParserServer Class Reference
Inheritance diagram for grammarscope.server.parser.SingletonParserServer:
Inheritance graph
[legend]
Collaboration diagram for grammarscope.server.parser.SingletonParserServer:
Collaboration graph
[legend]

Public Member Functions

synchronized boolean bind ()
 
void unbind ()
 
void reset ()
 
- Public Member Functions inherited from grammarscope.server.parser.DefaultParserServer
 DefaultParserServer ()
 
void setup (final Properties properties)
 
String getParserOptions ()
 
boolean isValid ()
 
String getDescription ()
 
Options getOptions ()
 
ISegmenter getSegmenter ()
 
IMorphology getMorphology ()
 
IParser getParser ()
 
IGrammaticalStructureAnalyzer getGrammaticalStructureAnalyzer ()
 
IDependencyParser getDependencyParser ()
 
ITypedDependenciesAnalyzer getTypedDependenciesAnalyzer ()
 
ISemanticGraphAnalyzer getSemanticGraphAnalyzer ()
 
long getCapabilities ()
 
List< TokenmakeTokens (final Tree tree)
 
TextAnalysis processText (final String text) throws IllegalArgumentException
 
Properties getDefaultConfig (final Language lang)
 

Static Public Member Functions

static synchronized SingletonParserServer getInstance ()
 
- Static Public Member Functions inherited from grammarscope.server.parser.DefaultParserServer
static String makeDescription (final Properties properties)
 
static void main (final String[] args)
 

Private Member Functions

 SingletonParserServer ()
 

Static Private Member Functions

static synchronized boolean unbound ()
 

Static Private Attributes

static SingletonParserServer instance
 
static boolean bound
 

Detailed Description

Singleton server. Every client will bind to server. That doesn't mean we need a server instance for each client.

Author
Bernard Bou

Constructor & Destructor Documentation

◆ SingletonParserServer()

grammarscope.server.parser.SingletonParserServer.SingletonParserServer ( )
private

Private constructor

Member Function Documentation

◆ bind()

synchronized boolean grammarscope.server.parser.SingletonParserServer.bind ( )

Load all submodules (segmenter, parser, analyzer, ...)

Returns
true if success

Reimplemented from grammarscope.server.parser.DefaultParserServer.

◆ getInstance()

static synchronized SingletonParserServer grammarscope.server.parser.SingletonParserServer.getInstance ( )
static

Factory

Returns
instance

◆ reset()

void grammarscope.server.parser.SingletonParserServer.reset ( )

◆ unbind()

void grammarscope.server.parser.SingletonParserServer.unbind ( )

◆ unbound()

static synchronized boolean grammarscope.server.parser.SingletonParserServer.unbound ( )
staticprivate

Is unbound

Returns
true if was unbound

Member Data Documentation

◆ bound

boolean grammarscope.server.parser.SingletonParserServer.bound
staticprivate

Whether single instance is already bound

◆ instance

SingletonParserServer grammarscope.server.parser.SingletonParserServer.instance
staticprivate

The single instance


The documentation for this class was generated from the following file: