Package org.somda.sdc.glue.common
Class FallbackInstanceIdentifier
- java.lang.Object
-
- org.somda.sdc.glue.common.FallbackInstanceIdentifier
-
public class FallbackInstanceIdentifier extends Object
Utility class to create fallback instance identifiers from location detail.The instance identifier generated with this class meet the specification of IEEE 11073-20701-2018 section 9.4.1.1.
-
-
Constructor Summary
Constructors Constructor Description FallbackInstanceIdentifier()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Optional<InstanceIdentifier>create(LocationDetail locationDetail)Creates an instance identifier based on the fallback algorithm defined in IEEE 11073-20701-2018 section 9.4.1.1.
-
-
-
Method Detail
-
create
public static Optional<InstanceIdentifier> create(LocationDetail locationDetail)
Creates an instance identifier based on the fallback algorithm defined in IEEE 11073-20701-2018 section 9.4.1.1.- Parameters:
locationDetail- the location detail used to derive the instance identifier.- Returns:
- a converted instance identifier or
Optional.empty()if no location information is set.
-
-