public class DetectionAgentProfile extends Object
| 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).
|
String |
getClassName() |
String |
getLabel() |
String |
getParameter(String name) |
String |
getParameterOrDefault(String name,
String default_value)
Get the value of this parameter, of return default_value if not set.
|
HashMap<String,String> |
getParameters() |
String |
getTriggerLabel() |
void |
setClassName(String class_name) |
void |
setLabel(String label) |
void |
setParameters(HashMap<String,String> parameters) |
void |
setTriggerLabel(String trigger_label) |
public final String getLabel()
public final void setLabel(String label)
label - public final String getTriggerLabel()
public final void setTriggerLabel(String trigger_label)
trigger_label - public final String getClassName()
public final void setClassName(String class_name)
class_name - public final void setParameters(HashMap<String,String> parameters)
parameters - public final String getParameterOrDefault(String name, String default_value)
name - default_value - 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).Copyright © 2019. All rights reserved.