ix.icore.plan.build
Class SimplePlanBuilder
java.lang.Object
ix.icore.plan.build.ExamplePlanBuilder
ix.icore.plan.build.SimplePlanBuilder
- All Implemented Interfaces:
- PlanBuilder
public class SimplePlanBuilder
- extends ExamplePlanBuilder
Plan-construction utility. This class is only a minor
variation on ExamplePlanBuilder
. They have the
same functionality and share most of their methods,
but this class uses a simpler, but less abstract, way
of building issue and activity expansions.
Fields inherited from class ix.icore.plan.build.ExamplePlanBuilder |
activities, annotations, constraints, issueRefinements, issues, itemToSubitems, nameGen, plan, planIssues, planNodes, planRefinements |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimplePlanBuilder
public SimplePlanBuilder()
getPlan
public Plan getPlan()
- Description copied from interface:
PlanBuilder
- Builds everything added so far into a plan and returns that plan.
- Specified by:
getPlan
in interface PlanBuilder
- Overrides:
getPlan
in class ExamplePlanBuilder
walkIssues
protected void walkIssues(java.util.List issues,
java.util.List planIssues,
PlanIssue parent)
buildExpansion
protected void buildExpansion(PlanIssue pi,
java.util.List children)
walkActivities
protected void walkActivities(java.util.List activities,
java.util.List planNodes,
PlanNode parent)
buildExpansion
protected void buildExpansion(PlanNode node,
java.util.List children)
main
public static void main(java.lang.String[] argv)
throws java.lang.Exception
- Main program for testing. Makes a
PlanBuilderTest
and calls PlanBuilderTest.test(PlanBuilder)
on
an instance of SimplePlanBuilder.
- Throws:
java.lang.Exception