Class Demeanor
- java.lang.Object
-
- edu.cnm.deepdive.viral.model.entity.Demeanor
-
- Direct Known Subclasses:
DemeanorWithActions
public class Demeanor extends Object
-
-
Constructor Summary
Constructors Constructor Description Demeanor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
Verifies if one demeanor object equals another.long
getId()
Gets the ID of a demeanor.int
getInfectionMax()
Gets the maximum infection level for a demeanor.int
getInfectionMin()
Gets the minimum infection level for a demeanor.String
getName()
Gets the name of the demeanor.int
hashCode()
void
setId(long id)
Sets the ID of a demeanor.void
setInfectionMax(int infectionMax)
Sets the maximum infection level for a demeanor.void
setInfectionMin(int infectionMin)
Sets the minimum infection level for a demeanor.void
setName(String name)
Sets the name of the demeanor.
-
-
-
Method Detail
-
getId
public long getId()
Gets the ID of a demeanor.- Returns:
- The ID.
-
setId
public void setId(long id)
Sets the ID of a demeanor.- Parameters:
id
- The new ID.
-
getName
public String getName()
Gets the name of the demeanor.- Returns:
- The name of the demeanor.
-
setName
public void setName(String name)
Sets the name of the demeanor.- Parameters:
name
- The new name of the demeanor.
-
getInfectionMin
public int getInfectionMin()
Gets the minimum infection level for a demeanor.- Returns:
- The minimum infection level for a demeanor.
-
setInfectionMin
public void setInfectionMin(int infectionMin)
Sets the minimum infection level for a demeanor.- Parameters:
infectionMin
- The new minimum infection level for a demeanor.
-
getInfectionMax
public int getInfectionMax()
Gets the maximum infection level for a demeanor.- Returns:
- The maximum infection level for a demeanor.
-
setInfectionMax
public void setInfectionMax(int infectionMax)
Sets the maximum infection level for a demeanor.- Parameters:
infectionMax
- The new maximum infection level for a demeanor.
-
-