add description in interface

This commit is contained in:
Minh VU
2024-12-20 12:26:21 +01:00
parent 1cb536a785
commit 6a495edaa0
4 changed files with 50 additions and 4 deletions

View File

@@ -7,12 +7,37 @@ public interface Configuration {
* @return true if there is no compatibility issue between PartType else false
*/
boolean isValid();
/*
* @return true if the configuration is valid and done
*/
boolean isComplete();
/*
* @return the list of the PartType in the configuration
*/
Set<PartType> getSelectedParts();
/*
* Select a PartType to add to the configuration
* @param chosenPart : the PartType that we wish to add to the configuration
*/
void selectPart(PartType chosenPart);
/*
* @return the PartType that we chose earlier which has Category we choose
* @param catgeory : Category that we want to know about the PartType can be null
*/
PartType getSelectionForCategory(Category category);
/*
* DeSelect a PartType to delete from the configuration
* @param chosenPart : the PartType that we wish to delete from the configuration
*/
void unselectPartType(Category categoryToClear);
/*
* Remove all PartType from configuation
*/
void clear();
}