All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class designer.Specialist

java.lang.Object
   |
   +----designer.Specialist

public class Specialist
extends Object
implements PlanItem
Purpose: Provides the framework for the Specialist


Constructor Index

 o Specialist(String)
Purpose: Constructor
Pre: none
Post: Specialist initialized

Method Index

 o addDesignPlan(Plan)
Purpose: Creates new instance of a design selector, adds to end of vector
Pre: none
Post: selector created
 o addFinalConstraint(Constraint)
Purpose: Adds a final constraint to the Specialist
Pre: none
Post: constraint added to end of vector
 o addInitialConstraint(Constraint)
Purpose: Adds an initial constraint to the Specialist
Pre: none
Post: constraint added to start of vector
 o addRoughPlan(Plan)
Purpose: Creates new instance of a rough plan, adds to end of vector
Pre: none
Post: selector created
 o execute()
Pre: none
Post: all objects belonging to specialist are run
 o getDesignPlanAt(int)
Purpose: Gets reference to an item in the vector
Pre: index <= vector.size() && index >= 0
Post: rtnval == Plan
 o getFinalConstAt(int)
Purpose: Gets reference to an item in the vector
Pre: index <= vector.size() >= 0
Post: rtnval == Constraint
 o getInitConstAt(int)
Purpose: Gets reference to an item in the vector
Pre: index <= vector.size() && index >= 0
Post: rtnval == Constraint
 o getName()
Purpose: Returns name of Specialist
Pre: none
Post: returns name of Specialist
 o getRoughPlanAt(int)
Purpose: Gets reference to an item in the vector
Pre: index <= vector.size() >=0
Post: rtnval == Plan
 o insertDesignPlanAt(int, Plan)
Purpose: Inserts existing plan at index
Pre: index <= Vector.size()
Post: Plan added to Vector
 o insertFinalConstraintAt(int, Constraint)
Purpose: Inserts existing constraint at index
Pre: index <= Vector.size()
Post: Plan added to Vector
 o insertInitConstraintAt(int, Constraint)
Purpose: Inserts existing constraint at index
Pre: index <= Vector.size()
Post: Plan added to Vector
 o insertRoughPlanAt(int, Plan)
Purpose: Inserts existing plan at index
Pre: index <= Vector.size()
Post: Plan added to Vector
 o removeDesignPlan(String)
remove a plan from the vector by its name
PRE: itemToRemoveName matchs name of an object in stepList
POST: vector does not include step with name itemToRemoveName
 o removeDesignPlanAt(int)
remove a step from vector by its index
PRE: 0 <= index < stepList.length
POST: _designPlanList does not include step previously at index .
 o removeFinalConstraint(String)
remove a constraint from the vector by its name
PRE: itemToRemoveName matchs name of an object in stepList
POST: vector does not include step with name itemToRemoveName
 o removeFinalConstraintAt(int)
remove a constraint from vector by its index
PRE: 0 <= index < stepList.length
POST: _finalConsttList does not include step previously at index .
 o removeInitConstraint(String)
remove a constraint from the vector by its name
PRE: itemToRemoveName matchs name of an object in stepList
POST: vector does not include step with name itemToRemoveName
 o removeInitConstraintAt(int)
remove a constraint from vector by its index
PRE: 0 <= index < stepList.length
POST: _initConsttList does not include step previously at index .
 o removeRoughPlan(String)
remove a plan from the vector by its name
PRE: itemToRemoveName matchs name of an object in stepList
POST: vector does not include step with name itemToRemoveName
 o removeRoughPlanAt(int)
remove a step from vector by its index
PRE: 0 <= index < stepList.length
POST: _roughPlanList does not include step previously at index .
 o setFinalConstList(Vector)
Purpose: Set the final constraint list to the passed list
Pre: none
Post: Constraint List set
 o setFinePlanList(Vector)
Purpose: Set the Final plan list to the passed list
Pre: none
Post: Final plan List set
 o setFineSelector(Selector)
Purpose: Set the Final Selector to the passed list
Pre: none
Post: Final Selector set
 o setInitConstList(Vector)
Purpose: Set the constraint list to the passed list
Pre: none
Post: Constraint List set
 o setRoughPlanList(Vector)
Purpose: Set the rough plan list to the passed list
Pre: none
Post: Rough plan List set
 o setRoughSelector(Selector)
Purpose: Set the Rough Selelctor to the passed list
Pre: none
Post: Rough Selector set

Constructors

 o Specialist
 public Specialist(String name)
Purpose: Constructor
Pre: none
Post: Specialist initialized

Methods

 o execute
 public boolean execute()
Pre: none
Post: all objects belonging to specialist are run

 o addDesignPlan
 public boolean addDesignPlan(Plan plan)
Purpose: Creates new instance of a design selector, adds to end of vector
Pre: none
Post: selector created

 o addRoughPlan
 public boolean addRoughPlan(Plan plan)
Purpose: Creates new instance of a rough plan, adds to end of vector
Pre: none
Post: selector created

 o addInitialConstraint
 public boolean addInitialConstraint(Constraint constraint)
Purpose: Adds an initial constraint to the Specialist
Pre: none
Post: constraint added to start of vector

 o addFinalConstraint
 public boolean addFinalConstraint(Constraint constraint)
Purpose: Adds a final constraint to the Specialist
Pre: none
Post: constraint added to end of vector

 o insertRoughPlanAt
 public boolean insertRoughPlanAt(int index,
                                  Plan plan)
Purpose: Inserts existing plan at index
Pre: index <= Vector.size()
Post: Plan added to Vector

 o insertDesignPlanAt
 public boolean insertDesignPlanAt(int index,
                                   Plan plan)
Purpose: Inserts existing plan at index
Pre: index <= Vector.size()
Post: Plan added to Vector

 o insertInitConstraintAt
 public boolean insertInitConstraintAt(int index,
                                       Constraint c)
Purpose: Inserts existing constraint at index
Pre: index <= Vector.size()
Post: Plan added to Vector

 o insertFinalConstraintAt
 public boolean insertFinalConstraintAt(int index,
                                        Constraint c)
Purpose: Inserts existing constraint at index
Pre: index <= Vector.size()
Post: Plan added to Vector

 o removeRoughPlan
 public boolean removeRoughPlan(String itemToRemoveName)
remove a plan from the vector by its name
PRE: itemToRemoveName matchs name of an object in stepList
POST: vector does not include step with name itemToRemoveName

Parameters:
itemToRemove - object in vector to be removed.
Returns:
true if successful false if failed.
 o removeDesignPlan
 public boolean removeDesignPlan(String itemToRemoveName)
remove a plan from the vector by its name
PRE: itemToRemoveName matchs name of an object in stepList
POST: vector does not include step with name itemToRemoveName

Parameters:
itemToRemove - object in vector to be removed.
Returns:
true if successful false if failed.
 o removeInitConstraint
 public boolean removeInitConstraint(String itemToRemoveName)
remove a constraint from the vector by its name
PRE: itemToRemoveName matchs name of an object in stepList
POST: vector does not include step with name itemToRemoveName

Parameters:
itemToRemove - object in vector to be removed.
Returns:
true if successful false if failed.
 o removeFinalConstraint
 public boolean removeFinalConstraint(String itemToRemoveName)
remove a constraint from the vector by its name
PRE: itemToRemoveName matchs name of an object in stepList
POST: vector does not include step with name itemToRemoveName

Parameters:
itemToRemove - object in vector to be removed.
Returns:
true if successful false if failed.
 o removeRoughPlanAt
 public boolean removeRoughPlanAt(int index)
remove a step from vector by its index
PRE: 0 <= index < stepList.length
POST: _roughPlanList does not include step previously at index .

Parameters:
stepToRemove - object in stepList to be removed.
Returns:
true if successful false if failed.
 o removeDesignPlanAt
 public boolean removeDesignPlanAt(int index)
remove a step from vector by its index
PRE: 0 <= index < stepList.length
POST: _designPlanList does not include step previously at index .

Parameters:
stepToRemove - object in stepList to be removed.
Returns:
true if successful false if failed.
 o removeInitConstraintAt
 public boolean removeInitConstraintAt(int index)
remove a constraint from vector by its index
PRE: 0 <= index < stepList.length
POST: _initConsttList does not include step previously at index .

Parameters:
stepToRemove - object in stepList to be removed.
Returns:
true if successful false if failed.
 o removeFinalConstraintAt
 public boolean removeFinalConstraintAt(int index)
remove a constraint from vector by its index
PRE: 0 <= index < stepList.length
POST: _finalConsttList does not include step previously at index .

Parameters:
stepToRemove - object in stepList to be removed.
Returns:
true if successful false if failed.
 o getRoughPlanAt
 public Plan getRoughPlanAt(int index)
Purpose: Gets reference to an item in the vector
Pre: index <= vector.size() >=0
Post: rtnval == Plan

 o getDesignPlanAt
 public Plan getDesignPlanAt(int index)
Purpose: Gets reference to an item in the vector
Pre: index <= vector.size() && index >= 0
Post: rtnval == Plan

 o getInitConstAt
 public Constraint getInitConstAt(int index)
Purpose: Gets reference to an item in the vector
Pre: index <= vector.size() && index >= 0
Post: rtnval == Constraint

 o getFinalConstAt
 public Constraint getFinalConstAt(int index)
Purpose: Gets reference to an item in the vector
Pre: index <= vector.size() >= 0
Post: rtnval == Constraint

 o getName
 public String getName()
Purpose: Returns name of Specialist
Pre: none
Post: returns name of Specialist

 o setInitConstList
 public void setInitConstList(Vector list)
Purpose: Set the constraint list to the passed list
Pre: none
Post: Constraint List set

 o setFinalConstList
 public void setFinalConstList(Vector list)
Purpose: Set the final constraint list to the passed list
Pre: none
Post: Constraint List set

 o setRoughPlanList
 public void setRoughPlanList(Vector list)
Purpose: Set the rough plan list to the passed list
Pre: none
Post: Rough plan List set

 o setFinePlanList
 public void setFinePlanList(Vector list)
Purpose: Set the Final plan list to the passed list
Pre: none
Post: Final plan List set

 o setRoughSelector
 public void setRoughSelector(Selector sel)
Purpose: Set the Rough Selelctor to the passed list
Pre: none
Post: Rough Selector set

 o setFineSelector
 public void setFineSelector(Selector sel)
Purpose: Set the Final Selector to the passed list
Pre: none
Post: Final Selector set


All Packages  Class Hierarchy  This Package  Previous  Next  Index