NetworkDefined

@Serializable
@SerialName(value = "NetworkDefined")
data class NetworkDefined(val simTime: Double, val name: String, val nodes: List<NetworkNodeDef> = emptyList(), val edges: List<NetworkEdgeDef> = emptyList()) : AnimationEvent(source)

Defines a network (graph) backdrop with auto-laid-out nodes and weighted edges (G7). Emitted once per replication after the model wires the graph (e.g. in initialize()), since a ksl.modeling.agent.NetworkProjection is non-spatial — node positions are assigned by a layout at snapshot time. Agents are emitted at the same node positions (AgentPositionChanged) so their state colors render on top of the edges.

Constructors

Link copied to clipboard
constructor(simTime: Double, name: String, nodes: List<NetworkNodeDef> = emptyList(), edges: List<NetworkEdgeDef> = emptyList())

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val simTime: Double