Meta edit calc execution v3

26
MetaEdit Animation 5Function Calculator Example with COSA Temporal Logic By Gordon Morrison (COSA) 12/6/2012 1 www.VSMerlot.com

description

Temporal Engineering using MetaEdit tool

Transcript of Meta edit calc execution v3

Page 1: Meta edit calc execution v3

MetaEdit      Animation

5‐Function Calculator Examplewith COSA Temporal Logic

By Gordon Morrison

(COSA)

12/6/2012 1www.VSMerlot.com

Page 2: Meta edit calc execution v3

MetaEdit with COSA Trace

• The COSA Execution Engine– Trace available at every step of logic– Provides direct relationship to all models

• Show execution in MetaEdit– Rules– Steps / Behaviors and Logic

• Show Execution in COSA tree

– Example follows: ‐3.1 ‐ ‐2.1 = ‐1

12/6/2012 2www.VSMerlot.com

Page 3: Meta edit calc execution v3

Trace Execution Engine

12/6/2012 3www.VSMerlot.com

Page 4: Meta edit calc execution v3

Development / Runtime Trace

Runtime Logic Tree

Rule Properties

Rules in this model

12/6/2012 4www.VSMerlot.com

Page 5: Meta edit calc execution v3

Step Properties

Property can show 

behavior detail

Step Name

Static State

Trace Number

12/6/2012 5www.VSMerlot.com

Page 6: Meta edit calc execution v3

Enter Negate

Static State

12/6/2012 6www.VSMerlot.com

Page 7: Meta edit calc execution v3

Integer

True/False Behaviors

12/6/2012 7www.VSMerlot.com

Page 8: Meta edit calc execution v3

Decimal True Next Green

12/6/2012 8www.VSMerlot.com

Page 9: Meta edit calc execution v3

FractionFalse Next Red

Trace Number

12/6/2012 9www.VSMerlot.com

Page 10: Meta edit calc execution v3

Not Clear Entry

Subtract Operation Entered

Either Next Black

Trace Number

12/6/2012 10www.VSMerlot.com

Page 11: Meta edit calc execution v3

Not Clear

12/6/2012 11www.VSMerlot.com

Page 12: Meta edit calc execution v3

Push

Either T/F12/6/2012 12www.VSMerlot.com

Page 13: Meta edit calc execution v3

Not Add

12/6/2012 13www.VSMerlot.com

Page 14: Meta edit calc execution v3

Subtract True

12/6/2012 14www.VSMerlot.com

Page 15: Meta edit calc execution v3

Engine Off

12/6/2012 15www.VSMerlot.com

Page 16: Meta edit calc execution v3

Enter Negate

12/6/2012 16www.VSMerlot.com

Page 17: Meta edit calc execution v3

Integer

12/6/2012 17www.VSMerlot.com

Page 18: Meta edit calc execution v3

Decimal

12/6/2012 18www.VSMerlot.com

Page 19: Meta edit calc execution v3

Fraction

12/6/2012 19www.VSMerlot.com

Page 20: Meta edit calc execution v3

Not Clear Entry

Equal Result Entered

12/6/2012 20www.VSMerlot.com

Page 21: Meta edit calc execution v3

Not Clear

12/6/2012 21www.VSMerlot.com

Page 22: Meta edit calc execution v3

Save

12/6/2012 22www.VSMerlot.com

Page 23: Meta edit calc execution v3

Not Percent

12/6/2012 23www.VSMerlot.com

Page 24: Meta edit calc execution v3

Equals

12/6/2012 24www.VSMerlot.com

Page 25: Meta edit calc execution v3

Ready for Next Calculation

• Equals stops the COSA engine• Points temporal pointer back to Oper1 Rule

– Green arrow

• Waits on next event

12/6/2012 25www.VSMerlot.com

Page 26: Meta edit calc execution v3

Intuitive User Interface• Define domain language in BNF editor

– UML + MetaEdit + COSA domains• Drag and drop – class, rules, steps, logic• No dialog boxes• Select diagram

– Edit object property– Connect or change logic flow– Edit or add behavior code

• Menu driven generation– Select target language– Select target platform– Execute with model testing

12/6/2012 26www.VSMerlot.com