Class Vinci
java.lang.Object
org.apache.uima.collection.impl.cpm.vinci.Vinci
The Class Vinci.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringextractKEYSAsString(AFrame frame) Extract KEYS as string.private AFrameReturns a new VinciFrame.static StringgetContentFromDATACas(CasData aCas) Gets the content from DATA cas.static StringgetFeatureValueByType(CasData aCAS, String featureName) Gets the feature value by type.static AFrameproduceAFrame(String cmd, String content) Produce A frame.static AFramereplyWithAnalysis(BaseClient conn, VinciFrame requestFrame) Package theVinciFramecontaining result of the requested operation into a Vinci Data frame.static AFramereplyWithAnalysis(VinciClient conn, VinciFrame requestFrame) Package theVinciFramecontaining result of the requested operation into a Vinci Data frame.replyWithError(String errorMsg) Creates and populates an error frame.static StringstripVinciFrame(VinciFrame aFrame) Returns a content from a given VinciFrame.
-
Field Details
-
VNS_HOST
The Constant VNS_HOST.- See Also:
-
VNS_PORT
The Constant VNS_PORT.- See Also:
-
-
Constructor Details
-
Vinci
public Vinci()
-
-
Method Details
-
getAFrame
Returns a new VinciFrame.- Returns:
VinciFrameinstance
-
replyWithError
Creates and populates an error frame.- Parameters:
errorMsg- - error message to place in the error frame- Returns:
VinciFrameinstance containing error
-
replyWithAnalysis
Package theVinciFramecontaining result of the requested operation into a Vinci Data frame.- Parameters:
conn- the connectionrequestFrame-VinciFramecontaining result of thsi service operation- Returns:
VinciFrameVinciData frame.- Throws:
Exception- -
-
replyWithAnalysis
Package theVinciFramecontaining result of the requested operation into a Vinci Data frame.- Parameters:
conn- the connectionrequestFrame-VinciFramecontaining result of thsi service operation- Returns:
VinciFrameVinciData frame.- Throws:
Exception- the exception
-
produceAFrame
Produce A frame.- Parameters:
cmd- the cmdcontent- the content- Returns:
- the a frame
-
extractKEYSAsString
Extract KEYS as string.- Parameters:
frame- the frame- Returns:
- the string
-
getFeatureValueByType
Gets the feature value by type.- Parameters:
aCAS- the a CASfeatureName- the feature name- Returns:
- the feature value by type
-
getContentFromDATACas
Gets the content from DATA cas.- Parameters:
aCas- the a cas- Returns:
- the content from DATA cas
-
stripVinciFrame
Returns a content from a given VinciFrame.- Parameters:
aFrame- the a frame- Returns:
- the string
-