net.sourceforge.toscanaj.controller.fca
Class ConceptInterpretationContext

java.lang.Object
  extended bynet.sourceforge.toscanaj.controller.fca.ConceptInterpretationContext
All Implemented Interfaces:
ChangeObserver

public class ConceptInterpretationContext
extends java.lang.Object
implements ChangeObserver

To do:
remove the objectDisplayMode out of this class, it is not really part of the interpretetation context, but an aspect of a certain view. Having it in here caused troubles with requerying since the interpreter assumed a context change whenever the view was changed and thus queried the same information again. This is by now avoided by not using the display mode in equals()/hashCode(), but this is of course only half a solution.

Field Summary
static boolean CONTINGENT
          Constant value which may be used to set displayMode or filterMode
static boolean EXTENT
          Constant value which may be used to set displayMode or filterMode
 
Constructor Summary
ConceptInterpretationContext(DiagramHistory diagramHistory, org.tockit.events.EventBroker eventBroker)
           
 
Method Summary
 ConceptInterpretationContext createNestedContext(Concept nestingConcept)
           
 boolean equals(java.lang.Object other)
          Caution: equals(..) and hashCode() ignore the display mode.
 DiagramHistory getDiagramHistory()
           
 org.tockit.events.EventBroker getEventBroker()
           
 boolean getFilterMode()
           
 java.util.List getNestingConcepts()
           
 java.util.List getNestingContexts()
           
 boolean getObjectDisplayMode()
           
 ConceptInterpretationContext getOutermostContext()
           
 Concept getOutermostTopConcept(Concept concept)
           
 int hashCode()
          Caution: equals(..) and hashCode() ignore the display mode.
 void setFilterMode(boolean isContingent)
           
 void setObjectDisplayMode(boolean isContingent)
           
 void update(java.lang.Object source)
          Callback for getting notice on changes.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONTINGENT

public static final boolean CONTINGENT
Constant value which may be used to set displayMode or filterMode

See Also:
Constant Field Values

EXTENT

public static final boolean EXTENT
Constant value which may be used to set displayMode or filterMode

See Also:
Constant Field Values
Constructor Detail

ConceptInterpretationContext

public ConceptInterpretationContext(DiagramHistory diagramHistory,
                                    org.tockit.events.EventBroker eventBroker)
Method Detail

createNestedContext

public ConceptInterpretationContext createNestedContext(Concept nestingConcept)

getEventBroker

public org.tockit.events.EventBroker getEventBroker()

setObjectDisplayMode

public void setObjectDisplayMode(boolean isContingent)

getObjectDisplayMode

public boolean getObjectDisplayMode()

setFilterMode

public void setFilterMode(boolean isContingent)

getFilterMode

public boolean getFilterMode()

getDiagramHistory

public DiagramHistory getDiagramHistory()

getNestingConcepts

public java.util.List getNestingConcepts()

getNestingContexts

public java.util.List getNestingContexts()

getOutermostTopConcept

public Concept getOutermostTopConcept(Concept concept)

update

public void update(java.lang.Object source)
Description copied from interface: ChangeObserver
Callback for getting notice on changes.

Specified by:
update in interface ChangeObserver

equals

public boolean equals(java.lang.Object other)
Caution: equals(..) and hashCode() ignore the display mode.


hashCode

public int hashCode()
Caution: equals(..) and hashCode() ignore the display mode.


getOutermostContext

public ConceptInterpretationContext getOutermostContext()


The ToscanaJ project