CitySim Docs
Fall 2025
API

# SimulatorApp

o1.city.gui.SimulatorApp
object SimulatorApp extends App

The singleton object `SimulatorApp` represents an application that runs simulations based on Schelling’s model of emergent social segregation. The application appears in a GUI window and provides controls for adjusting simulation settings.

NOTE TO STUDENTS: In this course, you don’t need to understand how this object works on the inside. It’s enough to know that you can use this file to start the program.

## Attributes

Graph
Supertypes
  trait App
  trait DelayedInit
  class Object
  trait Matchable
  class Any
Self type
  SimulatorApp.type

## Members list

### Value members

#### Inherited methods

final protected def args: Array[String]

## Attributes

Inherited from:
  App

final def main(args: Array[String]): Unit

## Attributes

Inherited from:
  App

#### Deprecated and Inherited methods

override def delayedInit(body: => Unit): Unit

## Attributes

Deprecated
  `[Since version 2.11.0]` the delayedInit mechanism will disappear
Definition Classes
  App -> DelayedInit
Inherited from:
  App

#### Concrete fields

val PixelsPerSquare: Int
val SizeInSquares: Int
val WindowSizeInPixels: Int
val gui: SimpleFrame & O1WindowDefaults & Escapable & TerminatesOnClose
val simulator: Simulator
val supportsMultipleDemographics: Boolean

#### Inherited fields

final val executionStart: Long

## Attributes

Inherited from:
  App