C# Class Platform.MutableMeter

An IMeter implementation that stores the actual values of the maximum and minimum values.
Inheritance: AbstractMeter
Afficher le fichier Open project: platformdotnet/Platform

Méthodes publiques

Méthode 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 méthode

Constructs a new blank MutableMeter.
public MutableMeter ( ) : System
Résultat System

MutableMeter() public méthode

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
Résultat System

MutableMeter() public méthode

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
Résultat System

SetCurrentAndMaximumValue() public méthode

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

SetCurrentValue() public méthode

Sets the current value.
public SetCurrentValue ( object value ) : void
value object The current value
Résultat void

SetMaximumValue() public méthode

Sets the maxuimum value.
public SetMaximumValue ( object value ) : void
value object The maximum value
Résultat void

SetMinimumValue() public méthode

Sets the minimum value.
public SetMinimumValue ( object value ) : void
value object The minimum value
Résultat void

SetOwner() public méthode

Sets the owner of the meter.
public SetOwner ( object value ) : void
value object The owner
Résultat void

SetUnits() public méthode

Sets the units.
public SetUnits ( string value ) : void
value string The units
Résultat void

ToString() public méthode

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
Résultat string