SwitchActivity switchActivity = (SwitchActivity)activity;
boolean isVertical = options.containsKey("vertical");
boolean isSelected = false;
if(instance!=null /*&& instance.isRunning(activity.getTracingTag())*/) {
Activity currChild = (Activity) switchActivity.getChildActivities().get(i);
if (!instance.getStatus().equals(Activity.STATUS_RUNNING)) {
if (currChild instanceof ComplexActivity) {
while (currChild instanceof ComplexActivity) {
currChild = (Activity) ((ComplexActivity) currChild).getChildActivities().get(0);
}
}
}
isSelected = !(currChild.getStatus(instance).equals(Activity.STATUS_READY));
}
String probability = "";
if(options.containsKey("probability")){
Long[] occurrenceAndTotal = ProbabilityInstrumentationFilter.getOccurrenceAndTotal(switchActivity, i);