org.apache.tuscany.samples.sdo.advanced
Class MedicalScenarioWithChangeMonitoring

java.lang.Object
  extended by org.apache.tuscany.samples.sdo.internal.SampleInfrastructure
      extended by org.apache.tuscany.samples.sdo.SampleBase
          extended by org.apache.tuscany.samples.sdo.advanced.MedicalScenarioWithChangeMonitoring

public class MedicalScenarioWithChangeMonitoring
extends SampleBase

This sample is based on a 2 part article by Kelvin Goodson and Geoffrey Winn. In this variant of the sample the model for the test includes change monitoring. The facility for undoing changes on the basis of the change monitoring is demonstrated. See Part1 and Part 2 of the article.

Running this Sample

See the main overview for instructions on how to run this sample.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.tuscany.samples.sdo.internal.SampleInfrastructure
SampleInfrastructure.SDOFacets
 
Field Summary
static int[] CORE_FUNCTION
           
static int[] SIGNIFICANT_FUNCTION
           
 
Fields inherited from class org.apache.tuscany.samples.sdo.internal.SampleInfrastructure
COMMENTARY_ALWAYS, COMMENTARY_FOR_ADVANCED, COMMENTARY_FOR_INTERMEDIATE, COMMENTARY_FOR_NOVICE, commentaryLevel, COMPANY_DATAGRAPH_XML, COMPANY_DATAOBJECT_XML, COMPANY_NAMESPACE, COMPANY_XSD, PO_NAMESPACE, PO_XML_GENERATED, PO_XML_RESOURCE, PO_XSD_RESOURCE, SAMPLE_LEVEL_ADVANCED, SAMPLE_LEVEL_BASIC, SAMPLE_LEVEL_INTERMEDIATE, sampleClasses, sampleComplexityLevel, userLevels
 
Constructor Summary
MedicalScenarioWithChangeMonitoring(Integer userLevel)
           
MedicalScenarioWithChangeMonitoring(String[] args, Integer userLevel)
           
 
Method Summary
static void main(String[] args)
           
 void runSample()
           
 
Methods inherited from class org.apache.tuscany.samples.sdo.SampleBase
createScopeForTypes, getDataObjectFromFile, getXMLDocumentFromFile, getXMLDocumentFromString, loadTypesFromXMLSchemaFile, useDefaultScopeForTypes
 
Methods inherited from class org.apache.tuscany.samples.sdo.internal.SampleInfrastructure
banner, banner, commentary, commentary, commentary, commentary, getSampleComplexityLevel, run, setSampleComplexityLevel, somethingUnexpectedHasHappened, yesOrNoFromUser
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CORE_FUNCTION

public static int[] CORE_FUNCTION

SIGNIFICANT_FUNCTION

public static int[] SIGNIFICANT_FUNCTION
Constructor Detail

MedicalScenarioWithChangeMonitoring

public MedicalScenarioWithChangeMonitoring(String[] args,
                                           Integer userLevel)

MedicalScenarioWithChangeMonitoring

public MedicalScenarioWithChangeMonitoring(Integer userLevel)
Method Detail

main

public static void main(String[] args)
                 throws Exception
Parameters:
args -
Throws:
Exception

runSample

public void runSample()
               throws Exception
Specified by:
runSample in class SampleInfrastructure
Throws:
Exception


Copyright © 2013 The Apache Software Foundation. All Rights Reserved.