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