Title: DEVS and SES as a Framework for Modeling and Simulation Tool Development
1DEVS and SES as a Framework for Modeling and
Simulation Tool Development
- Bernard P. Zeigler
- Arizona Center for Integrative Modeling and
Simulation - University of Arizona
Presented at SIMUTools 2008 March 37 2008
Marseille, France
2MS Framework
- Based on mathematical formalism using system
theoretic principles - Separation of Model, Simulator and Experimental
Frame - Atomic and Coupled types
- Hierarchical construction
3Discrete Event Time Segments
X
t1
t0
t2
S
e
y0
Y
4MS Framework formulated within UML
MS Framework classes
create classes to satisfy use cases
Use Cases
interpretation as software code (e.g. Java)
UML
5DEVS Formal Specification of a System
- A discrete event system specification (DEVS) is a
structure - MltX,S,Y,?int, ?ext, ?con, ?,tagt
- where
- X is the set of input values,
- S is a set of states,
- Y is the set of output values,
- ?int S-gtS is the internal transition
function, - ?ext,Q?X-gtS is the external transition
function, - ?con,Q?X-gtS is the confluent transition
function, - ta S-gtR 0,8
- Where
- Q(s,e)s?S, 0 ?e? ta(s) is the total state
set, - e is the time elapsed since last transition,
- ?S-gtY is the output function and
- R 0,8 is the set of positive reals with 0
and ?
6DEVS Hierarchical Modular Models
System Entity Structure
SES
Hierarchical Composition, Coupling and Variants
are Represented in System Entity Structure
7Some Types of Models Represented in DEVS
Coupled Models
Atomic Models
Partial Differential Equations
can be components in a coupled model
Ordinary Differential Equation Models
Processing/ Queuing/ Coordinating
Networks, Collaborations
Physical Space
Spiking Neuron Networks
Spiking Neuron Models
Processing Networks
Petri Net Models
n-Dim Cell Space
Discrete Time/ StateChart Models
Stochastic Models
Cellular Automata
Quantized Integrator Models
Self Organized Criticality Models
Fuzzy Logic Models
Reactive Agent Models
Multi Agent Systems
8Concept of DEVS Standard
9DEVS Simulation Protocol
simulators.
tellAll
("initialize)
simulators.
tellAll
("initialize)
Coordinator
Coordinator
simulators.
AskAll
(
nextTN
)
simulators.
AskAll
(
nextTN
)
simulators.
tellAll
("
computeInputOutput
)
simulators.
tellAll
("
computeInputOutput
)
simulators.
tellAll
("
sendMessages
")
simulators.
tellAll
("
sendMessages
")
simulators.
tellAll
("
simulators.
tellAll
("
ApplyDeltFunc)
putContentOnSimulator
Non-DEVS Simulator
DEVS Simulator
DEVS Simulator
?
DEVS Model 2
DEVS Model 1
Atoimc1
Atoimc2
10Finite Deterministic DEVS FD-DEVS
FDDEVS ltincomingMessageSet, outgoingMessageSet,
StateSet, TimeAdvanceTable, InternalTransitionTab
le, ExternalTransitionTable,OutputTablegtwhereinc
omingMessageSet, outgoingMessageSet, StateSet are
finite setsTimeAdvanceTable StateSet ? R0,8
(the positive reals with zero and
infinity)InternalTransitionTable StateSet ?
StateSetExternalTransitionTable StateSet
incomingMessageSet ? StateSet, OutputTable
StateSet ? the set of subsets of outgoingMsgSet
- Natural Language For FDDEVS
- to start hold in PHASE for time SIGMA
- when in PHASE and receive MSG go to PHASE
lteventuallygt - hold in PHASE for time SIGMA
- after PHASE then output MSG
- from PHASE go to PHASE
Semantics defined by mapping into DEVS
11FD-DEVS
- The right abstraction of DEVS retains
important timing properties - Amenable to analysis
- Supports automation
- Maps to DEVSJAVA
- Supplies a skelton that can be extended to full
DEVS - Simple XML expression
- Example of Natural Language Spec
- to start passivate in waitForStart
- when in waitForStart and receive StartAck go to
sendFirst - hold in sendFirst for time 0.5 then output
ReqForAck and go to sendSecond - hold in ackReceived for time Infinity
12Automated Analysis Based on State Input Pairs
Enables Automated Test Model Generation
13Generated Test Models in DEVSJAVA SimView
AckCheck
Observe Outputs
Send inputs
Observe Pass/Fail
Trigger next in Sequence upon pass
14System Entity Structure (SES) SESBuilder
15System Entity Structure/Model Base Repository
Support Automated DEVS Generation and Reuse
16Automated Generation of Test Models
Augmented Test Models
Automated
manual
FDDEVS atomic model
SES
SES/XML Of DSR texts
FDDEVS test models
Pruned ES
17DEVS/SOA Infrastructure Supports Deployment and
Execution of DEVS Models on the Web
- Service Oriented Architecture (SOA) consists of
various W3C standards - Machine-to-machine interoperable interaction over
the network based on WSDL interface descriptions - Client server framework
- Message encapsulated in SOAP wrapper which is in
XML
Run Example
18Deploying Models DEVSML and DEVS/SOA
19Applications
- Natural language capture of high level
information technology systems requirements - Automated generation of FDDEVS kernel
DEVSJAVA/C models for distributed real-time
net-centric IT systems testing - Development of web service workflows using
DEVS/SOA - Network Traffic data capture, focused extraction,
and model generation for exercising IT systems
e.g., intrusion detection
20Conclusions
- DEVS and SES provide a framework based on Systems
Theory for MS tool development - DEVS standard supports sharable models and
repository reuse - The framework provides an ontology in which tools
can be organized and interoperate missing slots
can be identified overlapping tools can be
compared - The framework supports development of generic
tools which in turn support a wide array of
domain specific specializations and applications
21Books and Web Links
acims.arizona.edu
Rtsync.com
devsworld.org