Are DataType and TimeSupport linked? Should they be a single concept?
DataType Examples:
- “Continuous”
- “Sporadic”
- “Cumulative”
- “Incremental”
- “Average”
- “Minimum”
- “Maximum”
- “Constant Over Interval”
- “Categorical”
What is the DataType for "instantaneous"?
| DataType | TimeSupport | Regular | Note |
|---|
| Continuous | optional | Yes | default=instantaneous |
| Sporadic | optional | No | default=instantaneous |
| Average | required, not 0 | Yes | |
| Minimum | required, not 0 | Yes | |
| Maximum | required, not 0 | Yes | |
| Constant Over Interval | required, not 0 | Yes or No || |
| Categorical | optional ? | Yes or No | TimeSupport usually not apply... but who is to say non-parametric stats cannot be stored. |
What would happen if rather than being just controlled vocabulary, DataType was an object associated with time scale, This would make the any validation rules apply to the TimeScale object, rather than having to be programmed into the variable (and/or series object)?
TimeScale
- DataTypeBase DataType
- bool ObservationSpacingIsRegular
- UnitValue ObservationalSpacing
- null if ObservationSpacingIsRegular=false
- (Value,Unit(of type time)) if regular
DataType
- string Name
- bool Instantaneous
- UnitValue TimeSupport
DataType Instantaneous
- Instantaneous=true
- TimeSupport=null
DataType OverInterval
- Instantaneous=false
- UnitValue TimeSupport
- UnitValue.Value is time support interval
- UnitValue.Unit
- UnitValue.Unit.UnitType == Time
Other pages
Are