Package io.anyline2.core
Class ScanController
- java.lang.Object
-
- io.anyline2.core.ScanController
-
public class ScanController extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ScanController.PluginType
static class
ScanController.ResultType
-
Constructor Summary
Constructors Constructor Description ScanController(java.lang.String jsonConfig, java.lang.String assetPath, java.lang.String schemaPath)
ScanController(java.lang.String jsonConfig, java.lang.String assetPath, java.lang.String schemaPath, PluginCallback callback)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addReportingValues(java.lang.String reportingValues)
void
cancel()
void
delete()
java.lang.String
getID()
java.lang.String
getKPluginConfigSchemaFileName()
java.lang.String
getKPluginResultSchemaFileName()
ScanController.PluginType
getPluginType()
static ScanController.PluginType
getPluginTypeForJsonConfig(java.lang.String jsonConfig)
ScanController.ResultType
getResultType()
ROI
getROI()
boolean
isProcessing()
void
process(AnylineImage frame, boolean runSynchronized)
void
setAssetPath(java.lang.String assetPath)
void
setPluginCallback(PluginCallback callback)
void
setROI(ROI roi)
void
validateJson(java.lang.String jsonString, java.lang.String pathToSchema, java.lang.String schemaFileName)
-
-
-
Constructor Detail
-
ScanController
public ScanController(java.lang.String jsonConfig, java.lang.String assetPath, java.lang.String schemaPath, PluginCallback callback) throws PluginException
- Throws:
PluginException
-
ScanController
public ScanController(java.lang.String jsonConfig, java.lang.String assetPath, java.lang.String schemaPath) throws PluginException
- Throws:
PluginException
-
-
Method Detail
-
delete
public void delete()
-
setPluginCallback
public void setPluginCallback(PluginCallback callback)
-
getPluginTypeForJsonConfig
public static ScanController.PluginType getPluginTypeForJsonConfig(java.lang.String jsonConfig)
-
setROI
public void setROI(ROI roi)
-
getROI
public ROI getROI()
-
setAssetPath
public void setAssetPath(java.lang.String assetPath)
-
addReportingValues
public void addReportingValues(java.lang.String reportingValues)
-
process
public void process(AnylineImage frame, boolean runSynchronized) throws AnylineException
- Throws:
AnylineException
-
isProcessing
public boolean isProcessing()
-
cancel
public void cancel()
-
getID
public java.lang.String getID()
-
getPluginType
public ScanController.PluginType getPluginType()
-
getResultType
public ScanController.ResultType getResultType()
-
getKPluginConfigSchemaFileName
public java.lang.String getKPluginConfigSchemaFileName()
-
getKPluginResultSchemaFileName
public java.lang.String getKPluginResultSchemaFileName()
-
validateJson
public void validateJson(java.lang.String jsonString, java.lang.String pathToSchema, java.lang.String schemaFileName)
-
-