|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.ic.doc.automed.modelmanagement.modelgen.HDMToEER
public class HDMToEER
A class to do HDM to ER model transformations
Field Summary | |
---|---|
private java.util.ArrayList |
allConstraintObjects
|
private java.util.ArrayList |
allEdgeObjects
|
private java.util.ArrayList |
allNodeObjects
|
private Construct |
attribute
|
private java.util.Hashtable |
attributeEdges
|
private java.util.Hashtable |
attributeNodes
|
private Construct |
cons
|
private Construct |
edge
|
private Model |
eer
|
private Construct |
entity
|
private Construct |
entityOrRelationship
|
private java.util.Hashtable |
extents
|
private Construct |
generalisation
|
private Model |
hdm
|
private TypeHierarchy |
hlth
|
private Construct |
node
|
private java.util.Hashtable |
parentObjects
|
private Construct |
relationship
|
private java.util.ArrayList |
rootNodeObjects
|
private Schema |
sourceSchema
|
private Construct |
subset
|
Constructor Summary | |
---|---|
HDMToEER(Schema s1)
Creates a new instance of HDMToEER |
Method Summary | |
---|---|
private Schema |
addAttribute(Schema transformedSchema,
SchemaObject parentObject,
SchemaObject hdmChild,
SchemaObject edgeSchemaObject)
Add an attribute |
private Schema |
addEntity(Schema transformedSchema,
SchemaObject hdmObject)
Add a ER entity to Automed |
private void |
addHDMObjectsToHashTables()
Add all the HDM objects to the appropriate hash entities |
private Schema |
addRelationship(Schema s,
SchemaObject hdmEdgeObject)
Add a relationship |
private Schema |
addSubset(Schema s,
SchemaObject hdmConstraintObject)
Add a subset |
private java.lang.String |
computeCardinality(Schema transformedSchema,
SchemaObject hdmEdgeObject)
|
private SchemaObject |
findEntity(Schema s,
SchemaObject hdmNode)
Find an enity associated with this node |
Schema |
modelGen(TransformModel am)
Transform the HDM elements in this schema into relational elements |
private Schema |
removeEdgeObject(Schema s,
SchemaObject edgeObject)
Recusively removes any HDM edges from the schema |
private Schema |
removeHDMConstructs(Schema transformedSchema)
Remove the HDM constructs from the transformed schema |
void |
setSchema(Schema s)
Set the schema to transform |
private void |
setUpEERModel()
Set up the relational model, the constructs and the type hierarchy |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private Model hdm
private Construct node
private Construct cons
private Construct edge
private Model eer
private Construct entity
private Construct entityOrRelationship
private Construct attribute
private Construct relationship
private Construct generalisation
private Construct subset
private Schema sourceSchema
private TypeHierarchy hlth
private java.util.ArrayList allEdgeObjects
private java.util.ArrayList allConstraintObjects
private java.util.ArrayList allNodeObjects
private java.util.ArrayList rootNodeObjects
private java.util.Hashtable extents
private java.util.Hashtable parentObjects
private java.util.Hashtable attributeNodes
private java.util.Hashtable attributeEdges
Constructor Detail |
---|
public HDMToEER(Schema s1) throws NotFoundException
s1
- The schema to transform
NotFoundException
- Throws an exception if constrcuts are not foundMethod Detail |
---|
public void setSchema(Schema s)
s
- The schema to transformprivate void addHDMObjectsToHashTables() throws AutoMedException
AutoMedException
private Schema removeEdgeObject(Schema s, SchemaObject edgeObject) throws AutoMedException
s
- the schema we wish to remove the HDM edges from
AutoMedException
private Schema removeHDMConstructs(Schema transformedSchema) throws AutoMedException
AutoMedException
private Schema addEntity(Schema transformedSchema, SchemaObject hdmObject) throws IntegrityException, TypeMismatchException, NotFoundException
IntegrityException
TypeMismatchException
NotFoundException
private Schema addAttribute(Schema transformedSchema, SchemaObject parentObject, SchemaObject hdmChild, SchemaObject edgeSchemaObject) throws TypeMismatchException, NotFoundException, IntegrityException
TypeMismatchException
NotFoundException
IntegrityException
private java.lang.String computeCardinality(Schema transformedSchema, SchemaObject hdmEdgeObject)
private SchemaObject findEntity(Schema s, SchemaObject hdmNode) throws AutoMedException
hdmNode
- - the HDM node
AutoMedException
private Schema addRelationship(Schema s, SchemaObject hdmEdgeObject) throws AutoMedException
AutoMedException
private Schema addSubset(Schema s, SchemaObject hdmConstraintObject) throws AutoMedException
AutoMedException
private void setUpEERModel() throws NotFoundException
NotFoundException
public Schema modelGen(TransformModel am) throws AutoMedException
sourceModel
- targetModel
- am
-
AutoMedException
- General AutoMedException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |