AspectValue[] values = ar.getAspectValueResults(); long start_time = -1; long end_time = -1; for (int i = 0; i < values.length; i++) { if (values[i].getAspectType() == AspectType.START_TIME) { AspectValue sdav = values[i]; if (sdav instanceof TimeAspectValue) start_time = ((TimeAspectValue)values[i]).longValue(); else start_time = sdav.longValue(); } if (values[i].getAspectType() == AspectType.END_TIME) { AspectValue sdav = values[i]; if (sdav instanceof TimeAspectValue) end_time = ((TimeAspectValue)values[i]).longValue(); else end_time = sdav.longValue(); } } if(end_time < 0 ) { return 0; } return end_time/100000;
AspectValue[] values = ar.getAspectValueResults(); long start_time = -1; long end_time = -1; for (int i = 0; i < values.length; i++) { if (values[i].getAspectType() == AspectType.START_TIME) { AspectValue sdav = values[i]; if (sdav instanceof TimeAspectValue) start_time = ((TimeAspectValue) values[i]).longValue(); else start_time = sdav.longValue(); } if (values[i].getAspectType() == AspectType.END_TIME) { AspectValue sdav = values[i]; if (sdav instanceof TimeAspectValue) end_time = ((TimeAspectValue) values[i]).longValue(); else end_time = sdav.longValue(); }
    public static long arTime(AllocationResult ar) {	AspectValue[] values = ar.getAspectValueResults();	long start_time = -1;	long end_time = -1;	for (int i = 0; i < values.length; i++) {	    if (values[i].getAspectType() == AspectType.START_TIME) {		AspectValue sdav = values[i];		if (sdav instanceof TimeAspectValue)		    start_time = ((TimeAspectValue)values[i]).longValue();		else		    start_time = sdav.longValue();	    }	    if (values[i].getAspectType() == AspectType.END_TIME) {		AspectValue sdav = values[i];		if (sdav instanceof TimeAspectValue)		    end_time = ((TimeAspectValue)values[i]).longValue();		else		    end_time = sdav.longValue();	    }	}	if(end_time < 0 ) {	    return 0;	}	return end_time/100000;    }