Class Vinci
- java.lang.Object
-
- org.apache.uima.collection.impl.cpm.vinci.Vinci
-
public class Vinci extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVinci.AFFactory
-
Constructor Summary
Constructors Constructor Description Vinci()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.lang.StringextractKEYSAsString(AFrame frame)static java.lang.StringgetContentFromDATACas(CasData aCas)static java.lang.StringgetFeatureValueByType(CasData aCAS, java.lang.String featureName)static AFrameproduceAFrame(java.lang.String cmd, java.lang.String content)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.VinciFramereplyWithError(java.lang.String errorMsg)Creates and populates an error frame.static java.lang.StringstripVinciFrame(VinciFrame aFrame)Returns a content from a given VinciFrame.
-
-
-
Field Detail
-
VNS_HOST
public static final java.lang.String VNS_HOST
- See Also:
- Constant Field Values
-
VNS_PORT
public static final java.lang.String VNS_PORT
- See Also:
- Constant Field Values
-
-
Method Detail
-
replyWithError
public VinciFrame replyWithError(java.lang.String errorMsg)
Creates and populates an error frame.- Parameters:
errorMsg- - error message to place in the error frame- Returns:
VinciFrameinstance containing error
-
replyWithAnalysis
public static AFrame replyWithAnalysis(BaseClient conn, VinciFrame requestFrame) throws java.lang.Exception
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:
java.lang.Exception- -
-
replyWithAnalysis
public static AFrame replyWithAnalysis(VinciClient conn, VinciFrame requestFrame) throws java.lang.Exception
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:
java.lang.Exception
-
produceAFrame
public static AFrame produceAFrame(java.lang.String cmd, java.lang.String content)
-
extractKEYSAsString
public static java.lang.String extractKEYSAsString(AFrame frame)
-
getFeatureValueByType
public static java.lang.String getFeatureValueByType(CasData aCAS, java.lang.String featureName)
-
getContentFromDATACas
public static java.lang.String getContentFromDATACas(CasData aCas)
-
stripVinciFrame
public static java.lang.String stripVinciFrame(VinciFrame aFrame)
Returns a content from a given VinciFrame.
-
-