Hi,
I extended the base OGC SensorThings API entity model to fit with my business needs. However, I’m unable to express those extensions to the FROST-Client entity model.
Let’s take a concrete example: I would like to define a FooObservation that inherits of Observation (e.g. to only handle Foo Observation#result type instead of the base Any type).
To use my FooObservation with FROST-Client, the first trivial solution would be to extend the FROST-Client’s Observation entity. However, as any FROST-Client’s entities inherit of Entity<T extends Entity<T>>, then Observation inherits of Entity<Observation>, and so T is restricted to only be Observation and not an extension of Observation as our FooObservation.
The second solution would be to directly inherits of Entity<T extends Entity<T>>. But in this case, we have to call Entity’s constructors with a given EntityType. And this EntityType is a enum (so not extensible) of FROST-Client’s entities then we lost our specific FooObservation type.
Do you plan to let FROST-Client’s users to use their own OGC SensorThings API entity based model? If not, have you any advice to let me do that?
Regards,
Aurélien
Hi,
I extended the base OGC SensorThings API entity model to fit with my business needs. However, I’m unable to express those extensions to the FROST-Client entity model.
Let’s take a concrete example: I would like to define a
FooObservationthat inherits ofObservation(e.g. to only handleFooObservation#resulttype instead of the baseAnytype).To use my
FooObservationwith FROST-Client, the first trivial solution would be to extend the FROST-Client’sObservationentity. However, as any FROST-Client’s entities inherit ofEntity<T extends Entity<T>>, thenObservationinherits ofEntity<Observation>, and soTis restricted to only beObservationand not an extension ofObservationas ourFooObservation.The second solution would be to directly inherits of
Entity<T extends Entity<T>>. But in this case, we have to callEntity’s constructors with a givenEntityType. And thisEntityTypeis aenum(so not extensible) of FROST-Client’s entities then we lost our specificFooObservationtype.Do you plan to let FROST-Client’s users to use their own OGC SensorThings API entity based model? If not, have you any advice to let me do that?
Regards,
Aurélien