Package humanresources
Class Values
java.lang.Object
humanresources.Values
Estrutura com capacidade de armazenar o estado de uma entidade Valores
Fixados
-
Constructor Summary
ConstructorDescriptionValues
(double workdayValue, double kilometerValue, double salesPercentage, int maxWorkDays) Construtor da classe Values -
Method Summary
Modifier and TypeMethodDescriptiondouble
Método seletor do atributo foodAllowancedouble
Método seletor do atributo kilometerValuedouble
Método seletor do atributo maxWorkDaysdouble
Método seletor do atributo salesPercentagedouble
Método seletor do atributo seniorityAwarddouble
Método seletor do atributo workDayValuevoid
setKilometerValue
(double kilometerValue) Método modificador do atributo kilometerValuevoid
setMaxWorkDays
(double maxWorkDays) Método modificador do atributo maxWorkDaysvoid
setSalesPercentage
(double salesPercentage) Método modificador do atributo salesPercentagevoid
setWorkDayValue
(double workdayValue) Método modificador do atributo workdayValue
-
Constructor Details
-
Values
public Values(double workdayValue, double kilometerValue, double salesPercentage, int maxWorkDays) Construtor da classe Values- Parameters:
workdayValue
- Valor por dias de trabalhokilometerValue
- Valor por quilómetrosalesPercentage
- Percentagem de vendasmaxWorkDays
- Máximo de dias trabalhados por um empregado
-
-
Method Details
-
getWorkdayValue
public double getWorkdayValue()Método seletor do atributo workDayValue- Returns:
- Valor do atributo workDayValue
-
getFoodAllowance
public double getFoodAllowance()Método seletor do atributo foodAllowance- Returns:
- Valor do atributo foodAllowance
-
getSeniorityAward
public double getSeniorityAward()Método seletor do atributo seniorityAward- Returns:
- Valor do atributo seniorityAward
-
getKilometerValue
public double getKilometerValue()Método seletor do atributo kilometerValue- Returns:
- Valor do atributo kilometerValue
-
getSalesPercentage
public double getSalesPercentage()Método seletor do atributo salesPercentage- Returns:
- Valor do atributo salesPercentage
-
getMaxWorkDays
public double getMaxWorkDays()Método seletor do atributo maxWorkDays- Returns:
- Valor do atributo maxWrorkDay
-
setWorkDayValue
public void setWorkDayValue(double workdayValue) Método modificador do atributo workdayValue- Parameters:
workdayValue
- Novo valor a tribuir
-
setKilometerValue
public void setKilometerValue(double kilometerValue) Método modificador do atributo kilometerValue- Parameters:
kilometerValue
- Novo valor a atribuir
-
setSalesPercentage
public void setSalesPercentage(double salesPercentage) Método modificador do atributo salesPercentage- Parameters:
salesPercentage
- Novo valor a atribuir
-
setMaxWorkDays
public void setMaxWorkDays(double maxWorkDays) Método modificador do atributo maxWorkDays- Parameters:
maxWorkDays
- Novo valor a atribuir
-