-
Notifications
You must be signed in to change notification settings - Fork 13
Description
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