Class Vinci
java.lang.Object
org.apache.uima.collection.impl.cpm.vinci.Vinci
The Class Vinci.
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
extractKEYSAsString
(AFrame frame) Extract KEYS as string.static String
getContentFromDATACas
(CasData aCas) Gets the content from DATA cas.static String
getFeatureValueByType
(CasData aCAS, String featureName) Gets the feature value by type.static AFrame
produceAFrame
(String cmd, String content) Produce A frame.static AFrame
replyWithAnalysis
(BaseClient conn, VinciFrame requestFrame) Package theVinciFrame
containing result of the requested operation into a Vinci Data frame.static AFrame
replyWithAnalysis
(VinciClient conn, VinciFrame requestFrame) Package theVinciFrame
containing result of the requested operation into a Vinci Data frame.replyWithError
(String errorMsg) Creates and populates an error frame.static String
stripVinciFrame
(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
-
replyWithError
Creates and populates an error frame.- Parameters:
errorMsg
- - error message to place in the error frame- Returns:
VinciFrame
instance containing error
-
replyWithAnalysis
Package theVinciFrame
containing result of the requested operation into a Vinci Data frame.- Parameters:
conn
- the connectionrequestFrame
-VinciFrame
containing result of thsi service operation- Returns:
VinciFrame
VinciData frame.- Throws:
Exception
- -
-
replyWithAnalysis
Package theVinciFrame
containing result of the requested operation into a Vinci Data frame.- Parameters:
conn
- the connectionrequestFrame
-VinciFrame
containing result of thsi service operation- Returns:
VinciFrame
VinciData 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
-