Package io.github.ai4ci.abm
Interface Outbreak
- All Superinterfaces:
Abstraction.Entity
,Abstraction.HistoricalStateProvider<OutbreakHistory>
,Cloneable
,Serializable
- All Known Implementing Classes:
ModifiableOutbreak
@Modifiable
public interface Outbreak
extends Abstraction.Entity, Abstraction.HistoricalStateProvider<OutbreakHistory>, Cloneable
The main outbreak class is a mutable structure holding the state of the whole
simulation, including configuration, social network, etc.
-
Method Summary
Modifier and TypeMethodDescriptionstatic ModifiableOutbreak
default boolean
default Optional<OutbreakHistory>
getPersonById
(int id) default Optional<PersonHistory>
getPersonHistoryByIdAndTime
(int id, int time) org.jgrapht.graph.SimpleWeightedGraph<Person,
SocialRelationship> getUrn()
default int
hash()
default String
print()
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
-
Method Details
-
getUrn
String getUrn()- Specified by:
getUrn
in interfaceAbstraction.Entity
-
getPeople
ThreadSafeArray<Person> getPeople() -
getSetupConfiguration
SetupConfiguration getSetupConfiguration() -
getExecutionConfiguration
ExecutionConfiguration getExecutionConfiguration() -
getBaseline
OutbreakBaseline getBaseline() -
getNextState
Ephemeral<ImmutableOutbreakState.Builder> getNextState() -
getNextHistory
Ephemeral<ImmutableOutbreakHistory.Builder> getNextHistory() -
getStateMachine
StateMachine getStateMachine() -
getCurrentState
OutbreakState getCurrentState() -
getHistory
List<OutbreakHistory> getHistory()- Specified by:
getHistory
in interfaceAbstraction.HistoricalStateProvider<OutbreakHistory>
-
getSocialNetwork
org.jgrapht.graph.SimpleWeightedGraph<Person,SocialRelationship> getSocialNetwork() -
getPersonById
-
hash
@Derived default int hash() -
equality
-
print
-
getCurrentHistory
-
createOutbreakStub
-
getPersonHistoryByIdAndTime
-