de.fau.cs.www8.jadeowlcodec
Class CheckedCumulatingASetUpdater

java.lang.Object
  extended by de.fau.cs.www8.jadeowlcodec.AbstractASetUpdater
      extended by de.fau.cs.www8.jadeowlcodec.CheckedCumulatingASetUpdater
All Implemented Interfaces:
ASetUpdater

public class CheckedCumulatingASetUpdater
extends AbstractASetUpdater
implements ASetUpdater

An ASetUpdater that simply adds all property values and asserted classes, only removing old property values if a maxCardinality is exactly fullfilled by the new data and fails safely if any inconsistency is met Note that this does not check for completeness, as there will likely be some referenced individuals without property fillers included as property fillers of "first class message citizens"

Author:
Ulf Schreiber

Constructor Summary
CheckedCumulatingASetUpdater()
           
 
Method Summary
 boolean copyIndividuals(java.util.Set<Uri.Individual> individuals, AssertionSet from, AssertionSet to)
           
 
Methods inherited from class de.fau.cs.www8.jadeowlcodec.AbstractASetUpdater
copyEveryIndividual
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface de.fau.cs.www8.jadeowlcodec.ASetUpdater
copyEveryIndividual
 

Constructor Detail

CheckedCumulatingASetUpdater

public CheckedCumulatingASetUpdater()
Method Detail

copyIndividuals

public boolean copyIndividuals(java.util.Set<Uri.Individual> individuals,
                               AssertionSet from,
                               AssertionSet to)
Specified by:
copyIndividuals in interface ASetUpdater
from - AssertionSet to copy data from
to - AssertionSet to copy into, must not remove existing GenericIndividuals
Returns:
false if the update failed


Copyright 2007 Moritz Goeb, Bernhard Schiemann, Ulf Schreiber of Chair of Artificial Intelligence, University of Erlangen-Nuremberg