public class BehaviorTreeParser<E> extends Object
BehaviorTree parser.| Modifier and Type | Class and Description |
|---|---|
static class |
BehaviorTreeParser.DefaultBehaviorTreeReader<E> |
| Modifier and Type | Field and Description |
|---|---|
static int |
DEBUG_HIGH |
static int |
DEBUG_LOW |
static int |
DEBUG_NONE |
int |
debugLevel |
DistributionAdapters |
distributionAdapters |
| Constructor and Description |
|---|
BehaviorTreeParser() |
BehaviorTreeParser(DistributionAdapters distributionAdapters) |
BehaviorTreeParser(DistributionAdapters distributionAdapters,
int debugLevel) |
BehaviorTreeParser(DistributionAdapters distributionAdapters,
int debugLevel,
BehaviorTreeParser.DefaultBehaviorTreeReader<E> reader) |
BehaviorTreeParser(int debugLevel) |
| Modifier and Type | Method and Description |
|---|---|
protected BehaviorTree<E> |
createBehaviorTree(Task<E> root,
E object) |
BehaviorTree<E> |
parse(InputStream input,
E object)
Parses the given input stream.
|
BehaviorTree<E> |
parse(Reader reader,
E object)
Parses the given reader.
|
BehaviorTree<E> |
parse(String string,
E object)
Parses the given string.
|
protected static <E> void |
printTree(Task<E> task,
int indent) |
public static final int DEBUG_NONE
public static final int DEBUG_LOW
public static final int DEBUG_HIGH
public int debugLevel
public DistributionAdapters distributionAdapters
public BehaviorTreeParser()
public BehaviorTreeParser(DistributionAdapters distributionAdapters)
public BehaviorTreeParser(int debugLevel)
public BehaviorTreeParser(DistributionAdapters distributionAdapters, int debugLevel)
public BehaviorTreeParser(DistributionAdapters distributionAdapters, int debugLevel, BehaviorTreeParser.DefaultBehaviorTreeReader<E> reader)
public BehaviorTree<E> parse(String string, E object)
string - the string to parseobject - the blackboard object. It can be null.RuntimeException - if the string cannot be successfully parsed.public BehaviorTree<E> parse(InputStream input, E object)
input - the input stream to parseobject - the blackboard object. It can be null.RuntimeException - if the input stream cannot be successfully parsed.public BehaviorTree<E> parse(Reader reader, E object)
reader - the reader to parseobject - the blackboard object. It can be null.RuntimeException - if the reader cannot be successfully parsed.protected BehaviorTree<E> createBehaviorTree(Task<E> root, E object)
protected static <E> void printTree(Task<E> task, int indent)
Copyright © 2018. All rights reserved.