| Package | Description |
|---|---|
| cz.cuni.amis.pogamut.sposh.elements |
This package contains parser for Yaposh plan, classes that represent
elements of the plan and some auxiliry classes.
|
| cz.cuni.amis.pogamut.sposh.exceptions |
| Modifier and Type | Method and Description |
|---|---|
ParseException |
PoshParser.generateParseException()
Generate ParseException.
|
| Modifier and Type | Method and Description |
|---|---|
ActionPattern |
PoshParser.actionPattern()
action-pattern ::= AP NAME ( NIL | "("
|
void |
PoshParser.actionPatternElements(ActionPattern ap,
FormalParameters formalParameters)
process actions of the AP and add them into the passed ap.
|
Adopt |
PoshParser.adapt()
adapt ::= AD NAME [
|
cz.cuni.amis.pogamut.sposh.elements.PoshParser.Packet<Arguments.Argument,Boolean> |
PoshParser.callParameter(int index,
boolean named)
Parameter used when calling C/AP/sense/action
callParameter ::
|
Arguments |
PoshParser.callParametersList(FormalParameters formalParameters)
callParametersList:: callParameter() ( "," callParameter() )* ")"
|
Competence |
PoshParser.competence()
competence ::= C NAME ( NIL | "("
|
CompetenceElement |
PoshParser.competenceElement(FormalParameters formalParameters)
competence-element ::= "(" NAME [ "("
|
List<Sense> |
PoshParser.competenceGoal(FormalParameters formalParameters)
( NIL | "("
|
List<CompetenceElement> |
PoshParser.competencePriorities(FormalParameters formalParameters)
competence-priorities ::=
|
void |
PoshParser.docString(PoshPlan plan)
docstring ::= DOCUMENTATION COMMENT COMMENT COMMENT ")"
|
void |
PoshParser.driveCollection(DriveCollection dc)
Take passed drive collection and put the data (name, drives) into it.
|
void |
PoshParser.driveCollectionGoal(DriveCollection dc,
FormalParameters formalParameters)
Process goal of DC (if exists)
|
DriveElement |
PoshParser.driveElement(FormalParameters formalParameters)
Create a drive and return it.
|
cz.cuni.amis.pogamut.sposh.elements.PoshParser.Packet<Arguments,Freq> |
PoshParser.driveElementActionFreq(FormalParameters formalParameters)
Nonterminal for possible arguments of the action call of the drive action and
the frequency.
|
Freq |
PoshParser.driveElementFreq()
Get specified frequency.
|
List<Sense> |
PoshParser.driveElementTrigger(FormalParameters formalParameters)
Read trigger (list of senses) and return it.
|
Freq |
PoshParser.freq()
freq ::=
|
Freq.FreqUnits |
PoshParser.freqUnit()
freq-unit ::= HOURS | MINUTES | SECONDS | HZ | PM | NONE
|
Sense |
PoshParser.fullSense(FormalParameters formalParameters)
full-sense ::= "(" NAME [
|
List<Sense> |
PoshParser.goal(FormalParameters formalParameters)
Process goal sense and return them.
|
String |
PoshParser.optComment()
Optional comment, if no comment, return blank string.
|
int |
PoshParser.optRetries()
Optional number of retries.
|
FormalParameters |
PoshParser.parameters()
Declare parameters in C or AP.
|
static LapPath |
LapPath.parse(String serializedPath)
Parse @serializedPath to
|
PoshPlan |
PoshParser.parsePlan()
FIXME: According to official grammar, plan can consists only from single
competence or action pattern.
|
void |
Sense.parseSense(String input)
TODO: Correctly document, changed in hurry.
|
static Object |
Result.parseValue(String valueString)
Parse string from posh plan and convert it to object.
|
void |
PoshParser.planFirstElement(PoshPlan plan)
[ "("
|
void |
PoshParser.planFirstHalf(PoshPlan plan)
First half of plan rule
|
void |
PoshParser.planSecondHalf(PoshPlan plan)
( "("
|
void |
PoshParser.planSecondHalfElements(PoshPlan plan)
(
|
PrimitiveCall |
PoshParser.senseCall(FormalParameters formalParameters)
SenseCall
sense::
|
void |
PoshParser.sensePredicate(cz.cuni.amis.pogamut.sposh.elements.SenseComponents _senseComp)
predicate ::= PREDICATE
|
List<Sense> |
PoshParser.senses(FormalParameters formalParameters)
Get senses (if there are any) and return them.
|
List<Sense> |
PoshParser.sensesList(FormalParameters formalParameters)
( NAME |
|
Sense |
PoshParser.sensesListElement(FormalParameters formalParameters)
NAME |
|
void |
PoshParser.senseValue(cz.cuni.amis.pogamut.sposh.elements.SenseComponents _senseComp)
value ::= NUMINT | NUMFLOAT | NAME | ENUM_VALUE | NIL
Part of full-sense parsing.
|
SolTime |
PoshParser.time()
time ::=
|
SolTime.TimeUnits |
PoshParser.timeUnit()
time-unit ::= HOURS | MINUTES | SECONDS | NONE
|
List<Sense> |
PoshParser.trigger(FormalParameters formalParameters)
Get list of senses of a trigger.
|
Object |
PoshParser.value() |
FormalParameters.Parameter |
PoshParser.varDeclaration()
varDeclare::
|
| Modifier and Type | Class and Description |
|---|---|
class |
CycleException
When there is a cycle in the posh tree, this exception should be thrown.
|
class |
DuplicateNameException
Thrown when trying to add element into the posh tree, but the tree already
contains element with the same name.
|
class |
InvalidNameException
Thrown when name in the lap plan is not valid (example: it includes
whitespaces).
|
Copyright © 2018 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All rights reserved.