Package scheduler.model
Class Type
- java.lang.Object
-
- scheduler.model.Type
-
public class Type extends java.lang.ObjectClass to manage a "Type" object
-
-
Field Summary
Fields Modifier and Type Field Description private static javafx.collections.ObservableList<java.lang.String>AppointmentTypesprivate intnumberOfOccurencesprivate java.lang.StringtypeDescription
-
Method Summary
All 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
-
Type
public Type()
Constructor for a null object
-
Type
public Type(int numberOfOccurences, java.lang.String typeDescription)Constructor to create a type object- Parameters:
numberOfOccurences- Number of occurences of the "type" of appointmenttypeDescription- A String of the types description
-
-
Method Detail
-
toString
public java.lang.String toString()
Overriding .toString() to return the String representing the type- Overrides:
toStringin classjava.lang.Object- Returns:
- the type as a human readable string
-
getTypeDescription
public java.lang.String getTypeDescription()
Return type description- Returns:
-
setTypeDescription
public void setTypeDescription(java.lang.String typeDescription)
Set type description- Parameters:
typeDescription-
-
getNumberOfOccurences
public int getNumberOfOccurences()
Get number of occurences of a type- Returns:
-
setNumberOfOccurences
public void setNumberOfOccurences(int numberOfOccurences)
Set number of occurences of a type- Parameters:
numberOfOccurences-
-
returnTypes
public static javafx.collections.ObservableList<java.lang.String> returnTypes()
Return a list of types- Returns:
- Observable list of Types - Strings.
-
-