Package org.openmuc.jeebus.spine.api
Class UseCasePartner
- java.lang.Object
-
- org.openmuc.jeebus.spine.api.UseCasePartner
-
public class UseCasePartner extends java.lang.ObjectThis class encapsulates a complete set of information on a valid, remote Use Case partner.
-
-
Constructor Summary
Constructors Constructor Description UseCasePartner(java.lang.String communicationAddress, org.openmuc.jeebus.spine.xsd.v1.NodeManagementDetailedDiscoveryDeviceInformationType deviceInfo, org.openmuc.jeebus.spine.xsd.v1.NodeManagementDetailedDiscoveryEntityInformationType entityInfo, java.util.Map<org.openmuc.jeebus.spine.xsd.v1.FeatureTypeEnumType,org.openmuc.jeebus.spine.xsd.v1.NodeManagementDetailedDiscoveryFeatureInformationType> featureInfos, org.openmuc.jeebus.spine.xsd.v1.NodeManagementUseCaseDataType.UseCaseInformation useCaseInfo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetCommunicationAddress()org.openmuc.jeebus.spine.xsd.v1.FeatureAddressTypegetCompleteFeatureAddress(org.openmuc.jeebus.spine.xsd.v1.FeatureTypeEnumType type)org.openmuc.jeebus.spine.xsd.v1.NodeManagementDetailedDiscoveryDeviceInformationTypegetDeviceInfo()org.openmuc.jeebus.spine.xsd.v1.NodeManagementDetailedDiscoveryEntityInformationTypegetEntityInfo()java.util.Map<org.openmuc.jeebus.spine.xsd.v1.FeatureTypeEnumType,org.openmuc.jeebus.spine.xsd.v1.NodeManagementDetailedDiscoveryFeatureInformationType>getFeatureInfos()This may contain incomplete addresses.org.openmuc.jeebus.spine.xsd.v1.NodeManagementUseCaseDataType.UseCaseInformationgetUseCaseInfo()It is recommended to check the "UseCaseAvailable" flag to see whether the use case is actually available right now.
-
-
-
Constructor Detail
-
UseCasePartner
public UseCasePartner(java.lang.String communicationAddress, org.openmuc.jeebus.spine.xsd.v1.NodeManagementDetailedDiscoveryDeviceInformationType deviceInfo, org.openmuc.jeebus.spine.xsd.v1.NodeManagementDetailedDiscoveryEntityInformationType entityInfo, java.util.Map<org.openmuc.jeebus.spine.xsd.v1.FeatureTypeEnumType,org.openmuc.jeebus.spine.xsd.v1.NodeManagementDetailedDiscoveryFeatureInformationType> featureInfos, org.openmuc.jeebus.spine.xsd.v1.NodeManagementUseCaseDataType.UseCaseInformation useCaseInfo)
-
-
Method Detail
-
getCompleteFeatureAddress
public org.openmuc.jeebus.spine.xsd.v1.FeatureAddressType getCompleteFeatureAddress(org.openmuc.jeebus.spine.xsd.v1.FeatureTypeEnumType type)
- Parameters:
type- the type of the needed Feature.- Returns:
- the remote address of the Feature with the given type or null if there is no such Feature.
-
getCommunicationAddress
public java.lang.String getCommunicationAddress()
- Returns:
- the address you can use at our NodeManagement to communicate with the remote device
-
getDeviceInfo
public org.openmuc.jeebus.spine.xsd.v1.NodeManagementDetailedDiscoveryDeviceInformationType getDeviceInfo()
- Returns:
- the device information of the remote SPINE device
-
getEntityInfo
public org.openmuc.jeebus.spine.xsd.v1.NodeManagementDetailedDiscoveryEntityInformationType getEntityInfo()
- Returns:
- the entity information of the remote entity supporting the use case
-
getFeatureInfos
public java.util.Map<org.openmuc.jeebus.spine.xsd.v1.FeatureTypeEnumType,org.openmuc.jeebus.spine.xsd.v1.NodeManagementDetailedDiscoveryFeatureInformationType> getFeatureInfos()
This may contain incomplete addresses. It is recommended to usegetCompleteFeatureAddress(FeatureTypeEnumType)instead.- Returns:
- information on the features of the remote entity concerning the use case.
-
getUseCaseInfo
public org.openmuc.jeebus.spine.xsd.v1.NodeManagementUseCaseDataType.UseCaseInformation getUseCaseInfo()
It is recommended to check the "UseCaseAvailable" flag to see whether the use case is actually available right now. May be null if the remote device does not support use case discovery.- Returns:
- the use case information of the remote entity supporting the use case.
-
-