SlideShare a Scribd company logo
The Model is the Code

             Using COSA Technology
                       by
                 Gordon Morrison

                Copyright © 2012
               All Rights Reserved

05/08/12            www.vsmerlot.com   1
It wasn’t the “go to”
• The ‘if’ has caused
  more spaghetti code
  than the ‘go to’ ever
  could.




05/08/12             www.vsmerlot.com   2
Simple Calculator Example
• Subtract two negative
  numbers resulting in a
  negative result.




05/08/12            www.vsmerlot.com   3
A COSA Solution
• Rules
     –     Operand1
     –     Operate
     –     Operand2
     –     Result
     –     Done
     –     Error




05/08/12              www.vsmerlot.com   4
The Application
• Five Functions
     –     Add
     –     Subtract
     –     Multiply
     –     Divide
     –     Percent
• Clear
• Clear Entry


05/08/12                  www.vsmerlot.com   5
On Subtract Event
• Handled as Negate




05/08/12          www.vsmerlot.com   6
Run Engine




05/08/12     www.vsmerlot.com   7
Engine On




05/08/12    www.vsmerlot.com   8
Check Event State
• Static State
     – Compared to
• Dynamic State




05/08/12             www.vsmerlot.com   9
True Rule or Behavior
• Dynamically bind to
  True Member




05/08/12            www.vsmerlot.com   10
Operand1 Rule
• Step
     – Negate




05/08/12           www.vsmerlot.com   11
Rule’s True Behavior




05/08/12          www.vsmerlot.com   12
Single Point True Trace




05/08/12           www.vsmerlot.com   13
Trace what you want
• Complex or
• Simple




05/08/12         www.vsmerlot.com   14
Next Rule
• Base on True




05/08/12          www.vsmerlot.com   15
Engine Off
• Return to OS…




05/08/12          www.vsmerlot.com   16
Exit to OS




05/08/12     www.vsmerlot.com   17
Model
• Model = Code
• Code = Model




05/08/12         www.vsmerlot.com   18
Application




05/08/12     www.vsmerlot.com   19
Next On Click Event




05/08/12         www.vsmerlot.com   20
Back to Engine




05/08/12       www.vsmerlot.com   21
05/08/12   www.vsmerlot.com   22
05/08/12   www.vsmerlot.com   23
Same Rule Next Step
• Previous Step Allows
     – True Any Number
     – False One Period




05/08/12                  www.vsmerlot.com   24
True Behavior




05/08/12      www.vsmerlot.com   25
Turn Engine Off




05/08/12       www.vsmerlot.com   26
Trace




05/08/12   www.vsmerlot.com   27
Next True Step




05/08/12       www.vsmerlot.com   28
Engine Off




05/08/12     www.vsmerlot.com   29
Return to OS




05/08/12      www.vsmerlot.com   30
Rule Operand1 Step Any Number
• Model = Code
• Code = Model




05/08/12         www.vsmerlot.com   31
05/08/12   www.vsmerlot.com   32
05/08/12   www.vsmerlot.com   33
05/08/12   www.vsmerlot.com   34
05/08/12   www.vsmerlot.com   35
05/08/12   www.vsmerlot.com   36
05/08/12   www.vsmerlot.com   37
05/08/12   www.vsmerlot.com   38
05/08/12   www.vsmerlot.com   39
05/08/12   www.vsmerlot.com   40
05/08/12   www.vsmerlot.com   41
05/08/12   www.vsmerlot.com   42
05/08/12   www.vsmerlot.com   43
05/08/12   www.vsmerlot.com   44
05/08/12   www.vsmerlot.com   45
05/08/12   www.vsmerlot.com   46
05/08/12   www.vsmerlot.com   47
05/08/12   www.vsmerlot.com   48
05/08/12   www.vsmerlot.com   49
05/08/12   www.vsmerlot.com   50
Number




05/08/12   www.vsmerlot.com   51
05/08/12   www.vsmerlot.com   52
Now Click Subtract




05/08/12         www.vsmerlot.com   53
Subtract
• On Click Event




05/08/12            www.vsmerlot.com   54
Not Any Number
• Next Step




05/08/12          www.vsmerlot.com   55
Not Any Number
• Next Step




05/08/12          www.vsmerlot.com   56
Not Clear Entry




05/08/12       www.vsmerlot.com   57
Not Clear Entry




05/08/12       www.vsmerlot.com   58
Not Clear




05/08/12    www.vsmerlot.com   59
Not Clear




05/08/12    www.vsmerlot.com   60
Rule Operate
• Not Step Addition




05/08/12              www.vsmerlot.com   61
Not Addition Step
• Rule Operate




05/08/12         www.vsmerlot.com   62
Rule Operate
• Step Subtract




05/08/12          www.vsmerlot.com   63
Rule Operate
• Step Subtraction




05/08/12             www.vsmerlot.com   64
Next Rule
• Operand 2




05/08/12       www.vsmerlot.com   65
First Step
• Return to OS




05/08/12          www.vsmerlot.com   66
Subtracting




05/08/12     www.vsmerlot.com   67
05/08/12   www.vsmerlot.com   68
05/08/12   www.vsmerlot.com   69
Rule Operand2
• Step Negate




05/08/12        www.vsmerlot.com   70
05/08/12   www.vsmerlot.com   71
05/08/12   www.vsmerlot.com   72
05/08/12   www.vsmerlot.com   73
A Negative Number




05/08/12        www.vsmerlot.com   74
05/08/12   www.vsmerlot.com   75
05/08/12   www.vsmerlot.com   76
05/08/12   www.vsmerlot.com   77
05/08/12   www.vsmerlot.com   78
05/08/12   www.vsmerlot.com   79
05/08/12   www.vsmerlot.com   80
05/08/12   www.vsmerlot.com   81
05/08/12   www.vsmerlot.com   82
05/08/12   www.vsmerlot.com   83
05/08/12   www.vsmerlot.com   84
05/08/12   www.vsmerlot.com   85
05/08/12   www.vsmerlot.com   86
05/08/12   www.vsmerlot.com   87
05/08/12   www.vsmerlot.com   88
05/08/12   www.vsmerlot.com   89
Then Click Equals




05/08/12        www.vsmerlot.com   90
On Click Equals




05/08/12       www.vsmerlot.com   91
Not Any Number Step




05/08/12         www.vsmerlot.com   92
Exit Rule Operand 2




05/08/12         www.vsmerlot.com   93
05/08/12   www.vsmerlot.com   94
Not Clear Entry
• Etc.




05/08/12       www.vsmerlot.com   95
Result Rule
• Not Percent Step




05/08/12             www.vsmerlot.com   96
Result Rule
• Equals Step




05/08/12          www.vsmerlot.com   97
Result




05/08/12   www.vsmerlot.com   98

More Related Content

PDF
workflow in temporal state machine v1
Gordon Morrison
 
DOCX
Processing data using regular expressions
Gordon Morrison
 
PDF
Extract Translae Load by-the-numbers
Gordon Morrison
 
PDF
Nist cosa-foundation v7
Gordon Morrison
 
PDF
Black capped night heron v1
Gordon Morrison
 
PDF
Gordon morrison temporalengineering-delphi-v3
Gordon Morrison
 
PDF
NIST COSA-Foundation Software
Gordon Morrison
 
PDF
Meta edit calc execution v3
Gordon Morrison
 
workflow in temporal state machine v1
Gordon Morrison
 
Processing data using regular expressions
Gordon Morrison
 
Extract Translae Load by-the-numbers
Gordon Morrison
 
Nist cosa-foundation v7
Gordon Morrison
 
Black capped night heron v1
Gordon Morrison
 
