Package jmri

Class ProgrammingMode


public final class ProgrammingMode
extends Object
Denote a single programming mode.

User code gets a list of available modes from the Programmer or AddressedProgrammer in use. It then selects a mode to use and indicates it via a setMode() call.

A ProgrammingMode has a user-readable name to help humans select it.

We define a number of modes as constants because they are common across so many DCC-specific implementations, they've become defacto standards.

More specific definitions (and Bundle entries) should retreat to specific Programmer implementations. The whole idea is to have code deal with the modes that a specific Programmer provides, not make assumptions about global values.

See Also: