Package FAtiMA.Core.goals
Class GoalLibrary
java.lang.Object
FAtiMA.Core.goals.GoalLibrary
- All Implemented Interfaces:
Serializable
Stores information about all goals in the domain
- Author:
- Joao Dias
- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
GoalLibrary
Creates a new GoalLibrary- Parameters:
file- - the file that contains the information about goals and that will be parsed- Throws:
GoalLibParsingException- - thrown when there is a parsing error when reading the GoalLibrary file
-
-
Method Details
-
AddGoal
-
GetGoals
Gets a ListIterator that allows you to iterate over the goals stored in the goal's library- Returns:
- a ListIterator over goals
-
GetGoal
Searches for a goal with the given name in the Library. If such goal is found, it is returned.- Returns:
- the searched goal if exists in the GoalLibrary, null otherwise
-