CitySim Docs
Fall 2026
API

# Occupied

o1.city.Occupied
final class Occupied(val `label`: Color) extends Demographic

An `Occupied` object signals that a household belongs to a demographic specific by the color label stored within the `Occupied` object. For instance, a residence may be “occupied by the red demographic”, or “occupied by the blue demographic”.

An `Occupied` object is immutable

## Parameters

label

  a color that distinguishes the occupying demographic from others

## Attributes

Graph
Supertypes
  trait Demographic
  class Object
  trait Matchable
  class Any

## Members list

### Value members

#### Concrete methods

override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

## Attributes

Returns

  a string representation of the object.

Definition Classes
  Any

#### Concrete fields

val label: Color