is_leader


Description:

public bool is_leader ()

Check if the model is the swarm leader.

This is a convenience function for accessing the peer property and checking if it's the swarm leader.

Parameters:

this

The model to inspect

Returns:

The value of is_swarm_leader for the Peer used by this shared model