public class SimulScanData extends Object implements Serializable
Example Usage: public void onSimulScanData(SimulScanData simulscanData) { Date timestamp = new Date(simulscanData.getTimestamp()); List<SimulScanElement> simulscanDataElements = simulscanData.getElements(); List<SimulScanRegion> simulscanDataRegions = new ArrayList<SimulScanRegion>(); for (SimulScanElement curElement : simulscanDataElements) { if (curElement instanceof SimulScanRegion) { Log.d(TAG, ((SimulScanRegion) curElement).getName()); } else if (curElement instanceof SimulScanGroup) { List<SimulScanRegion> regionsInGroup = ((SimulScanGroup)curElement).getRegions(); for (SimulScanRegion curRegion : regionsInGroup){ Log.d(TAG, "Group:"+ ((SimulScanGroup)curElement).getName() +"Region:"+ ((SimulScanRegion) curRegion).getName()); } } } }
Constructor and Description |
---|
SimulScanData() |
Modifier and Type | Method and Description |
---|---|
List<SimulScanElement> |
getElements()
Returns a list of scanned elements.
|
SimulScanTemplate |
getTemplate()
Returns the scanned template.
|
String |
getTimestamp()
Returns the time at which the data was captured.
|
public String getTimestamp()
public SimulScanTemplate getTemplate()
public List<SimulScanElement> getElements()