646566676869707172
metric = m; } public STRIPSState getSTRIPSInitialState() { STRIPSState s = new STRIPSState(actions, initial, goal); s.setRPG(new RelaxedPlanningGraph(this)); return s; }
5152535455565758
literal = l; } public void apply(State s) { STRIPSState ss = (STRIPSState) s; ss.removeProposition((Proposition) literal); }
4445464748495051
name = p; } public boolean isTrue(State s) // returns whether this conditions is true is State S { STRIPSState ss = (STRIPSState) s; return ss.isTrue(this); }
5051525354555657
return ss.isTrue(this); } public void apply(State s) // carry out the effects of this on State s { STRIPSState ss = (STRIPSState) s; ss.addProposition(this); }