public class FbsUtil extends Object
Class does NOT retrieve information.
FbsElement| Modifier and Type | Method and Description |
|---|---|
static FbsElement |
getFbsElementForCableName(Collection<FbsElement> fbsElements,
String cableName)
Extract FbsElement that correspond to given cable name (exact match).
|
static FbsElement |
getFbsElementForEssName(Collection<FbsElement> fbsElements,
String essName)
Extract FbsElement that correspond to given ESS name (exact match).
|
static FbsElement |
getFbsElementForId(Collection<FbsElement> fbsElements,
String id)
Extract FbsElement that correspond to given id (exact match).
|
static FbsElement |
getFbsElementForTag(Collection<FbsElement> fbsElements,
String tag)
Extract FbsElement that correspond to given tag (exact match).
|
static List<FbsElement> |
getFbsElementsForCableName(Collection<FbsElement> fbsElements,
String cableName)
Extract list of FbsElement that correspond to given cable name (exact match).
|
static List<FbsElement> |
getFbsElementsForEssName(Collection<FbsElement> fbsElements,
String essName)
Extract list of FbsElement that correspond to given ESS name (exact match).
|
static List<FbsElement> |
getFbsElementsForId(Collection<FbsElement> fbsElements,
String id)
Extract list of FbsElement that correspond to given id (exact match).
|
static List<FbsElement> |
getFbsElementsForTag(Collection<FbsElement> fbsElements,
String tag)
Extract list of FbsElement that correspond to given tag (exact match).
|
static Map<String,FbsElement> |
readMappingsCableNameToFbsElement(List<FbsElement> fbsElements)
Converts a FbsElement list into a map with entries (key, value - cable name, FbsElement).
|
static Map<String,String> |
readMappingsCableNameToFbsTag(List<FbsElement> fbsElements)
Converts a FbsElement list into a map with entries (key, value - cable name, FBS tag).
|
static Map<String,FbsElement> |
readMappingsEssNameToFbsElement(List<FbsElement> fbsElements)
Converts a FbsElement list into a map with entries (key, value - ESS name, FbsElement).
|
static Map<String,String> |
readMappingsEssNameToFbsTag(List<FbsElement> fbsElements)
Converts a FbsElement list into a map with entries (key, value - ESS name, FBS tag).
|
static Map<String,String> |
readMappingsFbsTagToEssName(List<FbsElement> fbsElements)
Converts a FbsElement list into a map with entries (key, value - FBS tag, ESS name).
|
static Map<String,FbsElement> |
readMappingsIdToFbsElement(List<FbsElement> fbsElements)
Converts a FbsElement list into a map with entries (key, value - id, FbsElement).
|
static Map<String,FbsElement> |
readMappingsTagToFbsElement(List<FbsElement> fbsElements)
Converts a FbsElement list into a map with entries (key, value - tag, FbsElement).
|
static List<String> |
readTags(List<FbsElement> fbsElements)
Converts a FbsElement list into a list of FBS tags.
|
public static Map<String,String> readMappingsCableNameToFbsTag(List<FbsElement> fbsElements)
fbsElements - FBS element list retrieved from serverpublic static Map<String,String> readMappingsEssNameToFbsTag(List<FbsElement> fbsElements)
fbsElements - FBS element list retrieved from serverpublic static Map<String,String> readMappingsFbsTagToEssName(List<FbsElement> fbsElements)
fbsElements - FBS element list retrieved from serverpublic static Map<String,FbsElement> readMappingsCableNameToFbsElement(List<FbsElement> fbsElements)
fbsElements - FBS element list retrieved from serverpublic static Map<String,FbsElement> readMappingsEssNameToFbsElement(List<FbsElement> fbsElements)
fbsElements - FBS element list retrieved from serverpublic static Map<String,FbsElement> readMappingsIdToFbsElement(List<FbsElement> fbsElements)
fbsElements - FBS element list retrieved from serverpublic static Map<String,FbsElement> readMappingsTagToFbsElement(List<FbsElement> fbsElements)
An FBS tag can lack association with cable name and ESS name. An FBS tag can be associated with maximum one cable name and ESS name.
fbsElements - FBS element list retrieved from serverpublic static List<String> readTags(List<FbsElement> fbsElements)
fbsElements - FBS element list retrieved from serverpublic static FbsElement getFbsElementForCableName(Collection<FbsElement> fbsElements, String cableName)
fbsElements - collection of FbsElementcableName - given cable name to search forFbsElement.cableNamepublic static List<FbsElement> getFbsElementsForCableName(Collection<FbsElement> fbsElements, String cableName)
fbsElements - collection of FbsElementcableName - given cable name to search forFbsElement.cableNamepublic static FbsElement getFbsElementForEssName(Collection<FbsElement> fbsElements, String essName)
fbsElements - collection of FbsElementessName - given ESS name to search forFbsElement.essNamepublic static List<FbsElement> getFbsElementsForEssName(Collection<FbsElement> fbsElements, String essName)
fbsElements - collection of FbsElementessName - given ESS name to search forFbsElement.essNamepublic static FbsElement getFbsElementForId(Collection<FbsElement> fbsElements, String id)
fbsElements - collection of FbsElementid - given id to search forFbsElement.idpublic static List<FbsElement> getFbsElementsForId(Collection<FbsElement> fbsElements, String id)
fbsElements - collection of FbsElementid - given id to search forFbsElement.idpublic static FbsElement getFbsElementForTag(Collection<FbsElement> fbsElements, String tag)
fbsElements - collection of FbsElementtag - given tag to search forFbsElement.tagpublic static List<FbsElement> getFbsElementsForTag(Collection<FbsElement> fbsElements, String tag)
fbsElements - collection of FbsElementtag - given tag to search forFbsElement.tagCopyright © 2025 European Spallation Source. All rights reserved.