C# Class CyrusBuilt.MonoPi.Devices.Sprinkler.SprinklerZoneBase

Base class for sprinler zones.
Inheritance: ISprinklerZone
Exibir arquivo Open project: cyrusbuilt/MonoPi

Public Methods

Method Description
Off ( ) : void

Turns this zone off.

On ( ) : void

Turns this zone on.

SetState ( System.Boolean on ) : void

Sets the state of this zone..

Protected Methods

Method Description
SprinklerZoneBase ( ) : System

Initializes a new instance of the CyrusBuilt.MonoPi.Devices.Sprinkler.SprinklerZoneBase class. This is the default constructor.

SprinklerZoneBase ( String name ) : System

Initializes a new instance of the CyrusBuilt.MonoPi.Devices.Sprinkler.SprinklerZoneBase class with the name of the zone.

Method Details

Off() public method

Turns this zone off.
public Off ( ) : void
return void

On() public method

Turns this zone on.
public On ( ) : void
return void

SetState() public abstract method

Sets the state of this zone..
public abstract SetState ( System.Boolean on ) : void
on System.Boolean /// Set true to turn the zone on or false to turn it off. ///
return void

SprinklerZoneBase() protected method

Initializes a new instance of the CyrusBuilt.MonoPi.Devices.Sprinkler.SprinklerZoneBase class. This is the default constructor.
protected SprinklerZoneBase ( ) : System
return System

SprinklerZoneBase() protected method

Initializes a new instance of the CyrusBuilt.MonoPi.Devices.Sprinkler.SprinklerZoneBase class with the name of the zone.
protected SprinklerZoneBase ( String name ) : System
name String /// The name of the zone. ///
return System