BH.oM.Environment.Climate.Time¶
An environment object used to describe time for climate analysis
Class structure¶
Implemented interfaces and base types¶
The Time is inheriting from the following base type(s) and implements the following interfaces:
- BH.oM.Base.BHoMObject
- BH.oM.Base.IBHoMObject
- BH.oM.Base.IObject
- BH.oM.Environment.IClimateObject
- BH.oM.Environment.IEnvironmentObject
Properties¶
Defining properties¶
The following properties are defined on the class
| Name | Type | Description | Quantity |
|---|---|---|---|
| Year | int | A number that represents the year (e.g. 1970) | - |
| Month | int | A number between 1 to 12, where 1 is January | - |
| Day | int | A number between 1 to 31 | - |
| Hour | int | A number between 0 to 23 | - |
| Minute | int | A number between 0 to 59 | - |
| Second | int | A number between 0 to 59 | - |
| Millisecond | int | A number between 0 to 999 | - |
Inherited properties¶
The following properties are inherited from the base class of the object
| Name | Type | Description | Quantity |
|---|---|---|---|
| BHoM_Guid | Guid | - | - |
| Name | string | - | - |
| Fragments | FragmentSet | - | - |
| Tags | HashSet<string> | - | - |
| CustomData | Dictionary<string, object> | - | - |
Derived properties¶
The following properties are defined as extension methods in one of the BHoM_Engines
| Name | Type | Description | Quantity | Engine |
|---|---|---|---|---|
| Altitude | double | Returns the minimum altitude of an Environment Object as the minimum z value from the bounding box of the geometry. | - | Environment_Engine |
| AltitudeRange | double | Returns the range of altitude of an Environment Object taken as the maximum z value minus minimum z value from the bounding box of the geometry | - | Environment_Engine |
| Bottom | ICurve | Returns the bottom of a given environment object. | - | Environment_Engine |
| DateTime | DateTime | Returns the date time object from a Time object | - | Environment_Engine |
| ExplodeToParts | Output<List<ICurve>, List<ICurve>, List<ICurve>> | Returns the sides, top and bottom of a given environment object. | - | Environment_Engine |
| Height | double | Returns the height of a generic Environment Object. | - | Environment_Engine |
| Inclination | double | Returns the inclination of a generic Environment Object. | - | Environment_Engine |
| Orientation | Nullable<double> | Returns the angle to north of a given environmental object on an xyPlane. | - | Environment_Engine |
| Polyline | Polyline | Returns the external boundary from a generic Environment Object. | - | Environment_Engine |
| Sides | List<ICurve> | Returns the sides of a given environment object. | - | Environment_Engine |
| Tilt | double | Returns the tilt of an Environment Object. | - | Environment_Engine |
| ToLines | List<Line> | Returns the external boundary from a generic Environment Object | - | Environment_Engine |
| Top | ICurve | Returns the top of a given environment object. | - | Environment_Engine |
| Width | double | Returns the width of a generic Environment Object. | - | Environment_Engine |
Code and Schema¶
C# implementation¶
C#
public class Time : BH.oM.Base.BHoMObject,
BH.oM.Base.IBHoMObject,
BH.oM.Base.IObject,
BH.oM.Environment.IClimateObject,
BH.oM.Environment.IEnvironmentObject
Assembly: Environment_oM.dll
The C# class definition is available on github:
All history and changes of the class can be found by inspection the history.
JSON Schema implementation¶
The object is defined as a JSON schema. You can validate a JSON instance against this schema by reference. To do this, use the schema reference below in a validator like this one.
JSON Schema
{
"$ref" : "https://raw.githubusercontent.com/BHoM/BHoM_JSONSchema/develop/Environment_oM/Climate/Time.json"
}
The JSON Schema is available on github here: