|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Observable
agg.util.ExtObservable
agg.xt_basis.OrdinaryMorphism
agg.xt_basis.Rule
agg.xt_basis.SubRule
public class SubRule
Note: A lot of NAC problems remain unsolved with respect to subrules, even on the ALR level:
->
superrule NACs can't be added ("addNAC()") to a
subrule because the left side of the subrule is only a subgraph of the
superrule.
->
what happens if a NAC created by a subrule is edited
via the superrule? The additional parts of the superrule's left side should
never be involved! =>
read only mode?
->
what happens if a NAC is removed from a subrule -
should it also be removed from the superrule?
->
what happens if a NAC created by a subrule is removed
from the super- rule? It will have to be removed from the subrule as well!
Field Summary |
---|
Fields inherited from class agg.xt_basis.Rule |
---|
applicable, atom_conditions, changedPreserved, constraintNamesSet, constraints, created, deleted, forbiden, generatePostConstraints, isChanging, isCreating, isDeleting, isReady, itsNACs, itsPACs, itsUsedAtomics, itsUsedFormulas, layer, parallelMatching, preserved, priority, triggerOfLayer, typesWhichNeedMultiplicityCheck |
Fields inherited from class agg.xt_basis.OrdinaryMorphism |
---|
cKeepContext, comment, enabled, errorMsg, errors, itsAttrContext, itsAttrManager, itsAttrMappings, itsCodomObjects, itsCoMorph, itsCompleter, itsDomObjects, itsImag, itsInteractiveFlag, itsName, itsOrig, itsTouchedFlag, partialMorphCompletion, removeAttrMapping, typeObjectsMapChanged |
Constructor Summary | |
---|---|
protected |
SubRule(Rule superrule)
Deprecated. |
protected |
SubRule(Rule superrule,
SubGraph left,
SubGraph right)
Deprecated. |
Method Summary | |
---|---|
protected void |
addAttrMapping(AttrInstance o,
AttrInstance i)
Deprecated. |
void |
addMapping(GraphObject o,
GraphObject i)
Deprecated. Map an object of source graph to an object of target graph. |
OrdinaryMorphism |
createNAC()
Deprecated. Ueberschreibt die entsprechende Methode von Rule. |
void |
dispose()
Deprecated. Remove all graph object mappings and all relations to its source and target graphs. |
Match |
getMatch()
Deprecated. Returns my current match |
OrdinarySubMorphism |
getSubMorphism()
Deprecated. |
Rule |
getSuperRule()
Deprecated. |
protected void |
removeAttrMapping(AttrInstance o)
Deprecated. |
void |
removeMapping(GraphObject o)
Deprecated. Remove the mapping of a given GraphObject. |
Methods inherited from class java.util.Observable |
---|
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected SubRule(Rule superrule)
protected SubRule(Rule superrule, SubGraph left, SubGraph right)
Method Detail |
---|
public void dispose()
OrdinaryMorphism
dispose
in interface Disposable
dispose
in class Rule
Change_ObservableGone
public final OrdinarySubMorphism getSubMorphism()
public final Rule getSuperRule()
public OrdinaryMorphism createNAC()
createNAC
in class Rule
nac
with
nac.getOriginal() == this.getOriginal()
.public Match getMatch()
Rule
getMatch
in class Rule
public final void addMapping(GraphObject o, GraphObject i) throws BadMappingException
OrdinaryMorphism
Pre:
o
is an element of getOriginal()
. *
i
is an element of getImage()
. *
addMapping
in class OrdinaryMorphism
o
- the source object of the mapping. *i
- the target object of the mapping. *
BadMappingException
- if the given mapping violates morphism properties. *public final void removeMapping(GraphObject o)
OrdinaryMorphism
Pre:
Pre: getImage(o) != null
*
removeMapping
in class OrdinaryMorphism
protected final void addAttrMapping(AttrInstance o, AttrInstance i)
addAttrMapping
in class OrdinaryMorphism
protected final void removeAttrMapping(AttrInstance o)
removeAttrMapping
in class OrdinaryMorphism
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |