IPerson, ISailors, ISailorStatepublic class SailorsState extends java.lang.Object implements ISailorState
| Constructor | Description |
|---|---|
SailorsState() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
fire() |
Fire a single sailor.
|
int |
getNumberOfSailors() |
Retrieve the numbers of sailors present
|
void |
hire() |
Hire a single sailor.
|
boolean |
isPresent() |
Indicates if sailors are present
|
javafx.beans.property.IntegerProperty |
numberOfSailorsProperty() |
|
void |
setNumberOfSailors(int number) |
Set the number of sailors
|
public int getNumberOfSailors()
ISailorsgetNumberOfSailors in interface ISailorspublic void setNumberOfSailors(int number)
ISailorStatesetNumberOfSailors in interface ISailorStatepublic void hire()
ISailorStatehire in interface ISailorStatepublic javafx.beans.property.IntegerProperty numberOfSailorsProperty()
numberOfSailorsProperty in interface ISailorStatepublic void fire()
ISailorStatefire in interface ISailorStateCopyright © 2011-2018 Sahits GmbH. All Rights Reserved.