public class StateContainer extends HashMap<String,SuperState>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
StateContainer() |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getAvailibleTypes()
Returns list of availible state object names.
|
List<SuperState> |
getStatesByClass(Class c)
Iterates through local hahmap values and takes note of every SuperState
object that is Instance of specified class.
|
SuperState |
getStatesByType(String type)
Gets state message representative from local hashmap.
|
SuperState |
getStatesByVehicleType(VehicleType type)
Iterates through local hashmap values and seeks match.
|
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, valuesequals, hashCode, toStringpublic SuperState getStatesByType(String type)
type - String representation of state type.public SuperState getStatesByVehicleType(VehicleType type)
type - VehicleType representation of state type - easier to use
since we don't have to watch after propper spelling.public List<SuperState> getStatesByClass(Class c)
c - c is class that the state message should extend, So when
SuperState is inserted as c, it should return list of all types of
vehicles that this holds data of.Copyright © 2013 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.