Greet 2014
Documentation for the GREET 2014 API
 All Classes Namespaces Functions Variables Enumerations Properties Events
Greet.UnitLib.LightValue Class Reference
Inheritance diagram for Greet.UnitLib.LightValue:

Public Member Functions

 LightValue (string quantity_or_unit_name, double value)
 
 LightValue (SerializationInfo info, StreamingContext text)
 
int CompareTo (object obj)
 
void GetObjectData (SerializationInfo info, StreamingContext context)
 Serializer, serialise everything we do that because we want to override the deserializer which clones the unitgroup we dont want to clone the unit group so basically we specify how to serialize, and how to deserialize More...
 
override string ToString ()
 

Static Public Member Functions

static LightValue operator* (LightValue d1, LightValue d2)
 
static LightValue operator* (double d1, LightValue d2)
 
static LightValue operator* (LightValue d1, double d2)
 
static LightValue operator+ (LightValue d1, LightValue d2)
 
static LightValue operator+ (LightValue d1, double d2)
 
static LightValue operator+ (double d1, LightValue d2)
 
static LightValue operator- (LightValue d1, LightValue d2)
 
static LightValue operator- (LightValue d1, double d2)
 
static LightValue operator- (double d1, LightValue d2)
 
static LightValue operator- (LightValue d2)
 
static LightValue operator/ (LightValue d1, LightValue d2)
 
static LightValue operator/ (LightValue d1, double d2)
 
static LightValue operator/ (double d1, LightValue d2)
 

Properties

string QuantityName [get, set]
 The unit parameter that this doublevalue corresponds to for doing unit conversions. This unit is stored internally as the default unit for this parameter and the OverrideUnit is the user defined unit for display More...
 
double ValueInDefaultUnit [get, set]
 stores the actual original value for the object More...
 

Member Function Documentation

void Greet.UnitLib.LightValue.GetObjectData ( SerializationInfo  info,
StreamingContext  context 
)

Serializer, serialise everything we do that because we want to override the deserializer which clones the unitgroup we dont want to clone the unit group so basically we specify how to serialize, and how to deserialize

Parameters
info
context

Property Documentation

string Greet.UnitLib.LightValue.QuantityName
getset

The unit parameter that this doublevalue corresponds to for doing unit conversions. This unit is stored internally as the default unit for this parameter and the OverrideUnit is the user defined unit for display

double Greet.UnitLib.LightValue.ValueInDefaultUnit
getset

stores the actual original value for the object


The documentation for this class was generated from the following file: