Package io.github.ai4ci.abm
Class Person
java.lang.Object
io.github.ai4ci.abm.Person
- All Implemented Interfaces:
Abstraction.Entity
,Abstraction.HistoricalStateProvider<PersonHistory>
,Serializable
- Direct Known Subclasses:
ModifiablePerson
@Modifiable
public abstract class Person
extends Object
implements Abstraction.Entity, Abstraction.HistoricalStateProvider<PersonHistory>
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ModifiablePerson
createPersonStub
(Outbreak outbreak) Creates a new person and adds them into the outbreak network.final boolean
abstract PersonBaseline
Gets the first history item unless there is no history.abstract PersonState
abstract PersonDemographic
long[]
abstract List<PersonHistory>
abstract Integer
getId()
abstract Ephemeral<ImmutablePersonHistory.Builder>
abstract Ephemeral<ImmutablePersonState.Builder>
abstract Outbreak
abstract StateMachine
getUrn()
final int
hashCode()
toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface io.github.ai4ci.abm.mechanics.Abstraction.Entity
getExperimentName, getExperimentReplica, getModelName, getModelReplica
Methods inherited from interface io.github.ai4ci.abm.mechanics.Abstraction.HistoricalStateProvider
getHistory, getHistoryEntry
-
Constructor Details
-
Person
public Person()
-
-
Method Details
-
createPersonStub
Creates a new person and adds them into the outbreak network. -
getUrn
- Specified by:
getUrn
in interfaceAbstraction.Entity
-
getId
-
getOutbreak
-
getBaseline
-
getCurrentState
-
getDemographic
-
getNextState
-
getNextHistory
-
getStateMachine
-
getHistory
- Specified by:
getHistory
in interfaceAbstraction.HistoricalStateProvider<PersonHistory>
-
getHilbertCoordinates
public long[] getHilbertCoordinates() -
getCurrentHistory
Gets the first history item unless there is no history. If called during update cycle this will get the history at the same time as the current state. If called after it will be the previous day. -
hashCode
public final int hashCode() -
equals
-
toString
-