java.lang.Object
edu.ntnu.idata1002.prosjekt2021.model.Nurse
public class Nurse
extends java.lang.Object
Represents a nurse with unique id.
-
Constructor Summary
Constructors Constructor Description Nurse(java.lang.String fullName, java.lang.String username, java.lang.String password, javafx.scene.image.Image picture)Creates an instance of nurse. -
Method Summary
Modifier and Type Method Description java.lang.StringgetFullName()Returns this nurses full name.java.lang.StringgetPassword()Returns this nurses password.javafx.scene.image.ImagegetPicture()Returns this nurses profile picture.java.lang.StringgetUsername()Returns this nurses username.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Nurse
public Nurse(java.lang.String fullName, java.lang.String username, java.lang.String password, javafx.scene.image.Image picture)Creates an instance of nurse.- Parameters:
fullName- full name of a nurse.username- unique id of a nurse.password- password for the nurses user.picture- the profile picture of the nurse.
-
-
Method Details
-
getFullName
public java.lang.String getFullName()Returns this nurses full name.- Returns:
- this nurses full name.
-
getUsername
public java.lang.String getUsername()Returns this nurses username.- Returns:
- this nurses username.
-
getPassword
public java.lang.String getPassword()Returns this nurses password.- Returns:
- this nurses password.
-
getPicture
public javafx.scene.image.Image getPicture()Returns this nurses profile picture.- Returns:
- this nurses profile picture.
-