uk.ac.bbk.dcs.automed.evolution.schemaModelEvolution
Class ExtensionalSchemaEvolution
java.lang.Object
uk.ac.bbk.dcs.automed.evolution.schemaModelEvolution.SMEvolution
uk.ac.bbk.dcs.automed.evolution.schemaModelEvolution.ExtensionalSchemaEvolution
- All Implemented Interfaces:
- Evolution
public class ExtensionalSchemaEvolution
- extends SMEvolution
Method Summary |
static Schema |
applyConstraintTransformation(Schema schema,
java.util.Set rangeVoidConstructs)
|
static Schema |
applyConstraintTransformation(Schema schema,
java.lang.String construct)
|
static Schema |
applyContractTransformation(Schema schema,
java.lang.String construct)
|
static SchemaObject[] |
checkDepenednts(Schema schema,
java.lang.String construct)
|
java.util.Set |
checkUnionConstructs(java.util.Set descendants)
|
static boolean |
compare(java.util.Set constructsToMatch,
Cell c)
|
static boolean |
compare(java.lang.String toMatch,
Cell c)
|
void |
createIdentTransformation(Schema us,
Schema newUs)
|
void |
deleteOldPathway(Schema ls,
Schema us)
|
Schema |
duplicatePathway(Schema ls,
Schema us)
|
static SchemaObject |
getConstructAsSchemaObject(Transformation t)
|
static java.lang.String |
getConstructAsString(Transformation t)
|
static boolean |
isRangeVoidAny(java.lang.String construct,
Schema us,
Schema ls)
|
void |
makeNewPathway(java.util.Set rangeVoidConstructs,
Schema ls,
Schema us)
|
static Schema |
manageIntegrityConstraints(Schema schema,
java.lang.String construct)
|
void |
processAddTransformation(Transformation crntTransformation)
|
void |
processContractTransformation(Transformation crntTransformation)
|
void |
processDeleteTransformation(Transformation crntTransformation)
|
void |
processExtendTransformation(Transformation crntTransformation)
|
void |
processRenameTransformation(Transformation crntTransformation)
|
static java.util.Set |
searchDescendants(java.lang.String construct,
Schema s1,
Schema s2)
|
Methods inherited from class uk.ac.bbk.dcs.automed.evolution.schemaModelEvolution.SMEvolution |
getEvolutionType, getIsRepair, getSchemaEvolutionType, processEvolution, processEvolution, processTransformation, repairPathway, repairPathway, setIsRepair, simplifyPathway, simplifyPathway |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RANGE_VOID_ANY
public static final java.lang.String RANGE_VOID_ANY
- See Also:
- Constant Field Values
ExtensionalSchemaEvolution
public ExtensionalSchemaEvolution(boolean isRepair,
Schema virtualSchema,
Schema[] extensionalSchemas,
Schema[] unionSchemas,
Schema extSchema,
Schema evolvedExtSchema,
java.lang.String nameOfNewSchema,
java.lang.Object domainKnowledge)
throws SMEvolutionException
- Throws:
SMEvolutionException
processRenameTransformation
public void processRenameTransformation(Transformation crntTransformation)
- Specified by:
processRenameTransformation
in class SMEvolution
processContractTransformation
public void processContractTransformation(Transformation crntTransformation)
- Specified by:
processContractTransformation
in class SMEvolution
processExtendTransformation
public void processExtendTransformation(Transformation crntTransformation)
- Specified by:
processExtendTransformation
in class SMEvolution
processDeleteTransformation
public void processDeleteTransformation(Transformation crntTransformation)
- Specified by:
processDeleteTransformation
in class SMEvolution
processAddTransformation
public void processAddTransformation(Transformation crntTransformation)
- Specified by:
processAddTransformation
in class SMEvolution
isRangeVoidAny
public static boolean isRangeVoidAny(java.lang.String construct,
Schema us,
Schema ls)
throws java.lang.Exception
- Throws:
java.lang.Exception
manageIntegrityConstraints
public static Schema manageIntegrityConstraints(Schema schema,
java.lang.String construct)
checkDepenednts
public static SchemaObject[] checkDepenednts(Schema schema,
java.lang.String construct)
applyContractTransformation
public static Schema applyContractTransformation(Schema schema,
java.lang.String construct)
makeNewPathway
public void makeNewPathway(java.util.Set rangeVoidConstructs,
Schema ls,
Schema us)
deleteOldPathway
public void deleteOldPathway(Schema ls,
Schema us)
createIdentTransformation
public void createIdentTransformation(Schema us,
Schema newUs)
throws java.lang.Exception
- Throws:
java.lang.Exception
duplicatePathway
public Schema duplicatePathway(Schema ls,
Schema us)
throws java.lang.Exception
- Throws:
java.lang.Exception
applyConstraintTransformation
public static Schema applyConstraintTransformation(Schema schema,
java.util.Set rangeVoidConstructs)
throws java.lang.Exception
- Throws:
java.lang.Exception
applyConstraintTransformation
public static Schema applyConstraintTransformation(Schema schema,
java.lang.String construct)
throws java.lang.Exception
- Throws:
java.lang.Exception
checkUnionConstructs
public java.util.Set checkUnionConstructs(java.util.Set descendants)
throws java.lang.Exception
- Throws:
java.lang.Exception
getConstructAsString
public static java.lang.String getConstructAsString(Transformation t)
getConstructAsSchemaObject
public static SchemaObject getConstructAsSchemaObject(Transformation t)
searchDescendants
public static java.util.Set searchDescendants(java.lang.String construct,
Schema s1,
Schema s2)
throws IntegrityException,
NotFoundException
- Throws:
IntegrityException
NotFoundException
compare
public static boolean compare(java.util.Set constructsToMatch,
Cell c)
compare
public static boolean compare(java.lang.String toMatch,
Cell c)