Package org.jlab.detector.base
Class DetectorCollection<T>
java.lang.Object
org.jlab.detector.base.DetectorCollection<T>
- Author:
- gavalian
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidadd(DetectorDescriptor desc, T value) voidclear()get(int sector, int layer, int comp) getComponents(int sector, int layer) returns component set for given sector and layergetKeys()getLayers(int sector) returns Set of layers for given sector.getList()Returns a list of all values in the collectiongetName()getObjectForKey(Long key) Returns Set of sectors defined in the mapbooleanhasEntry(int sector, int layer, int comp) void
-
Constructor Details
-
DetectorCollection
public DetectorCollection()
-
-
Method Details
-
setName
-
getName
-
add
-
add
-
clear
public void clear() -
hasEntry
public boolean hasEntry(int sector, int layer, int comp) -
get
-
getKeys
-
getObjectForKey
-
getList
Returns a list of all values in the collection- Returns:
- List of collection values
-
getSectors
Returns Set of sectors defined in the map- Returns:
-
getLayers
returns Set of layers for given sector.- Parameters:
sector-- Returns:
-
getComponents
returns component set for given sector and layer- Parameters:
sector-layer-- Returns:
-