*/
private void fillComparisonEvent(MeasurementEventImpl me, Compare chr, CompareResult cr) {
me.setAgent(new MeasurementAgent(chr.describe()));
me.setDate(Calendar.getInstance());
for( PropertyComparison pc : cr.getComparisons() ) {
MeasurementImpl m = new MeasurementImpl( me, pc.getComparison());
MeasurementTarget mt = new MeasurementTarget();
mt.setType(TargetType.DIGITAL_OBJECT_PAIR);
// Get data on the first object:
mt.getDigitalObjects().add(0, this.getDobUri1() );
mt.setDigitalObjectProperties(0, pc.getFirstProperties());
log.info("Got PC1: "+pc.getFirstProperties());
// Get data on the second object:
mt.getDigitalObjects().add(1, this.getDobUri2() );
mt.setDigitalObjectProperties(1, pc.getSecondProperties());
log.info("Got PC2: "+pc.getSecondProperties());
// Add to the measurement:
m.setTarget( mt );
// Equivalence Data:
m.setEquivalence(pc.getEquivalence());
me.addMeasurement(m);
}
}