public class DetectionAgentProfile extends Object
| Modifier and Type | Field and Description |
|---|---|
String |
class_name
The class of the detection agent to trigger.
|
String |
label
The label attached to the evidence produced by this detection agent.
|
HashMap<String,String> |
parameters
The parameters that will be provided to the detector.
|
String |
trigger_label
The label that will trigger this detection agent.
|
| Constructor and Description |
|---|
DetectionAgentProfile() |
| Modifier and Type | Method and Description |
|---|---|
DetectionAgentInterface |
createInstance()
Instantiate a detection agent for the provided subject.
|
static DetectionAgentProfile |
fromFile(File file)
Read a detection agent profile from a YAML file.
|
static DetectionAgentProfile |
fromInputStream(InputStream input)
Read a detection agent profile from an input stream (a resource file).
|
boolean |
match(String label)
Test if the provided label should trigger this detection agent.
|
public String label
public String trigger_label
public String class_name
public static final DetectionAgentProfile fromFile(File file) throws FileNotFoundException
file - FileNotFoundException - if the file does not existpublic static final DetectionAgentProfile fromInputStream(InputStream input)
input - public final DetectionAgentInterface createInstance() throws InvalidProfileException
InvalidProfileException - if the profile is incorrect
(generally due to an invalid class name).public final boolean match(String label)
label - Copyright © 2019. All rights reserved.