Click or drag to resize

DfsStaticItemBuilder Class

Builder to configure an existing dynamic item structure.

The following functions must be set: Set(String, eumQuantity, DfsSimpleType), SetAxis(IDfsSpatialAxis), SetData(Array).

Inheritance Hierarchy

Namespace:  DHI.Generic.MikeZero.DFS
Assembly:  DHI.Generic.MIKEZero.DFS (in DHI.Generic.MIKEZero.DFS.dll) Version: 19.0.0.0 (11.1.1.1111)
Syntax
public class DfsStaticItemBuilder : DfsAbstractItemBuilder

The DfsStaticItemBuilder type exposes the following members.

Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetStaticItem
Returns the static item.

It does call Validate, and if validate returns any issues, this method will throw an exception.

Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodSet
Sets name, eum quantity and item data type.

This must be set.

(Inherited from DfsAbstractItemBuilder.)
Public methodSetAxis
Sets the spatial axis.

This must be set.

(Inherited from DfsAbstractItemBuilder.)
Public methodSetAxisUnitConversion
Sets the unit conversion for the axis of the item.

Optional. The default for an item is that no conversion is performed.

If it's set to anything else than no conversion, automatic conversion is performed.

(Inherited from DfsAbstractItemBuilder.)
Public methodSetData
Sets the data array for the static item.
Public methodSetOrientation
Sets reference orientation.

Optional. If not set, default values of 0 are used.

(Inherited from DfsAbstractItemBuilder.)
Public methodSetReferenceCoordinates
Sets reference coordinates.

Optional. If not set, default values of 0 are used.

(Inherited from DfsAbstractItemBuilder.)
Public methodSetUnitConversion
Sets the unit conversion for item.

Optional. The default for an item is that no conversion is performed.

If it's set to anything else than no conversion, automatic conversion is performed.

(Inherited from DfsAbstractItemBuilder.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodValidate
Validate will return a string of issues from the item builder. When this returns an empty list, the item has been properly build.
(Overrides DfsAbstractItemBuilderValidate.)
Top
Remarks
This creates a new static item when instantiated, but the item is not yet a part of the file. When GetStaticItem is called, a DfsStaticItemWrapper is returned that can be added to the DfsBuilder.
See Also