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