C# Class Platform.MutableMeter

An IMeter implementation that stores the actual values of the maximum and minimum values.
Inheritance: AbstractMeter
ファイルを表示 Open project: platformdotnet/Platform

Public Methods

Method Description
MutableMeter ( ) : System

Constructs a new blank MutableMeter.

MutableMeter ( object owner, object minimumValue, object maximumValue, object currentValue, string units ) : System

Constructs a new MutableMeter.

MutableMeter ( object minimumValue, object maximumValue, object currentValue, string units ) : System

Constructs a new MutableMeter.

SetCurrentAndMaximumValue ( object value, object maximumValue ) : void

Sets the current and maximum value.

SetCurrentValue ( object value ) : void

Sets the current value.

SetMaximumValue ( object value ) : void

Sets the maxuimum value.

SetMinimumValue ( object value ) : void

Sets the minimum value.

SetOwner ( object value ) : void

Sets the owner of the meter.

SetUnits ( string value ) : void

Sets the units.

ToString ( ) : string

Gets a string representation of this object. ToStringGenerator will be used to generate the string if it is not null otherwise the default from AbstractMeter.ToString() will be used.

Method Details

MutableMeter() public method

Constructs a new blank MutableMeter.
public MutableMeter ( ) : System
return System

MutableMeter() public method

Constructs a new MutableMeter.
public MutableMeter ( object owner, object minimumValue, object maximumValue, object currentValue, string units ) : System
owner object The owner
minimumValue object The
maximumValue object The
currentValue object The
units string The
return System

MutableMeter() public method

Constructs a new MutableMeter.
public MutableMeter ( object minimumValue, object maximumValue, object currentValue, string units ) : System
minimumValue object The
maximumValue object The
currentValue object The
units string The
return System

SetCurrentAndMaximumValue() public method

Sets the current and maximum value.
public SetCurrentAndMaximumValue ( object value, object maximumValue ) : void
value object The current value
maximumValue object The maximum value
return void

SetCurrentValue() public method

Sets the current value.
public SetCurrentValue ( object value ) : void
value object The current value
return void

SetMaximumValue() public method

Sets the maxuimum value.
public SetMaximumValue ( object value ) : void
value object The maximum value
return void

SetMinimumValue() public method

Sets the minimum value.
public SetMinimumValue ( object value ) : void
value object The minimum value
return void

SetOwner() public method

Sets the owner of the meter.
public SetOwner ( object value ) : void
value object The owner
return void

SetUnits() public method

Sets the units.
public SetUnits ( string value ) : void
value string The units
return void

ToString() public method

Gets a string representation of this object. ToStringGenerator will be used to generate the string if it is not null otherwise the default from AbstractMeter.ToString() will be used.
public ToString ( ) : string
return string