Condition(ReadGraph graph, Resource r) throws DatabaseException {
this(r);
+ ElementSelectionResource ES = ElementSelectionResource.getInstance(graph);
isInverse = graph.hasStatement(r, ES.Condition_IsInverse, r);
}
public abstract boolean match(ReadGraph graph, Resource r) throws DatabaseException;
public Resource update(WriteGraph graph) throws DatabaseException {
+ ElementSelectionResource ES = ElementSelectionResource.getInstance(graph);
+
assert(resource != null);
if (isInverse)
graph.claim(resource, ES.Condition_IsInverse, resource);
public PropertyCondition(ReadGraph graph, Resource r) throws DatabaseException {
super(graph, r);
+ ElementSelectionResource ES = ElementSelectionResource.getInstance(graph);
this.propertyName = graph.getRelatedValue(resource, ES.PropertyCondition_HasPropertyName);
this.lowerLimit = graph.getPossibleRelatedValue(resource, ES.PropertyCondition_HasLowerLimit);
this.upperLimit = graph.getPossibleRelatedValue(resource, ES.PropertyCondition_HasUpperLimit);
public RegionCondition(ReadGraph graph, Resource r) throws DatabaseException {
super(graph, r);
+ ElementSelectionResource ES = ElementSelectionResource.getInstance(graph);
DiagramRegionsResource DR = DiagramRegionsResource.getInstance(graph);
this.regionResource = graph.getPossibleObject(resource, ES.RegionCondition_HasRegion);
this.region = regionResource != null ? graph.getRelatedValue(regionResource, DR.Region_area) : null;
@Override
public Resource update(WriteGraph graph) throws DatabaseException {
- ElementSelectionResource ES = ElementSelectionResource.getInstance(graph);
Layer0 L0 = Layer0.getInstance(graph);
+ ElementSelectionResource ES = ElementSelectionResource.getInstance(graph);
+ DiagramRegionsResource DR = DiagramRegionsResource.getInstance(graph);
if (resource == null) {
resource = graph.newResource();
graph.claim(resource, ES.RegionCondition_HasRegion, regionResource);
// Re-read region data to match DB
- DiagramRegionsResource DR = DiagramRegionsResource.getInstance(graph);
this.region = regionResource != null ? graph.getRelatedValue(regionResource, DR.Region_area, Bindings.DOUBLE_ARRAY) : null;
this.path = createPathForRegion(region);
@Override
public Resource update(WriteGraph graph) throws DatabaseException {
- ElementSelectionResource ES = ElementSelectionResource.getInstance(graph);
Layer0 L0 = Layer0.getInstance(graph);
+ ElementSelectionResource ES = ElementSelectionResource.getInstance(graph);
if (resource == null) {
resource = graph.newResource();