public class SimulScanData
extends java.lang.Object
implements java.io.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 |
---|---|
java.util.List<SimulScanElement> |
getElements()
Returns a list of scanned elements.
|
SimulScanTemplate |
getTemplate()
Returns the scanned template.
|
java.lang.String |
getTimestamp()
Returns the time at which the data was captured.
|
public java.lang.String getTimestamp()
public SimulScanTemplate getTemplate()
public java.util.List<SimulScanElement> getElements()