edu.udo.cs.miningmart.gui.model
Class MiningMartChain

java.lang.Object
  extended byorg.musoft.limo.model.ModelElement
      extended byorg.musoft.limo.model.ModelFigureElement
          extended byorg.musoft.limo.model.Model
              extended byedu.udo.cs.miningmart.gui.model.MiningMartModel
                  extended byedu.udo.cs.miningmart.gui.model.MiningMartChain

public class MiningMartChain
extends MiningMartModel

A wrapper for Chains. A MiningMartChain could be a child of a MiningMartCase or of a MiningMartChain.

Version:
$Id: MiningMartChain.java,v 1.4 2006/04/11 14:10:15 euler Exp $
Author:
Daniel Hakenjos

Field Summary
 
Fields inherited from class edu.udo.cs.miningmart.gui.model.MiningMartModel
mayChangeDocumentation
 
Constructor Summary
MiningMartChain(MiningMartApplication app, Case thecase, Chain chain, java.lang.String casename, java.awt.Point point, java.awt.Rectangle bounds, org.musoft.limo.model.ModelFigureElement parent)
          Creates a new MiningMartChain with the given parameters.
 
Method Summary
 MiningMartChain addMiningMartChain(org.musoft.limo.model.ModelFigureElement parent, MiningMartChain chain)
          Adds a MiningMartChain to this MiningMartChain.
 MiningMartStep addMiningMartStep(org.musoft.limo.model.ModelFigureElement parent, MiningMartStep step)
          Adds a MiningMartStep to this MiningMartChain.
 StepTransition addStepTransition(StepTransition transition)
          Adds the specified StepTransition to this MiningMartChain.
 boolean canDeleteInDatabase()
          Gets the flag indicating that this obkect can be deleted in the database.
 boolean canDestroy()
           
 boolean canSetParent(org.musoft.limo.model.ModelFigureElement parent)
           
 MiningMartChain createMiningMartChain(org.musoft.limo.model.ModelFigureElement parent, Chain chain, java.awt.Point point, java.awt.Rectangle bounds)
          Creates a new MiningMartChain.
 MiningMartChain createMiningMartChain(org.musoft.limo.model.ModelFigureElement parent, java.lang.String name, java.awt.Point point, java.awt.Rectangle bounds)
          Creates a new MiningMartChain.
 MiningMartStep createMiningMartStep(org.musoft.limo.model.ModelFigureElement parent, Step step, java.awt.Point position, java.awt.Rectangle bounds)
          Creates a new MiningMartStep with the specified parameters.
 MiningMartStep createMiningMartStep(org.musoft.limo.model.ModelFigureElement parent, java.lang.String opname, java.awt.Point position, java.awt.Rectangle bounds)
          Creates a new MiningMartStep with the specified parameters.
 StepTransition createTransition(java.lang.String name, org.musoft.limo.model.ModelFigureElement start, org.musoft.limo.model.ModelFigureElement end, boolean existsTransition)
          Creates a new StepTransition.
 int decrementTransitionCounter()
          Decrements the counter for the transitions.
 void destroy()
          Destroys the MiningMartChain and deletes the underlying Chain.
 void dissolveMiningMartChain(MiningMartChain mchain)
          Dissolves the specified MiningMartChain.
 boolean existsTransition(org.musoft.limo.model.ModelFigureElement start, org.musoft.limo.model.ModelFigureElement end)
          Checks wether a transition between the specified ModelFigureElements exists.
 Chain getChain()
          Gets the Chain.
 MiningMartApplication getMMartApplication()
          Gets the MiningMartAplication.
 java.lang.String getName()
          Gets the name of the MiningMartChain.
 java.awt.Point getOrigin()
           
 Case getTheCase()
          Gets the Case.
 int getTransitionCounter()
          Gets the counter for the transitions.
 java.lang.String getType()
           
 int incrementTransitionCounter()
          Increments the counter for the transitions.
 void initTheChain()
          Inits this MiningMartChain.
 void organizeTransitions(boolean check)
          Adds transitions to the model if the case contains dependencies.
 void primitiveAttributeChanged(org.musoft.limo.model.ModelPrimitiveAttribute mpa)
          If the description of this MiningMartChain changed then set the documentation of the underlying Chain.
 void setDeleteInDatabase(boolean bool, boolean propagate)
          Sets the flag that this object could be deleted in the database.
 void setName(java.lang.String name)
          Sets the name of the MiningMartChain.
 
Methods inherited from class org.musoft.limo.model.Model
addConnection, canAddChild, canRemoveChild, changed, getChildOrConnection, getConnection, getConnection, getConnectionCount, getConnections, getDirty, getElement, getRootModel, getValidConnectionName, indexOfConnection, indexOfConnection, removeConnection, removeConnection, setDirty
 
Methods inherited from class org.musoft.limo.model.ModelFigureElement
addChild, canSetBounds, canSetName, canSetPosition, clear, fireAddChild, fireCreateChild, fireCreateConnection, fireRemoveChild, fireSetParent, getBounds, getCenter, getChild, getChild, getChildCount, getChildren, getChildren, getChildren, getCorner, getFullName, getMaximumBounds, getMinimumBounds, getModel, getNeededBounds, getParent, getPosition, getValidChildName, indexOfChild, indexOfChild, isChildOf, layout, removeChild, setBounds, setBounds, setCenter, setIndex, setParent, setPosition, setPosition
 
Methods inherited from class org.musoft.limo.model.ModelElement
addAttribute, addAttributeNew, addListener, associationEndChanged, dump, fireDestroy, fireSetName, getAttribute, getAttribute, getAttributeCount, getListener, getListenerCount, indexOfAttribute, removeListener, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MiningMartChain

public MiningMartChain(MiningMartApplication app,
                       Case thecase,
                       Chain chain,
                       java.lang.String casename,
                       java.awt.Point point,
                       java.awt.Rectangle bounds,
                       org.musoft.limo.model.ModelFigureElement parent)
Creates a new MiningMartChain with the given parameters.

Method Detail

setDeleteInDatabase

public void setDeleteInDatabase(boolean bool,
                                boolean propagate)
Sets the flag that this object could be deleted in the database.


canDeleteInDatabase

public boolean canDeleteInDatabase()
Gets the flag indicating that this obkect can be deleted in the database.


getTransitionCounter

public int getTransitionCounter()
Gets the counter for the transitions.


incrementTransitionCounter

public int incrementTransitionCounter()
Increments the counter for the transitions.


decrementTransitionCounter

public int decrementTransitionCounter()
Decrements the counter for the transitions.


getMMartApplication

public MiningMartApplication getMMartApplication()
Gets the MiningMartAplication.


initTheChain

public void initTheChain()
Inits this MiningMartChain.


organizeTransitions

public void organizeTransitions(boolean check)
                         throws M4Exception
Adds transitions to the model if the case contains dependencies.

Throws:
M4Exception

existsTransition

public boolean existsTransition(org.musoft.limo.model.ModelFigureElement start,
                                org.musoft.limo.model.ModelFigureElement end)
Checks wether a transition between the specified ModelFigureElements exists.

Returns:
true if there exits a transition.

addMiningMartStep

public MiningMartStep addMiningMartStep(org.musoft.limo.model.ModelFigureElement parent,
                                        MiningMartStep step)
Adds a MiningMartStep to this MiningMartChain.


createMiningMartStep

public MiningMartStep createMiningMartStep(org.musoft.limo.model.ModelFigureElement parent,
                                           java.lang.String opname,
                                           java.awt.Point position,
                                           java.awt.Rectangle bounds)
Creates a new MiningMartStep with the specified parameters.

Parameters:
parent - The created MiningMartStep is child of this ModelFigureElement.
opname - the name of the operator of the step.
position - the MiningMartStep is placed at this point.
bounds - the bounds of the figure.
Returns:
null if creating the MiningMartStep is permitted

createMiningMartStep

public MiningMartStep createMiningMartStep(org.musoft.limo.model.ModelFigureElement parent,
                                           Step step,
                                           java.awt.Point position,
                                           java.awt.Rectangle bounds)
Creates a new MiningMartStep with the specified parameters.

Parameters:
parent - The created MiningMartStep is child of this ModelFigureElement.
position - the MiningMartStep is placed at this point.
bounds - the bounds of the figure.
Returns:
null if creating the MiningMartStep is permitted

addMiningMartChain

public MiningMartChain addMiningMartChain(org.musoft.limo.model.ModelFigureElement parent,
                                          MiningMartChain chain)
Adds a MiningMartChain to this MiningMartChain.


createMiningMartChain

public MiningMartChain createMiningMartChain(org.musoft.limo.model.ModelFigureElement parent,
                                             java.lang.String name,
                                             java.awt.Point point,
                                             java.awt.Rectangle bounds)
Creates a new MiningMartChain.

Parameters:
parent - the MiningMartChain is child of this ModelFigureElement.
name - the name of the MiningMartChain
point - the MiningMartChain is placed at this point.
bounds - the bounds of the figure.

createMiningMartChain

public MiningMartChain createMiningMartChain(org.musoft.limo.model.ModelFigureElement parent,
                                             Chain chain,
                                             java.awt.Point point,
                                             java.awt.Rectangle bounds)
Creates a new MiningMartChain.

Parameters:
parent - the MiningMartChain is child of this ModelFigureElement.
chain - the created MiningMartChain wrapps this Chain.
point - the MiningMartChain is placed at this point.
bounds - the bounds of the MiningMartChain.

addStepTransition

public StepTransition addStepTransition(StepTransition transition)
Adds the specified StepTransition to this MiningMartChain.


createTransition

public StepTransition createTransition(java.lang.String name,
                                       org.musoft.limo.model.ModelFigureElement start,
                                       org.musoft.limo.model.ModelFigureElement end,
                                       boolean existsTransition)
Creates a new StepTransition.

Parameters:
start - the StepTransition starts at this ModelFigureElement.
end - the StepTransition ends at this ModelFigureElement.
existsTransition - if the transition exists then no new TransitionFigure is added.

canSetParent

public boolean canSetParent(org.musoft.limo.model.ModelFigureElement parent)

getOrigin

public java.awt.Point getOrigin()

getType

public java.lang.String getType()

getName

public java.lang.String getName()
Gets the name of the MiningMartChain.

Returns:
returns the name of the Chain
See Also:
M4Object.getName()

setName

public void setName(java.lang.String name)
Sets the name of the MiningMartChain. It means it sets the name of the Chain.

See Also:
M4Object.setName(String)

primitiveAttributeChanged

public void primitiveAttributeChanged(org.musoft.limo.model.ModelPrimitiveAttribute mpa)
If the description of this MiningMartChain changed then set the documentation of the underlying Chain.

Overrides:
primitiveAttributeChanged in class MiningMartModel
See Also:
ModelElement.primitiveAttributeChanged(ModelPrimitiveAttribute)

getTheCase

public Case getTheCase()
Gets the Case.


getChain

public Chain getChain()
Gets the Chain.


canDestroy

public boolean canDestroy()

destroy

public void destroy()
Destroys the MiningMartChain and deletes the underlying Chain.

See Also:
ModelElement.destroy()

dissolveMiningMartChain

public void dissolveMiningMartChain(MiningMartChain mchain)
                             throws M4Exception
Dissolves the specified MiningMartChain.

Throws:
M4Exception


Copyright © 2001-2005