|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ix.iplan.DomainAnalyser
public class DomainAnalyser
Analyses a Domain.
This class is based on parts of O-Plan.
Nested Class Summary | |
---|---|
(package private) class |
DomainAnalyser.MinFullExpandFinder
|
Field Summary | |
---|---|
protected Domain |
domain
|
protected boolean |
domainHasChanged
|
protected DomainAnalyser.MinFullExpandFinder |
minFullExpandFinder
|
protected java.util.Map |
minFullExpandSizeCache
|
protected DirectedGraph |
possibleConditionsTable
|
protected DirectedGraph |
possibleConstraintsTable
|
protected DirectedGraph |
possibleEffectsTable
|
protected java.util.Map |
possibleUseForEffectsCache
|
protected DirectedGraph |
possibleUseForEffectsTable
|
protected DirectedGraph |
refinementToDirectSuccessors
|
protected DirectedGraph |
refinementToReachableRefinements
|
protected boolean |
useConditionTypes
|
Constructor Summary | |
---|---|
DomainAnalyser(Domain domain)
Make an analyser for a domain. |
Method Summary | |
---|---|
void |
analyse()
Construct tables of derived information. |
void |
analyseIfNeeded()
|
(package private) void |
askForConditionsLoop()
|
(package private) void |
askForEffectsLoop()
|
(package private) void |
askLoop(java.lang.String resultDescr,
Function1 f)
|
protected DirectedGraph |
buildRefinementSuccessorTable()
|
protected java.util.Set |
computePossibleConditions(LList pattern)
|
protected java.util.Set |
computePossibleConditions(PatternAssignment pv)
|
protected java.util.Set |
computePossibleConstraints(LList pattern)
|
protected java.util.Set |
computePossibleEffects(LList pattern)
|
protected java.util.Set |
computePossibleEffects(PatternAssignment pv)
|
protected java.util.Set |
computePossibleUseForEffects(LList pattern)
|
protected java.util.Set |
directSuccessors(Refinement r)
|
long |
getMinFullExpandSize(LList pattern)
|
long |
getMinFullExpandSize(PatternAssignment pv)
|
java.util.Set |
getPossibleConditions(LList pattern)
|
java.util.Set |
getPossibleConditions(PatternAssignment pv)
|
java.util.Set |
getPossibleConstraints(LList pattern)
|
java.util.Set |
getPossibleEffects(LList pattern)
|
java.util.Set |
getPossibleEffects(PatternAssignment pv)
|
java.util.Set |
getPossibleTopLevelConditions(LList pattern)
|
java.util.Set |
getPossibleTopLevelConstraints(LList pattern)
|
java.util.Set |
getPossibleTopLevelEffects(LList pattern)
|
java.util.Set |
getPossibleUseForEffects(LList pattern)
|
DirectedGraph |
getUnexpandableNodes()
|
boolean |
haveCommonPatterns(java.util.Collection pvs1,
java.util.Collection pvs2)
|
static void |
main(java.lang.String[] argv)
Test program. |
static boolean |
match(java.lang.Object pat,
java.lang.Object dat)
Simple pattern-matcher that treats all variables as wildcards. |
boolean |
mightSatisfy(PatternAssignment cond,
java.util.Collection effects)
|
boolean |
mightSatisfy(PatternAssignment cond,
PatternAssignment effect)
|
(package private) static void |
printCollection(java.lang.String label,
java.util.Collection c)
|
(package private) static void |
printGraph(java.lang.String label,
DirectedGraph g)
|
java.util.Set<Refinement> |
refinementsExpandingPattern(LList pattern)
|
java.util.Set |
refinementsForCondition(PatternAssignment pv)
|
protected void |
reset()
|
(package private) static java.util.List |
sortCollection(java.util.Collection c)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Domain domain
protected boolean domainHasChanged
protected boolean useConditionTypes
protected DirectedGraph refinementToDirectSuccessors
protected DirectedGraph refinementToReachableRefinements
protected DirectedGraph possibleConditionsTable
protected DirectedGraph possibleEffectsTable
protected DirectedGraph possibleUseForEffectsTable
protected DirectedGraph possibleConstraintsTable
protected DomainAnalyser.MinFullExpandFinder minFullExpandFinder
protected java.util.Map possibleUseForEffectsCache
protected java.util.Map minFullExpandSizeCache
Constructor Detail |
---|
public DomainAnalyser(Domain domain)
Method Detail |
---|
public void analyseIfNeeded()
protected void reset()
public void analyse()
public java.util.Set getPossibleConditions(LList pattern)
protected java.util.Set computePossibleConditions(LList pattern)
public java.util.Set getPossibleConditions(PatternAssignment pv)
protected java.util.Set computePossibleConditions(PatternAssignment pv)
public java.util.Set getPossibleTopLevelConditions(LList pattern)
public java.util.Set getPossibleEffects(LList pattern)
protected java.util.Set computePossibleEffects(LList pattern)
public java.util.Set getPossibleEffects(PatternAssignment pv)
protected java.util.Set computePossibleEffects(PatternAssignment pv)
public java.util.Set getPossibleTopLevelEffects(LList pattern)
public java.util.Set getPossibleUseForEffects(LList pattern)
protected java.util.Set computePossibleUseForEffects(LList pattern)
public java.util.Set getPossibleConstraints(LList pattern)
protected java.util.Set computePossibleConstraints(LList pattern)
public java.util.Set getPossibleTopLevelConstraints(LList pattern)
public long getMinFullExpandSize(LList pattern)
public long getMinFullExpandSize(PatternAssignment pv)
public DirectedGraph getUnexpandableNodes()
protected DirectedGraph buildRefinementSuccessorTable()
protected java.util.Set directSuccessors(Refinement r)
public java.util.Set<Refinement> refinementsExpandingPattern(LList pattern)
public java.util.Set refinementsForCondition(PatternAssignment pv)
public boolean haveCommonPatterns(java.util.Collection pvs1, java.util.Collection pvs2)
public boolean mightSatisfy(PatternAssignment cond, PatternAssignment effect)
public boolean mightSatisfy(PatternAssignment cond, java.util.Collection effects)
public static boolean match(java.lang.Object pat, java.lang.Object dat)
public static void main(java.lang.String[] argv)
void askForConditionsLoop()
void askForEffectsLoop()
void askLoop(java.lang.String resultDescr, Function1 f)
static void printGraph(java.lang.String label, DirectedGraph g)
static void printCollection(java.lang.String label, java.util.Collection c)
static java.util.List sortCollection(java.util.Collection c)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |