|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Case
| Field Summary | |
|---|---|
static java.lang.String |
DESIGN_MODE
Constant that can be used to set the Case Mode to DESIGN |
static java.lang.String |
FINAL_MODE
Constant that can be used to set the Case Mode to FINAL |
static java.lang.String |
TEST_MODE
Constant that can be used to set the Case Mode to TEST |
| Method Summary | |
|---|---|
void |
addChain(Chain chain)
Adds a new Chain to this case. |
void |
addConcept(Concept con)
Adds a new Concept to this case. |
void |
addStep(Step step)
Adds a Step to this Case. |
void |
addStepDependency(Step before,
Step after)
This method adds dependencies between Steps and brings the
Steps in a sequential order again, if necessary and if they
have been in sequential order before adding the dependency. |
void |
arrangeConceptsOnGrid(int gridLength)
Rounds all coordinates of concepts of this case so that their new value modulo the given gridLength is 0. |
void |
arrangeStepsOnGrid(int gridLength)
Rounds all coordinates of steps of this case so that their new value modulo the given gridLength is 0. |
boolean |
containsDependency(Step before,
Step after)
Checks for a direct (explicitly added) dependency between the two Steps. |
Case |
copy()
|
Chain |
createChain(java.lang.String name)
Creates an empty Chain belonging to this Case. |
Chain |
createChain(java.lang.String name,
java.util.Collection stepsAndChains)
Creates a Chain that subsumes the given steps and chains. |
Concept |
createConcept(java.lang.String name,
java.lang.String type)
Creates an empty Concept belonging to this Case. |
Concept |
createConceptAndRelationsFromTables(java.lang.String tableName)
This method creates a Columnset and Concept for the given table/view name, and also creates a Columnset and Concept for EVERY table that is referenced from the first one by a foreign key reference, and also creates an M4 Relation for those references. |
Concept |
createConceptFromColumnset(Columnset cs)
Creates a Concept that belongs to this Case and is connected to the given Columnset. |
Concept |
createConceptFromTable(java.lang.String tableName)
Creates a Concept that belongs to this Case and that directly models a database table or view with the given name. |
Relation |
createManyToManyRelation(java.lang.String relName,
java.util.Collection fromConceptKeyAttribs,
java.util.Collection toConceptKeyAttribs,
java.lang.String crossTableName,
java.util.Collection crossLinkToFromConceptNames,
java.util.Collection crossLinkToToConceptNames)
Creates a many-to-many relation. |
java.util.Collection |
createManyToManyRelationsFromCrossTable(java.lang.String crossTableName,
java.util.Collection<java.lang.String> allowedDbObjects)
Creates many-to-many relations with the given table name as cross table. |
Relation |
createOneToManyRelation(java.lang.String relName,
java.util.Collection fromConceptKeyAttribs,
java.util.Collection toConceptKeyAttribs)
Creates a one-to-many relation. |
Step |
createStep(java.lang.String name)
Creates an empty Step belonging to this Case. |
Step |
findCandidateStepForMaterialisation()
This method goes through all steps of this case and tries to find a step whose output concept deserves materialisation. |
DataModelConnection |
findEntryPoint(java.util.Collection<Concept> targetDataModel,
MmSchemaMatcher theMatcher)
Returns the best connection from any initial or intermediate data model of this case to the given target data model. |
DataModelConnection |
findMatchingForInputDataModel(java.util.Collection<Concept> targetDataModel,
MmSchemaMatcher theMatcher)
Tries to match the initial concepts of this case (of type DB) to the concepts given as targetDataModel. |
DataModelConnection |
findMatchingForResultingDataModel(Step theStep,
java.util.Collection<Concept> targetDataModel,
MmSchemaMatcher theMatcher)
Tries to match the resulting data view of the given step to the concepts given as targetDataModel. |
java.util.Collection |
getAllChains()
Active getter of the Chains of this Case. |
java.util.Collection |
getAllConceptNames()
Gets the names of all concepts. |
java.util.Collection |
getAllRelations()
Returns all Relations that this Case has. |
java.util.Collection |
getAllStepNames()
Returns a Collection with all Step names in the current Case. |
Chain |
getChainByName(java.lang.String name)
Retrieve a Chain by its name. |
Concept |
getConcept(java.lang.String conceptName)
|
java.util.Collection |
getConcepts()
Active getter of the Concepts of this Case. |
java.util.Collection |
getDependentStepsFor(Step step)
Gets a Collection of the stepIds that are dependent on
the given step, ie must be compiled after the given step. |
java.util.Collection |
getDirectlyDependentSteps(Step step)
Gets a Collection of the steps that are directly
dependent on the given step. |
java.util.Collection |
getFinalSteps()
Returns all steps of this case that do not have a successor. |
java.util.Collection |
getInputDataModel()
Returns a collection of all concepts of type DB in this Case. |
java.lang.String |
getNewNameOfChangedFeature(java.lang.String oldName)
Returns the new name of the feature with the given old name, if that new name was stored previously using storeChangedNameOfFeature(String,String). |
int |
getNumberOfSteps()
|
java.lang.String |
getOldNameOfChangedFeature(java.lang.String newName)
Returns the old name of the feature with the given new name, if that old name was stored previously using storeChangedNameOfFeature(String,String). |
java.util.Map |
getOperatorToStepMap()
Returns a map that maps operators that occur in this case to a collection of the steps in which they occur. |
Step |
getPredecessorIdOf(Step step)
Gets the predecessor step, given the calculated sequential order. |
Relation |
getRelation(java.lang.String relationName)
Returns the relation with the given name if any exists; otherwise NULL is returned. |
java.util.Iterator |
getReverseIterator()
|
Step |
getStepByName(java.lang.String name)
This method finds a Step related to this Case
by the Step's M4 name |
Step |
getStepIdNo(int i)
Gets the step i in sequential order. |
java.util.Iterator |
getStepIterator()
|
java.util.Collection |
getStepsToCompileBefore(Step step,
boolean ignoreCompiledStatusOfSteps)
This method returns a Collection of all Steps on which the given Step is dependent. |
Step |
getSuccessorOf(Step step)
Gets the successor step, given the calculated sequential order. |
java.lang.String |
getTheMode()
Get the Case mode. |
java.util.Vector |
getTheSteps()
Active getter |
java.util.Collection |
getTopLevelChains()
Active getter of the Chains of this Case. |
int |
indexOfStep(Step step)
|
void |
insertMaterialisationAfterStep(Step precedingStep,
Step materialisingStep)
This method adjusts the parameters of the given steps because the second one was inserted after the first one |
void |
putConceptsOnGrid()
This method arranges the concepts of this case on a grid without using their previous positions. |
void |
removeAllSteps()
All Steps of a Case will be removed including their Parameters. |
boolean |
removeChain(Chain chain)
Removes a Chain from this case. |
void |
removeChain(java.lang.String name)
Remove a Chain by its name. |
boolean |
removeConcept(Concept con)
Removes a Concept from this case. |
boolean |
removeStep(Step step)
Removes a Step and all of its dependencies from this
Case. |
void |
removeStep(java.lang.String name)
The specified Step will be removed including its Parameters. |
boolean |
removeStepDependency(Step before,
Step after)
A dependency (or edge in graph terminology) between the two Steps
is removed. |
void |
resolveChain(Chain toBeResolved)
The given chain will be resolved if it is a top level chain and if it does not have any Steps, only subchains. |
void |
setTheMode(java.lang.String newMode)
Set the Case mode. |
java.util.Collection |
sortSteps(java.util.Collection someSteps)
Sorts a collection of steps according to the global step order given by the step transitions/dependencies. |
void |
store()
Write all M4 data pertaining to this case through to the database. |
void |
storeChangedNameOfFeature(java.lang.String oldName,
java.lang.String newName)
Serves to remember a changed feature name globally. |
| Methods inherited from interface edu.udo.cs.miningmart.m4.M4Data |
|---|
deleteSoon, getDocumentation, getValidName, isDirty, isWaitingForDelete, setDocumentation |
| Methods inherited from interface edu.udo.cs.miningmart.m4.M4Object |
|---|
doPrint, doPrint, equals, executeBusinessSingleValueSqlRead, executeBusinessSingleValueSqlReadL, executeBusinessSqlRead, executeBusinessSqlWrite, executeM4SingleValueSqlRead, executeM4SingleValueSqlReadL, executeM4SqlRead, executeM4SqlWrite, getCasePrintObject, getId, getM4Db, getM4ObjectFromCache, getName, getNextM4SequenceValue, isNew, load, print, putM4ObjectToCache, replaceSpacesInName, setId, setName, setNotNew |
| Field Detail |
|---|
static final java.lang.String TEST_MODE
static final java.lang.String DESIGN_MODE
static final java.lang.String FINAL_MODE
| Method Detail |
|---|
void addStepDependency(Step before,
Step after)
throws M4Exception
Steps and brings the
Steps in a sequential order again, if necessary and if they
have been in sequential order before adding the dependency.
before - a Step part of this Caseafter - a Step part of this Case and depending
on Step before.
M4Exception
boolean containsDependency(Step before,
Step after)
throws M4Exception
Steps.
stepBefore - a Step part of this CasestepAfter - another Step part of this Case
true if the second Step directly depends on
the first one. If one of the Steps is not part of the
Case then false is returned.
M4Exception
boolean removeStepDependency(Step before,
Step after)
throws M4Exception
Steps
is removed.
before - a Step part of this Caseafter - a Step part of this Case,
and depending on Step before
true iff the dependency was found and could be removed
M4Exception
void setTheMode(java.lang.String newMode)
throws M4Exception
newMode - The new case mode. Use the public static variables
TESTMODE and FINALMODE of this class.
M4Exceptionjava.lang.String getTheMode()
DataModelConnection findMatchingForInputDataModel(java.util.Collection<Concept> targetDataModel,
MmSchemaMatcher theMatcher)
throws SchemaMatchException,
M4Exception
targetDataModel - theMatcher -
SchemaMatchException
M4Exception
DataModelConnection findEntryPoint(java.util.Collection<Concept> targetDataModel,
MmSchemaMatcher theMatcher)
throws SchemaMatchException,
M4Exception
targetDataModel - theMatcher -
SchemaMatchException
M4Exception
DataModelConnection findMatchingForResultingDataModel(Step theStep,
java.util.Collection<Concept> targetDataModel,
MmSchemaMatcher theMatcher)
throws SchemaMatchException,
M4Exception
theStep - the given steptargetDataModel - theMatcher -
SchemaMatchException
M4Exception
Step getStepIdNo(int i)
throws M4Exception
M4Exception
int getNumberOfSteps()
throws M4Exception
M4Exception
Step getPredecessorIdOf(Step step)
throws M4Exception
step - The step for which the predecessor is wanted.
M4Exception
Step getSuccessorOf(Step step)
throws M4Exception
step - The step for which the successor is wanted.
M4Exception
int indexOfStep(Step step)
throws M4Exception
Sequentializer!
M4Exception
java.util.Iterator getStepIterator()
throws M4Exception
Sequentializer.
M4Exception
java.util.Iterator getReverseIterator()
throws M4Exception
Sequentializer!
M4Exception
java.util.Collection getDependentStepsFor(Step step)
throws M4Exception
Collection of the stepIds that are dependent on
the given step, ie must be compiled after the given step.
startStepId - The step for which the dependent steps are wanted.
M4Exception
java.util.Collection getStepsToCompileBefore(Step step,
boolean ignoreCompiledStatusOfSteps)
throws M4Exception
step - the Step whose preceding graph is returnedignoreCompiledStatusOfSteps - if TRUE, *all* Steps that lead
to the given Step are returned; if FALSE, only those starting
at the last compiled Step on each path that leads to the given Step
are returned.
M4Exception
java.util.Collection getDirectlyDependentSteps(Step step)
throws M4Exception
Collection of the steps that are directly
dependent on the given step. This is useful for the HCI to just
visualize the explicitly stored dependencies.
step - The step for which the dependent steps are wanted.
null,
if the specified Step is not found.
M4Exception
java.util.Collection sortSteps(java.util.Collection someSteps)
throws M4Exception
someSteps - The collection of steps to be sorted
M4Exception
void storeChangedNameOfFeature(java.lang.String oldName,
java.lang.String newName)
oldName - newName - java.lang.String getNewNameOfChangedFeature(java.lang.String oldName)
oldName - the old name
java.lang.String getOldNameOfChangedFeature(java.lang.String newName)
newName - the new name
java.util.Collection getAllConceptNames()
throws M4Exception
M4Exception
java.util.Collection getConcepts()
throws M4Exception
Collection of Concepts
M4Exception
java.util.Collection getInputDataModel()
throws M4Exception
Collection of Concepts
M4Exception
void addConcept(Concept con)
throws M4Exception
con - the new Concept
M4Exception
boolean removeConcept(Concept con)
throws M4Exception
con - the Concept to be removed
true if Concept was found and could
be removed
M4Exception
java.util.Collection getAllChains()
throws M4Exception
getTopLevelChains.
Collection of Chains
M4Exception
java.util.Collection getTopLevelChains()
throws M4Exception
getAllChains.
Collection of Chains
M4Exception
Chain getChainByName(java.lang.String name)
throws M4Exception
name - the Name
M4Exception
void removeChain(java.lang.String name)
throws M4Exception
name - the Name
M4Exception
void addChain(Chain chain)
throws M4Exception
chain - the new Chain
M4Exception
boolean removeChain(Chain chain)
throws M4Exception
chain - the Chain to be removed
true if Chain was found and could
be removed
M4Exception
Step getStepByName(java.lang.String name)
throws M4Exception
Step related to this Case
by the Step's M4 name
name - the name of the Step object
Step or null
M4Exception
java.util.Vector getTheSteps()
throws M4Exception
Collection of all Steps of this Case
M4Exception
void addStep(Step step)
throws M4Exception
Step to this Case.
step - the Step to be added
M4Exception
boolean removeStep(Step step)
throws M4Exception
Step and all of its dependencies from this
Case.
step - the Step to be added
M4Exception
Case copy()
throws M4Exception
M4Exception
Step createStep(java.lang.String name)
throws M4Exception
CreateException - when an error occurs during creation of the object.
NameExistsException - when the provided name already exists.
M4Exception
java.util.Collection getAllStepNames()
throws M4Exception
M4Exception
void removeStep(java.lang.String name)
throws M4Exception
M4Exception
void removeAllSteps()
throws M4Exception
M4Exception
Step findCandidateStepForMaterialisation()
throws M4Exception
M4Exception
void insertMaterialisationAfterStep(Step precedingStep,
Step materialisingStep)
throws M4Exception
precedingStep - the step after which the other one was insertedmaterialisingStep - the step that was inserted after the other step
M4Exception
java.util.Collection getFinalSteps()
throws M4Exception
M4Exception
void arrangeStepsOnGrid(int gridLength)
throws M4Exception
gridLength - the length of a grid edge of the grid
on which the steps are to be rearranged
M4Exception
void arrangeConceptsOnGrid(int gridLength)
throws M4Exception
gridLength - the length of a grid edge of the grid
on which the concepts are to be rearranged
M4Exception
void putConceptsOnGrid()
throws M4Exception
M4Exception
Chain createChain(java.lang.String name)
throws M4Exception
name - the name to be given to the new chain
M4Exception
Chain createChain(java.lang.String name,
java.util.Collection stepsAndChains)
throws M4Exception
name - the name to be given to the new chainstepsAndChains - a Collection of Steps
and/or Chains.
M4Exception
void resolveChain(Chain toBeResolved)
throws M4Exception
M4Exception
Concept createConcept(java.lang.String name,
java.lang.String type)
throws M4Exception
name - the name for the concept to be createdtype - the type of the concept (see Concept.TYPE_...)
M4Exception
Concept createConceptFromTable(java.lang.String tableName)
throws M4Exception
tableName - the name of a table or view in the business schema
M4Exception
Concept createConceptFromColumnset(Columnset cs)
throws M4Exception
cs - the given Columnset
M4Exception
Relation createOneToManyRelation(java.lang.String relName,
java.util.Collection fromConceptKeyAttribs,
java.util.Collection toConceptKeyAttribs)
throws M4Exception
relName - a valid name for a new Relation in this CasefromConceptKeyAttribs - a Collection of the Features that make up the key
attributes in the FromConcepttoConceptKeyAttribs - a Collection of the Features that make up the key
attributes in the ToConcept
M4Exception
Relation createManyToManyRelation(java.lang.String relName,
java.util.Collection fromConceptKeyAttribs,
java.util.Collection toConceptKeyAttribs,
java.lang.String crossTableName,
java.util.Collection crossLinkToFromConceptNames,
java.util.Collection crossLinkToToConceptNames)
throws M4Exception
relName - a valid name for a new Relation in this CasefromConceptKeyAttribs - a Collection of the Features that make up the key
attributes in the FromConcepttoConceptKeyAttribs - a Collection of the Features that make up the key
attributes in the ToConceptcrossTableName - the name of the table in the business data schema that
serves as the cross tablecrossLinkToFromConceptNames - a Collection with the names of the cross table
columns that provide the foreign key to the primary key of the FromConceptcrossLinkToToConceptNames - a Collection with the names of the cross table
columns that provide the foreign key to the primary key of the ToConcept
M4Exception
java.util.Collection createManyToManyRelationsFromCrossTable(java.lang.String crossTableName,
java.util.Collection<java.lang.String> allowedDbObjects)
throws M4Exception
crossTableName -
M4Exception
Concept createConceptAndRelationsFromTables(java.lang.String tableName)
throws M4Exception
tableName - the given table name
M4Exception
Concept getConcept(java.lang.String conceptName)
throws M4Exception
M4Exception
void store()
throws M4Exception
M4Exception
java.util.Collection getAllRelations()
throws M4Exception
M4Exception
Relation getRelation(java.lang.String relationName)
throws M4Exception
relationName -
M4Exception
java.util.Map getOperatorToStepMap()
throws M4Exception
M4Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||