ai.planning
Interface SequentialPlan<A>

Type Parameters:
A - the class for atomic elements in a state
All Superinterfaces:
Plan<A>
All Known Implementing Classes:
SequentialPlan, SequentialPlan

public interface SequentialPlan<A>
extends Plan<A>

This class class represents a SequentialPlan which is simply a sequence of Actions. Note that all Actions are totally ordered with respect to each other.

Author:
Gerhard Wickler

Method Summary
 void concatenate(SequentialPlan<A> plan)
           This function can be used to concatenate two plans.
 java.util.List<Action<A>> getActionSequence()
           This function returns the List of Actions that constitute this SequentialPlan.
 int length()
           This function returns the current length of this SequentialPlan.
 
Methods inherited from interface ai.planning.Plan
applyIn, asSequentialPlan, getDomain, solves
 

Method Detail

getActionSequence

java.util.List<Action<A>> getActionSequence()

This function returns the List of Actions that constitute this SequentialPlan.

Returns:
the Action sequence that defines this SequentialPlan

concatenate

void concatenate(SequentialPlan<A> plan)

This function can be used to concatenate two plans. The result is a SequentialPlan that contains first this plan as its prefix and the given plan as its suffix. The length of the resulting plan will be the sum of the lengths of the two input plans.

Parameters:
plan - the plan that will be appended to this SequentialPlan

length

int length()

This function returns the current length of this SequentialPlan.

Returns:
the number of Actions in this SequentialPlan