Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

RepresentationCodeSourceEnum

Enumeration LiteralDescription

ISO 11783 - DDI


ISO 11783 - SPN


J1939 - SPN


ADAPT

Proprietary 


Representation

 
AttributeType
 
Multiplicity
 
Description
IdCompoundIdentifier1Defined somewhere for ADAPT
CodeString1

Code is a unique representation code that corresponds to the representation's ID in our reference data API / XML file.

DescriptionString1
 

LongDescriptionString0..1
 

CodeSource

RepresentationCodeSourceEnum

0..1The source for the reference id listed in the enumeration below
 




StringRepresentation

 



Attribute
 
Type
 
Multiplicity
StringRepresentation   
Description
MinCharactersInteger0..1
 

MaxCharactersInteger0..1
 





NumericRepresentation

 



Attribute
 
Type
 NumericRepresentation   
Multiplicity
 
Description
DecimalDigitsInteger
0..
1
 

MinValueNumericValue0..1
 

MaxValueNumericValue0..1
 

DimensionUnitOfMeasureDimensionEnum1
 





EnumeratedRepresentation

 



Attribute
 
Type
 EnumeratedRepresentation   
Multiplicity
 
Description
EnumerationMembersEnumerationMember1..*
     UnitType   

RepresentationGroupIdInteger1
 





UnitType [Not Implemented]




AttributeTypeMultiplicityDescription
IdString1
 

Name
 

 1
 

CompondUnitOfMeasuresCompondUnitOfMeasure1..
n
*List of support unit of measures
BaseUnitOfMeasureCompondUnitOfMeasure1The base unit which will be used for conversion
    CompoundUnitOfMeasure   




CompoundUnitOfMeasure [Not Implemented]




AttributeTypeMultiplicityDescription
ComponentsUnitOfMeasureComponent1..
*
NameString1
 

SymbolString1
 





UnitOfMeasureComponent

 



Attribute
 
Type
 UnitOfMeasureComponent   
Multiplicity
 
Description
UnitUnitOfMeasure
UnitOfMeasure
1
 

PowerInteger1
 





UnitOfMeasure

 



Attribute
 
Type
 
Multiplicity
 
Description
UnitOfMeasure
Id
 
CompoundIdentifier
 
1
 

CodeString1

This is a string, according to the composite Deere scheme.

e.g., m2

NameString1e.g., "meter squared"
SymbolString1e.g., "m^2"
UNRec20CodeString1e.g., "MTK"
ConversionScale
ScaleDouble1e.g., 1
UnitTypeUnitType1e.g. "area"

...

DimensionUnitOfMeasureDimensionEnum1
IsReferenceForDimensionBoolean1
OffsetDouble1

UnitOfMeasureAuthorityEnum

Enumeration LiteralDescription
UNRec20
QUDT
UCUM
ADAPT

UnitOfMeasureDimensionEnum

https://github.com/ADAPT/ADAPT/blob/develop/source/ADAPT/Common/UnitOfMeasureDimensionEnum.cs

Examples

NumericRepresentation
 

Id1001
NameYieldWetMass
UnitTypeMassType
RecordedValuesArray of double
RecordedUnitOfMeasurekg
 
 


NumericRepresentation
 

Id1002
NameApplicationRate
UnitTypeVolumeAreaType
RecordedValuesArray of double
RecordedUnitOfMeasurelitres/ac
EnteredValuesArray of double
EnteredUnitOfMeasuregallon/ac
 
 


NumericRepresentation
 

Id1020
NameSectionWidth
UnitTypeLengthType
RecordedValue10
RecordedUnitOfMeasurein
EnteredValue254
EnteredUnitOfMeasuremm
  


CompoundUnitOfMeasure
 

Componentslb;ac-1
Symbollb/ac
 
 


UnitOfMeasure
 

Idlb
Namepounds
Conversion scale1
UnitTypeMassType
 
 


EnumeratedRepresentation
 

Id2001
NameHitchType
DefinedTypesThreePoint, RearTwoPoint, DrawBar, RearPivotWagonHitch, FrontRigidThreePoint
SelectedDefinedTypeThreePoint
  


EnumeratedRepresentation
 

Id2002
NameInlineOffsetType
DefinedTypesInlineFront, InlineCenter, InlineRear
SelectedDefinedTypeInlineFront

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
    namerec20_Rev8e_2012.xls
    height250
    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

 

...