public class ReversePlanner extends Object
Modifier and Type | Field and Description |
---|---|
static int |
CASE_BASED_REASONING |
protected double |
coverage
The required coverage factor of the generated pattern
|
static int |
NAIVE_BAYES |
Constructor and Description |
---|
ReversePlanner()
Creates a new instance of ReversePlanner
|
ReversePlanner(boolean includeCBR)
Creates a new instance of ReversePlanner
|
Modifier and Type | Method and Description |
---|---|
int |
classifyScript(AvclMission script,
VehicleCharacteristics chars)
Classifies the input script using Naive Bayes analysis, but does not generate the agendaMission
|
int |
classifyScript(AvclMission script,
VehicleCharacteristics chars,
boolean useBayes)
Classifies the input script, but does not generate the agendaMission
|
AvclMission |
generateAgenda(AvclMission script,
VehicleCharacteristics chars)
Generates an AVCL agendaMission corresponding to a script (uses Naive Bayes analysis for script classification)
|
AvclMission |
generateAgenda(AvclMission script,
VehicleCharacteristics chars,
boolean useBayes)
Generates an AVCL agendaMission corresponding to a script
|
AvclMission |
getAgenda(AvclMission script,
VehicleCharacteristics chars,
boolean recompute)
Returns the computed agendaMission.
|
AvclMission |
getAgenda(AvclMission script,
VehicleCharacteristics chars,
boolean recompute,
boolean useBayes)
Returns the computed agendaMission
|
static void |
main(String[] args)
Main method included for troubleshooting only
|
public static final int NAIVE_BAYES
public static final int CASE_BASED_REASONING
protected double coverage
public ReversePlanner()
public ReversePlanner(boolean includeCBR)
includeCBR
- public int classifyScript(AvclMission script, VehicleCharacteristics chars, boolean useBayes)
script
- mission for which a characteristics array is to be generatedchars
- characteristics of the vehicle for which the script is intendeduseBayes
- use true for the NaiveBayes classifier, false for case-based reasoningpublic int classifyScript(AvclMission script, VehicleCharacteristics chars)
script
- mission for which a characteristics array is to be generatedchars
- characteristics of the vehicle for which the script is intendedpublic AvclMission getAgenda(AvclMission script, VehicleCharacteristics chars, boolean recompute, boolean useBayes)
script
- mission for which a characteristics array is to be generatedchars
- characteristics of the vehicle for which the script is intendedrecompute
- set to true if the agendaMission is to be regenerateduseBayes
- use true for the NaiveBayes classifier, false for case-based reasoningpublic AvclMission getAgenda(AvclMission script, VehicleCharacteristics chars, boolean recompute)
script
- mission for which a characteristics array is to be generatedchars
- characteristics of the vehicle for which the script is intendedrecompute
- set to true if the agendaMission is to be regeneratedpublic AvclMission generateAgenda(AvclMission script, VehicleCharacteristics chars)
script
- AVCL task-level behavior script that is to be converted to an agendaMissionchars
- characteristics of the vehicle for which the script was definedpublic AvclMission generateAgenda(AvclMission script, VehicleCharacteristics chars, boolean useBayes)
script
- AVCL task-level behavior script that is to be converted to an agendaMissionchars
- characteristics of the vehicle for which the script was defineduseBayes
- use true for the NaiveBayes classifier, false for case-based reasoningpublic static void main(String[] args)
args
-