V
- the type of nodes of this networkpublic interface NetworkOfActivatables<V extends Activatable>
social network
of activatable actors
.
Such networks are usable for simulations of activation processes such as
the spread of infections or of marketing trends in societies.
This interface must be implemented by networks that are to be
visualized by the GraphViewer
class.Modifier and Type | Method and Description |
---|---|
boolean |
isActive()
Returns at least one of the nodes has been active during the history
of this network.
|
HashSet<V> |
nextActivationStep(HashSet<V> activeGeneration)
Returns the nodes activated by the specified active generation of nodes
in this network, after a single activation step.
|
HashSet<V> |
runActivation(HashSet<V> initiators)
Returns the active nodes finally activated by the specified active initiators
in this network.
|
void |
setActive(boolean active)
Sets this network as active, i.e., it has had at least one of its nodes
been active during the history of this network.
|
boolean isActive()
void setActive(boolean active)
active
- true if and only if a node of this network has been activeHashSet<V> runActivation(HashSet<V> initiators)
initiators
- an array of activated nodes of this network.
This methods marks each of them as active.HashSet<V> nextActivationStep(HashSet<V> activeGeneration)
activeGeneration
- a list of activated nodes of this network.
This methods marks each of them as active.