public class SensorsContainer extends HashMap<String,Map<String,SuperSensor>>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
SensorsContainer() |
| Modifier and Type | Method and Description |
|---|---|
List<MessageDescriptor> |
getNonEmptyDescription()
For each type of sensor it adds all individuals to the returnee List as a
couple (Type, Name)
|
SuperSensor |
getSensorByTypeName(String type,
String name)
Gets sensor message representatives from local hashmap specified by type
and by name.
|
List<SuperSensor> |
getSensorsByClass(Class c)
Adds every object that can be casted to initial class to the output list.
|
List<SuperSensor> |
getSensorsBySensorType(SensorType type)
Iterates through local hashmap values and seeks match.
|
List<SuperSensor> |
getSensorsByType(String type)
Gets sensor message representatives from local hashmap.
|
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, valuesequals, hashCode, toStringpublic List<SuperSensor> getSensorsByType(String type)
type - String representing the type of sensor to return.public List<SuperSensor> getSensorsBySensorType(SensorType type)
type - SensorType representing the type of sensor to return.public List<SuperSensor> getSensorsByClass(Class c)
c - Class representing the type of which the return list should be.public SuperSensor getSensorByTypeName(String type, String name)
type - String representing the type of sensor to return.name - String representing the name of sensor to return.public List<MessageDescriptor> getNonEmptyDescription()
Copyright © 2013 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.