uk.ac.ic.doc.automed.modelmanagement.modeldef
Class SMRModelDef

java.lang.Object
  extended by uk.ac.ic.doc.automed.modelmanagement.modeldef.ModelDef
      extended by uk.ac.ic.doc.automed.modelmanagement.modeldef.SMRModelDef

public class SMRModelDef
extends ModelDef

SMRModelDef.java

Version:
1.0 Department of Computing, Imperial College
Author:
Duc M Le dmle@doc.ic.ac.uk

Field Summary
private  Model model
           
static java.lang.String MODEL_NAME
          Constants
static java.lang.String MODEL_PREFIX
           
static java.lang.String MODEL_ROOT
           
static java.lang.String MODEL_SMR_ITEM_1
           
static java.lang.String MODEL_SMR_ITEM_2
           
static java.awt.Color MY_COLOUR
           
private  Construct root
           
private  Construct smrItem1
           
private  Construct smrItem2
           
 
Fields inherited from class uk.ac.ic.doc.automed.modelmanagement.modeldef.ModelDef
automedModelName, baseName, distinctModels, empty, featureSet, modelInUse, modelName, SOURCE_PREFIX
 
Constructor Summary
SMRModelDef()
          Creates a new instance of SchemaMetadataModelDef
 
Method Summary
 void createAutoMedModel()
          Create the automed model.
 void createModel()
          Define the model in the Automed MDR database
 java.lang.String[] getFeatureNames()
          This model does not support any features so return an empty string
 
Methods inherited from class uk.ac.ic.doc.automed.modelmanagement.modeldef.ModelDef
clearFeatures, getAutoMedModel, getAutoMedModelName, getFeatures, getModel, getModelBaseName, getModelName, isFeatureInUse, setFeatures, setFeatures, setModelBaseName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MODEL_NAME

public static final java.lang.String MODEL_NAME
Constants

See Also:
Constant Field Values

MODEL_ROOT

public static final java.lang.String MODEL_ROOT
See Also:
Constant Field Values

MODEL_SMR_ITEM_1

public static final java.lang.String MODEL_SMR_ITEM_1
See Also:
Constant Field Values

MODEL_SMR_ITEM_2

public static final java.lang.String MODEL_SMR_ITEM_2
See Also:
Constant Field Values

MODEL_PREFIX

public static final java.lang.String MODEL_PREFIX
See Also:
Constant Field Values

MY_COLOUR

public static final java.awt.Color MY_COLOUR

model

private Model model

root

private Construct root

smrItem1

private Construct smrItem1

smrItem2

private Construct smrItem2
Constructor Detail

SMRModelDef

public SMRModelDef()
Creates a new instance of SchemaMetadataModelDef

Method Detail

getFeatureNames

public java.lang.String[] getFeatureNames()
This model does not support any features so return an empty string

Specified by:
getFeatureNames in class ModelDef

createModel

public void createModel()
                 throws InconsistentException
Define the model in the Automed MDR database

Specified by:
createModel in class ModelDef
Throws:
InconsistentException

createAutoMedModel

public void createAutoMedModel()
                        throws InconsistentException
Create the automed model. This is the same as the source model

Specified by:
createAutoMedModel in class ModelDef
Throws:
InconsistentException