Gordon morrison temporalengineering-delphi-v3
Gordon Morrison
 
NIST COSA-Foundation Software
Gordon Morrison
 
Meta edit calc execution v3
Gordon Morrison
 

Recently uploaded (20)

PPTX
AI and Robotics for Human Well-being.pptx
JAYMIN SUTHAR
 
PDF
Security features in Dell, HP, and Lenovo PC systems: A research-based compar...
Principled Technologies
 
PDF
Make GenAI investments go further with the Dell AI Factory
Principled Technologies
 
PDF
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 
PPTX
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
 
PDF
Get More from Fiori Automation - What’s New, What Works, and What’s Next.pdf
Precisely
 
PPTX
Simple and concise overview about Quantum computing..pptx
mughal641
 
PDF
SparkLabs Primer on Artificial Intelligence 2025
SparkLabs Group
 
PPTX
AI in Daily Life: How Artificial Intelligence Helps Us Every Day
vanshrpatil7
 
PDF
Economic Impact of Data Centres to the Malaysian Economy
flintglobalapac
 
PDF
MASTERDECK GRAPHSUMMIT SYDNEY (Public).pdf
Neo4j
 
PDF
Software Development Methodologies in 2025
KodekX
 
PDF
Google I/O Extended 2025 Baku - all ppts
HusseinMalikMammadli
 
PPTX
Agile Chennai 18-19 July 2025 Ideathon | AI Powered Microfinance Literacy Gui...
AgileNetwork
 
PPTX
OA presentation.pptx OA presentation.pptx
pateldhruv002338
 
PDF
Unlocking the Future- AI Agents Meet Oracle Database 23ai - AIOUG Yatra 2025.pdf
Sandesh Rao
 
PDF
Responsible AI and AI Ethics - By Sylvester Ebhonu
Sylvester Ebhonu
 
PDF
Oracle AI Vector Search- Getting Started and what's new in 2025- AIOUG Yatra ...
Sandesh Rao
 
PDF
Structs to JSON: How Go Powers REST APIs
Emily Achieng
 
PDF
Using Anchore and DefectDojo to Stand Up Your DevSecOps Function
Anchore
 
AI and Robotics for Human Well-being.pptx
JAYMIN SUTHAR
 
Security features in Dell, HP, and Lenovo PC systems: A research-based compar...
Principled Technologies
 
Make GenAI investments go further with the Dell AI Factory
Principled Technologies
 
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
 
Get More from Fiori Automation - What’s New, What Works, and What’s Next.pdf
Precisely
 
Simple and concise overview about Quantum computing..pptx
mughal641
 
SparkLabs Primer on Artificial Intelligence 2025
SparkLabs Group
 
AI in Daily Life: How Artificial Intelligence Helps Us Every Day
vanshrpatil7
 
Economic Impact of Data Centres to the Malaysian Economy
flintglobalapac
 
MASTERDECK GRAPHSUMMIT SYDNEY (Public).pdf
Neo4j
 
Software Development Methodologies in 2025
KodekX
 
Google I/O Extended 2025 Baku - all ppts
HusseinMalikMammadli
 
Agile Chennai 18-19 July 2025 Ideathon | AI Powered Microfinance Literacy Gui...
AgileNetwork
 
OA presentation.pptx OA presentation.pptx
pateldhruv002338
 
Unlocking the Future- AI Agents Meet Oracle Database 23ai - AIOUG Yatra 2025.pdf
Sandesh Rao
 
Responsible AI and AI Ethics - By Sylvester Ebhonu
Sylvester Ebhonu
 
Oracle AI Vector Search- Getting Started and what's new in 2025- AIOUG Yatra ...
Sandesh Rao
 
Structs to JSON: How Go Powers REST APIs
Emily Achieng
 
Using Anchore and DefectDojo to Stand Up Your DevSecOps Function
Anchore
 
Ad
Ad

It wasn’t the if-