|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectuk.ac.ic.doc.automed.modelmanagement.matchmodel.MatchModel
public class MatchModel
The MatchModel base class
| Field Summary | |
|---|---|
private Construct |
_constraint
|
private Construct |
_edge
|
private Model |
_hdm
|
private Construct |
_node
|
private int |
_numMatches
|
private Model |
_targetModel
The target model |
(package private) java.util.HashMap |
matchObjects
|
(package private) boolean |
reverseMatch
|
| Constructor Summary | |
|---|---|
MatchModel(Model targetModel)
Creates a new instance of MatchModel This sets up the HDM model and the target model for the algorithms |
|
| Method Summary | |
|---|---|
java.util.HashMap |
autoMatch(Schema schema)
|
private boolean |
checkConstraintStructure(Schema s,
MatchObject mo,
Construct targetConstruct)
Determine whether @param mo match the structure of @param targetConstruct By this stage all the objects that mo.so is attached to should have been identified We should check this |
private boolean |
checkLinkNodalStructure(Schema s,
SchemaObject so,
Construct targetConstruct)
Determine whether @param so and its dependent object match the structure of |
private java.util.ArrayList |
createConstructList(Model targetModel)
Returns a list of TargetConstructs in the @param targetModel. |
private boolean |
matchConstraint(Schema schema,
MatchObject mc,
TargetConstruct targetConstruct)
Determine whether object @param mc matches the constraint construct We need to check schema object types here |
private boolean |
matchEdgeConstraint(Schema schema,
MatchObject mc,
TargetConstruct targetConstruct)
Determine whether object @param mc matches the constraint construct We need to check schema object types here This is for construct like the SQL primary key |
private boolean |
matches(java.lang.String constraintString,
java.lang.String targetConstraintString)
Determine whether @param constraintString is a subset of |
private boolean |
matchLink(Schema schema,
MatchObject me,
TargetConstruct targetConstruct)
Determine whether object @param me matches the link construct |
private boolean |
matchLinkNodal(Schema schema,
MatchObject me,
TargetConstruct targetConstruct)
Determine whether object @param me matches the linkNodal construct |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private Model _targetModel
private Model _hdm
private Construct _constraint
private Construct _edge
private Construct _node
java.util.HashMap matchObjects
private int _numMatches
boolean reverseMatch
| Constructor Detail |
|---|
public MatchModel(Model targetModel)
throws NotFoundException
targetModel - - The target Model for this auto match
NotFoundException - if the HDM model cannot be found in the repository| Method Detail |
|---|
private java.util.ArrayList createConstructList(Model targetModel)
TargetConstructs in the @param targetModel.
The list is ordered as follows: link nodals, links, constraints, nodes
The TargetConstruct includes the Construct and any constraint definition
associated with the construct
targetModel - - The target Model for this transformation
TargetConstructs
private boolean checkLinkNodalStructure(Schema s,
SchemaObject so,
Construct targetConstruct)
throws AutoMedException
targetConstruct -
AutoMedException
private boolean checkConstraintStructure(Schema s,
MatchObject mo,
Construct targetConstruct)
throws AutoMedException
AutoMedException
private boolean matches(java.lang.String constraintString,
java.lang.String targetConstraintString)
throws AutoMedException
targetConstraintString. -
AutoMedException
private boolean matchLink(Schema schema,
MatchObject me,
TargetConstruct targetConstruct)
throws AutoMedException
schema - me - targetConstruct - Assume for the moment that a link construct does not link single
nodes
AutoMedException
private boolean matchEdgeConstraint(Schema schema,
MatchObject mc,
TargetConstruct targetConstruct)
throws AutoMedException
schema - mc - - contains an edgetargetConstruct - The high level construct we are matching against
AutoMedException
private boolean matchLinkNodal(Schema schema,
MatchObject me,
TargetConstruct targetConstruct)
throws AutoMedException
targetConstruct - In this method the SchemaObject me._object is always
an edgeme - - a MatchObject containing an edgetargetConstruct - - a link nodal construct from the target Model
AutoMedException
private boolean matchConstraint(Schema schema,
MatchObject mc,
TargetConstruct targetConstruct)
throws AutoMedException
schema - mc - targetConstruct -
AutoMedException
public java.util.HashMap autoMatch(Schema schema)
throws AutoMedException
AutoMedException
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||