1 package org.simantics.modeling.typicals;
3 import org.simantics.db.Resource;
4 import org.simantics.db.WriteGraph;
5 import org.simantics.db.exception.DatabaseException;
8 * Represents a single or composed synchronization operation from a typical
9 * template diagram element to an instance of the same element.
11 * @author Tuukka Lehtonen
13 public interface ITypicalSynchronizationRule {
17 * @param template the template source of synchronization
18 * @param instance the target instance of synchronization
20 * @return <code>true</code> if synchronization made changes to the database
21 * @throws DatabaseException
23 boolean synchronize(WriteGraph graph, Resource template, Resource instance, TypicalInfo info)
24 throws DatabaseException;