gabm.abm.democracy.elections.uk.general_election module

UK General Election module for GABM.

class gabm.abm.democracy.elections.uk.general_election.UKGE(election_id: ElectionID, date: date, description: str = None)

Bases: Election

UK General Election (UKGE) class, inheriting from the base Election class.

A UK General Election is a specific type of election that takes place in the United Kingdom. It is held to elect Members of Parliament (MPs) to the House of Commons, which is the lower house of the UK Parliament. The election typically occurs every five years, although it can be called earlier under certain circumstances.

Note

Inherits all attributes and methods from Election.

Attributes:
date (date):

Date of the election.

class gabm.abm.democracy.elections.uk.general_election.UKGEVote(vote_id: UKGEVoteID, election_id: ElectionID, voter_id: CitizenID = None, candidate_id: CitizenID = None)

Bases: Vote

UK General Election Vote.

A UK General Election Vote is a specific type of vote that takes place during a UK General Election. It is cast by a voter to elect a candidate to represent their constituency in the House of Commons. Each voter typically votes for one candidate in their constituency, and the candidate with the most votes in each constituency wins a seat in the House of Commons.

Note

Inherits all attributes and methods from Vote.

Attributes:
candidate_id (str):

Identifier for the candidate being voted for.

class gabm.abm.democracy.elections.uk.general_election.UKGEVoteID(vote_id: int)

Bases: VoteID

UK General Election Vote ID.