• Aucun résultat trouvé

Scalable and reusable models for HLA-Ptolemy cosimulation framework

N/A
N/A
Protected

Academic year: 2021

Partager "Scalable and reusable models for HLA-Ptolemy cosimulation framework"

Copied!
13
0
0

Texte intégral

(1)

Scalable and reusable models for HLA-Ptolemy

cosimulation framework

2016 Ptolemy Miniconference

David Côme, Janette Cardoso, Pierre Siron

October 15, 2015

(2)

HLA three main goals

Interoperability

Plug and play federates inside a federation

Reusability

A federate can easily be used in another federation

Reproductability

(3)

The HLA world

(4)

Reusability with the previous version

Goal

Reuse models from one simulation to another without any changes

Can’t make any assumption on the number of HLA objects to handle

(5)

Mechanism designed

Key idea number 1

Use Ptolemy classes and objects to simplify the design phase

One HLA class -> One Ptolemy class with HLASubscriber inside

(6)

Mechanism designed

Key idea number 2

Instantiate a new actor when an object is discovered if needed

Minimal model design required

(7)

Results

Federation :

3 bouncing balls, each own by a federate The display shown previous slide

(8)

What to do with new objects

Main idea

Use existing instances like role model

(9)

ChangeRequest Semantics

Removing an an actor

CRAj

:

H

7→ {

Ai

H

,

i

6=

j

}

(1)

Adding an actor

CRA+

:

H

7→

H

∪ {

A

}

(2)

An atomic actor A is extended in

A0

= (

I

,

O

,

S0

,

s00

,

F0

,

P0

,

D0

,

T0

)

(3)

with

S0

=

S

∪ {

CR

}

(4)

(10)

Extended actor

s00

=

s0

∪ {

CR

7→ ∅}

(5) F0

(

s

,

x

) =

(

F

(

s

,

x

)

if CR

= ∅

o

O

,

o

= ⊥

otherwise (6) P0

(

s

,

x

) =

(

P

(

s

,

x

)

if CR

= ∅

s otherwise (7) D0

(

s

,

x

) =

(

D

(

s

,

x

)

if CR

= ∅

0 otherwise (8)

(

T

(

s

,

x

,

d

)

if CR

= ∅

(11)

Extended director

f∈A f

(

H

) =

(

f1

◦ · · · ◦

fn

(

H

)

if H

6= ∅

Identity otherwise (10) CRs

=

n [ i=1 CR (11) P0

(

s

,

x

) = {

P

(

s

,

x

)|

H

7→

f∈CRs f

(

H

)}

(12) 11 / 13

(12)

Mechanism implementation

For each i t e r a t i o n

execute Change Requests i n i t i a l i z e new a c t o r s pre = d i r e c t o r . p r e f i r e prossessHLAMessages ( ) i f ( pre = t r u e ) d i r e c t o r . f i r e f o r each a c t o r A t o f i r e i f ( A . p r e f i r e ) A . f i r e A . p o s t f i r e d i r e c t o r . p o s t f i r e

(13)

Conclusion

HLA and Ptolemy : both great technologies

HLA-CERTI : tries to bring the best of them to model designers

Tried to eased the designer life First good step, more work to do

Références

Documents relatifs

Here, we combine organic carbon and bulk nitrogen isotope compositions with major element concentrations and iron speciation data of sedimentary rocks recovered from two drill cores

A new approach based on a search for past situations (analogues), similar to previous and current day in terms of di fferent meteorological fields over Western Europe and East

In this chapter, we will study the isomorphism classes of principally polarized simple CM abelian threefolds with field of moduli Q.. In Section 4.3, we will determine the sextic

1-M V Posner, international trade and technical change, oxford economic NS 13- 1961, pp323-341. 2-GCHufbuer, synthetic materials and the theory of international trade,

2)) L L''iin nd diiccaatteeu urr m meen nssu ueell d dee ll''eem mp pllo oii iin nttéérriim maaiirree een n ffiin n d dee m mo oiiss est élaboré par la Dares à partir

Mais aussi, cette responsabilité à l’égard du traitement, profondément et prioritairement orientée vers le proche atteint de démence, exige de l’aidant une capacité à évaluer

Comparing WCET analysis with measured execution time on the target shows that code generated from Ptolemy II models results in Java code where a tight WCET bound can be derived..

Stage simulator was responsible to simulate the environment with the robots and ob- stacles, and Ptolemy for simulate the control algorithm for avatar and real robot.. With