Package scheduler.model
Class Type
- java.lang.Object
- 
- scheduler.model.Type
 
- 
 public class Type extends java.lang.ObjectClass to manage a "Type" object
- 
- 
Field SummaryFields Modifier and Type Field Description private static javafx.collections.ObservableList<java.lang.String>AppointmentTypesprivate intnumberOfOccurencesprivate java.lang.StringtypeDescription
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetNumberOfOccurences()Get number of occurences of a typejava.lang.StringgetTypeDescription()Return type descriptionstatic javafx.collections.ObservableList<java.lang.String>returnTypes()Return a list of typesvoidsetNumberOfOccurences(int numberOfOccurences)Set number of occurences of a typevoidsetTypeDescription(java.lang.String typeDescription)Set type descriptionjava.lang.StringtoString()Overriding .toString() to return the String representing the type
 
- 
- 
- 
Constructor Detail- 
Typepublic Type() Constructor for a null object
 - 
Typepublic Type(int numberOfOccurences, java.lang.String typeDescription)Constructor to create a type object- Parameters:
- numberOfOccurences- Number of occurences of the "type" of appointment
- typeDescription- A String of the types description
 
 
- 
 - 
Method Detail- 
toStringpublic java.lang.String toString() Overriding .toString() to return the String representing the type- Overrides:
- toStringin class- java.lang.Object
- Returns:
- the type as a human readable string
 
 - 
getTypeDescriptionpublic java.lang.String getTypeDescription() Return type description- Returns:
 
 - 
setTypeDescriptionpublic void setTypeDescription(java.lang.String typeDescription) Set type description- Parameters:
- typeDescription-
 
 - 
getNumberOfOccurencespublic int getNumberOfOccurences() Get number of occurences of a type- Returns:
 
 - 
setNumberOfOccurencespublic void setNumberOfOccurences(int numberOfOccurences) Set number of occurences of a type- Parameters:
- numberOfOccurences-
 
 - 
returnTypespublic static javafx.collections.ObservableList<java.lang.String> returnTypes() Return a list of types- Returns:
- Observable list of Types - Strings.
 
 
- 
 
-