GroupWithLeader

interface GroupWithLeader<T, N : Node<T>> : Group<T, N>

A group with a special member acting as a leader.

Functions

Link copied to clipboard
abstract fun addMember(node: N): Group<T, N>

Add a node in this group if not already part of it.

Link copied to clipboard
open fun contains(node: N): Boolean

Whether a node belongs to this group or not.

Link copied to clipboard
abstract fun removeMember(node: N): Group<T, N>

Remove a node from this group.

Properties

Link copied to clipboard
abstract val leader: N

The leader of the group.

Link copied to clipboard
abstract val members: List<N>

The list of pedestrians belonging to this group.

Inheritors

Link copied to clipboard