RepresentationCodeSourceEnum
Enumeration Literal | Description |
---|
ISO 11783 - DDI |
|
ISO 11783 - SPN |
|
J1939 - SPN |
|
ADAPT |
|
Proprietary |
|
Representation
Description |
---|
Id | CompoundIdentifier | 1 | Defined somewhere for ADAPT |
Code | String | 1 | Code is a unique representation code that corresponds to the representation's ID in our reference data API / XML file. |
Description | String | 1 |
|
|
LongDescription | String | 0..1 |
|
|
CodeSource | RepresentationCodeSourceEnum | 0..1 | The source for the reference id listed in the enumeration below |
StringRepresentation | | | |
---|
Description |
---|
MinCharacters | Integer | 0..1 |
NumericRepresentation | | | |
---|
| Description |
---|
DecimalDigits | Integer |
0.. | | |
|
Dimension | UnitOfMeasureDimensionEnum | 1 |
EnumeratedRepresentation | | | |
---|
| Description |
---|
EnumerationMembers | EnumerationMember | 1..* |
| | | |
UnitType | | | |
---|
|
|
RepresentationGroupId | Integer | 1 |
| UnitType [Not Implemented] |
|
|
|
Attribute | Type | Multiplicity | Description |
---|
Id | String | 1 |
| |
|
CompondUnitOfMeasures | CompondUnitOfMeasure | 1.. |
n* | List of support unit of measures |
BaseUnitOfMeasure | CompondUnitOfMeasure | 1 | The base unit which will be used for conversion |
| | | |
CompoundUnitOfMeasure | | | |
---|
|
|
|
|
CompoundUnitOfMeasure [Not Implemented] |
|
|
|
Attribute | Type | Multiplicity | Description |
---|
Components | UnitOfMeasureComponent | 1.. |
n | UnitOfMeasureComponent | | | |
---|
| Description |
---|
Unit | UnitOfMeasure |
UnitOfMeasure | | UnitOfMeasure |
|
Code | String | 1 | This is a string, according to the composite Deere scheme. e.g., m2 |
Name | String | 1 | e.g., "meter squared" |
Symbol | String | 1 | e.g., "m^2" |
UNRec20Code | String | 1 | e.g., "MTK" |
ConversionScaleScale | Double | 1 | e.g., 1 |
UnitType | UnitType | 1 | e.g. "area" |
...
|
Dimension | UnitOfMeasureDimensionEnum | 1 |
|
IsReferenceForDimension | Boolean | 1 |
|
Offset | Double | 1 |
|
UnitOfMeasureAuthorityEnum
Enumeration Literal | Description |
---|
UNRec20 |
|
QUDT |
|
UCUM |
|
ADAPT |
|
UnitOfMeasureDimensionEnum
https://github.com/ADAPT/ADAPT/blob/develop/source/ADAPT/Common/UnitOfMeasureDimensionEnum.cs
Examples
|
|
---|
Id | 1001 |
Name | YieldWetMass |
UnitType | MassType |
RecordedValues | Array of double |
RecordedUnitOfMeasure | kg |
| |
|
---|
Id | 1002 |
Name | ApplicationRate |
UnitType | VolumeAreaType |
RecordedValues | Array of double |
RecordedUnitOfMeasure | litres/ac |
EnteredValues | Array of double |
EnteredUnitOfMeasure | gallon/ac |
| |
|
---|
Id | 1020 |
Name | SectionWidth |
UnitType | LengthType |
RecordedValue | 10 |
RecordedUnitOfMeasure | in |
EnteredValue | 254 |
EnteredUnitOfMeasure | mm |
| |
|
|
---|
Components | lb;ac-1 |
Symbol | lb/ac |
| |
|
---|
Id | lb |
Name | pounds |
Conversion scale | 1 |
UnitType | MassType |
| |
|
---|
Id | 2001 |
Name | HitchType |
DefinedTypes | ThreePoint, RearTwoPoint, DrawBar, RearPivotWagonHitch, FrontRigidThreePoint |
SelectedDefinedType | ThreePoint |
| |
|
|
---|
Id | 2002 |
Name | InlineOffsetType |
DefinedTypes | InlineFront, InlineCenter, InlineRear |
SelectedDefinedType | InlineFront |
EnumeratedRepresentation
Note: SPADE and PAIL DDI would be listed as part of the ADAPT representation system.
- Any DDI we do not understand should simply be passed through as-is
- Use existing DDI's, or references to them, to represent well-known data representations
- Use ReferenceId if there is a corresponding ISO DDI
- Use CompoundIdentifier to track id, possibly domain specific id
- Consider migration path to promote agreed-upon data representations to ISO
- UOM's and business rules: Should we be able to assign a unit to a RepresentationNumber that is not supported by its Representation?
- Do we always need a Representation, or are there times we only need a number and UOM?
- Maybe only logged data meters need a representation
- Added UnitNumber so we can have a number and UOM without a representation.
- Will need helper method to get value in particular unit or unit system
View file |
---|
name | rec20_Rev8e_2012.xls |
---|
height | 250 |
---|
|
UN Rec20 - Excel sheet
...
ISO DDI has:
- Numeric entity id
- String "Definition"
- List of Device Classes
- Do we need a DeviceClass enumeration? (Planters, Fertilizer, Sprayers, Irrigation, etc)
- Unit
- Resolution (What is this? Some kind of scaling factor?)
- Range
- Submit by / date / company
- Revision Number
- Current Status (ISO-Published)
- DateTime Status Date
- Status Comments
- Attachments
...