Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V0.4 Milestone #92

Merged
merged 68 commits into from
Oct 26, 2016
Merged

V0.4 Milestone #92

merged 68 commits into from
Oct 26, 2016

Conversation

qhng
Copy link

@qhng qhng commented Oct 26, 2016

No description provided.

qhng and others added 30 commits October 21, 2016 18:44
…hods to not reset parameter.

Add AliasCommandParser
Add skeleton methods addPreprocessorSymbol and removePreprocessorSymbol in LogicManager to prepare for future alias implementation
Update ParserTest to conduct unit test on AliasCommandParser
Add setLogic() method in Command abstract class
Add LogicRequiringCommand and ModelRequiringCommand abstract classes to provide a way to get access to logic and model dependencies
Refactor *Command classes to inherit from ModelRequiringCommand and LogicRequiringCommand whereas before that they inherit directly from Command to gain dependencies.
…icManager

Modify AliasCommand to prepare for its implementation
Add preprocessing handling methods in MasterParser
Add AliasSymbolList as the collection class for storing AliasSymbol
Add DuplicateSymbolKeywordException, SymbolKeywordNotFoundException class for errors when using AliasSymbolList add and remove method
Add AliasSymbolChangedEvent for notifying observers that alias symbol has been added or removed
Add XmlAdaptedAliasSymbol which is used for serialization and deserialization of AliasSymbol
Modify SavvyTasker class to provide methods to add and remove AliasSymbol data into internal AliasSymbolList
Modify ReadOnlySavyTasker to provide methods for accessing AliasSymbolList
Modify Model interface and ModelManager class to provide methods to add and remove AliasSymbol data as well as raise AliasSymbolChangedEvent
Modify XmlSerializableSavvyTasker to be capable of being stored/loaded to for AliasSymbol data
Modify Logic interface to no longer expose AliasSymbol handling methods and undo/redo functionality - Changes should be communicated through events
Modify LogicManager to subscribe to AliasSymbolChangedEvent to handle adding and removal of AliasSymbols and removed previous addPreprocessSymbol and removePreprocessSymbol methods
Implement LogicManager.loadAllAliasSymbols() to add externally loaded symbols (from the storage) into the parser during construction stage
Implement AliasCommand.execute() to work properly
Refactor AliasCommandModel and AliasCommandParser to use consistent naming of AliasSymbol components
Fix XmlAdaptedTask showing wrong comment
Remove LogicRequiringModel class - now AliasSymbol changes are communicated through events rather than directly through LogicRequiringModel dependency
Implement UnaliasCommand.execute() to execute unalias command
Refactor UnaliasCommandModel to use consistent naming
Refactor AliasCommand to use consistent naming
Modify ParserTest to also test UnaliasCommandParser
Update UserGuide.md to reflect changes in alias and unalias command
…ying of ability of parsing a command

Add dependency from AliasCommand to Logic
Add checking in AliasCommand.execute() to prevent using command headers as aliasing keyword
Update MasterParser.parse() to enable aliasing
Update AliasCommandParser and UnaliasCommandParser to turn off aliasing
Modify ParserTest to test using MasterParser instead of individual parser.
Modify ParserTest to conduct parameterized testing.
…egistration fails, and to reject any parser with the same header as existing AliasSymbol keyword

Rollback ParserTest and separated MasterParser test into its own test case
Organised imports for all classes
qhng and others added 28 commits October 26, 2016 14:36
Previous commit did not go through for some weird reason
@coveralls
Copy link

Coverage Status

Coverage increased (+1.01%) to 70.95% when pulling 826ec60 on V0.4 into 6646444 on master.

@qhng qhng merged commit 56c40d7 into master Oct 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants