Package FAtiMA.Core.goals
Class GoalLibrary
- java.lang.Object
-
- FAtiMA.Core.goals.GoalLibrary
-
- All Implemented Interfaces:
java.io.Serializable
public class GoalLibrary extends java.lang.Object implements java.io.SerializableStores information about all goals in the domain- Author:
- Joao Dias
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GoalLibrary(java.lang.String file)Creates a new GoalLibrary
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidAddGoal(Goal g)GoalGetGoal(Name goalName)Searches for a goal with the given name in the Library.java.util.ListIterator<Goal>GetGoals()Gets a ListIterator that allows you to iterate over the goals stored in the goal's library
-
-
-
Constructor Detail
-
GoalLibrary
public GoalLibrary(java.lang.String file) throws GoalLibParsingExceptionCreates 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
-
-