Package gda.epics.util
Class PVNameUtil
java.lang.Object
gda.epics.util.PVNameUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetBasePvName(String... pvNames) Returns the common base PV name of the given PV names, if one exists, otherwisenull.
-
Method Details
-
getBasePvName
Returns the common base PV name of the given PV names, if one exists, otherwisenull. This value returned consists of the common segments of the given PV names, where ':' is pv segment separator. For example, the base PV ofBL05I-DI-PHDGN-07:IONC:Y:MP:SELECT.VALandBL05I-DI-PHDGN-07:IONC:Y:MP:INPOS.VALisBL05I-DI-PHDGN-07:IONC:Y:MP.Note that '-' is not treated as a separator, so the PVs
BL18B-DI-PHDGN-01andBL18B-DI-PHDGN-02are not considered to have a common base PV. In that case this this method will returnnullrather thanBL18B-DI-PHDGN.- Parameters:
pvNames-- Returns:
- common base PV name or
null
-