Package scheduler.model
Class Type
- java.lang.Object
-
- scheduler.model.Type
-
public class Type extends java.lang.Object
Class to manage a "Type" object
-
-
Field Summary
Fields Modifier and Type Field Description private static javafx.collections.ObservableList<java.lang.String>
AppointmentTypes
private int
numberOfOccurences
private java.lang.String
typeDescription
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getNumberOfOccurences()
Get number of occurences of a typejava.lang.String
getTypeDescription()
Return type descriptionstatic javafx.collections.ObservableList<java.lang.String>
returnTypes()
Return a list of typesvoid
setNumberOfOccurences(int numberOfOccurences)
Set number of occurences of a typevoid
setTypeDescription(java.lang.String typeDescription)
Set type descriptionjava.lang.String
toString()
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:
toString
in 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.
-
-