1 of 20 octopus: document handling document handling: three modeling approaches marc voorhoeve...

20
1 of 20 Octopus: document handli Document handling: three modeling approaches Marc Voorhoeve Venkatesh Kannan TUE

Post on 21-Dec-2015

223 views

Category:

Documents


3 download

TRANSCRIPT

Page 1: 1 of 20 Octopus: document handling Document handling: three modeling approaches Marc Voorhoeve Venkatesh Kannan TUE

1 of 20

Octopus: document handling

Document handling:three modeling approaches

Marc Voorhoeve

Venkatesh Kannan

TUE

Page 2: 1 of 20 Octopus: document handling Document handling: three modeling approaches Marc Voorhoeve Venkatesh Kannan TUE

2 of 20

Octopus: document handling

Octopus project

Broker: EESI

Industry partner: Océ

Researchers:NijmegenTUE - Electrical EngineeringTUE - Computer Science

Page 3: 1 of 20 Octopus: document handling Document handling: three modeling approaches Marc Voorhoeve Venkatesh Kannan TUE

3 of 20

Octopus: document handlingData path:concurrent job execution

scan

control

print

retrieve

ImageProcessing

store

IP1 IP2

resources

user

Page 4: 1 of 20 Octopus: document handling Document handling: three modeling approaches Marc Voorhoeve Venkatesh Kannan TUE

4 of 20

Octopus: document handling

Engineering decisions:- resource capacity- scheduling rules

Octopus aim:Engineering support

Frameworks:- TA (Timed Automata)- SDF (Synchronous Data Flow)- CPN (Colored Petri nets)

SimulationState spaceexploration

Approaches

Page 5: 1 of 20 Octopus: document handling Document handling: three modeling approaches Marc Voorhoeve Venkatesh Kannan TUE

5 of 20

Octopus: document handling

Timed automata:labeled transition system with clock variables,that can be set and tested.

states,actions (maybe silent),clock assignments,clock conditions.

idle busy

recover

start?

0:x0:x

etxrtx

Page 6: 1 of 20 Octopus: document handling Document handling: three modeling approaches Marc Voorhoeve Venkatesh Kannan TUE

6 of 20

Octopus: document handling

Kind of merge with synchronization of clocks.

idle busy

recover

start?

0:x

0:xetxrtx

s0 s1start! s2start!

0:y

(idle,s0) (busy,s1) (recover,s1) (idle,s1) (busy,s1) (recover,s1) (idle,s2)

0,0 yx ety re tty )(2 re tty

Temporal predicates (CTL) can be assessed,e.g. existence of execution path with duration D.

Page 7: 1 of 20 Octopus: document handling Document handling: three modeling approaches Marc Voorhoeve Venkatesh Kannan TUE

7 of 20

Octopus: document handling

CPN (colored Petri nets):Petri net with arc inscriptions, firing conditionsand subnet hierarchy.Eager firing.

idle busy

recover

start

etx @

xx

xx

( )

rt@)(

start s0

s1

s2

a

b

Page 8: 1 of 20 Octopus: document handling Document handling: three modeling approaches Marc Voorhoeve Venkatesh Kannan TUE

8 of 20

Octopus: document handling

SDF:action-based,Petri net subclass(marked graph)

Firing delaysfast optimalschedule computation

Page 9: 1 of 20 Octopus: document handling Document handling: three modeling approaches Marc Voorhoeve Venkatesh Kannan TUE

9 of 20

Octopus: document handling

Special challenge: modeling USB storage/retrieval.

unidirectional capacity: H, bidirectional capacity: Lcapacities L,H in MB/sec satisfying L < H < 2L.

Suppose 3H upstream; after 1 sec L downstreamtiming diagram:

0 1 2 3 3+(H-L)/H

HL

2L

Page 10: 1 of 20 Octopus: document handling Document handling: three modeling approaches Marc Voorhoeve Venkatesh Kannan TUE

10 of 20

Octopus: document handling

USB model:hybrid system.

Discrete approximation in TA possible.Exact CPN model by data manipulation.SDF model is still under construction.

Page 11: 1 of 20 Octopus: document handling Document handling: three modeling approaches Marc Voorhoeve Venkatesh Kannan TUE

11 of 20

Octopus: document handling

Experiences so far:- coordination via regular meetings- agreement on parameters of common model- mutual validation has been achieved (despite several difficulties)

Next stages:- validation with current project - exploration of engineering alternatives- adaptivity?

Page 12: 1 of 20 Octopus: document handling Document handling: three modeling approaches Marc Voorhoeve Venkatesh Kannan TUE

12 of 20

Octopus: document handling

CPN tradeoff: structure in net vs. color

more structurevisual modellow-levelless flexible

structure in coloropaquehigh-levelflexibility

TA tradeoff: model vs. predicate

constraints in modelsmaller state spacemore models

constraints in predicatelarger state spaceless models (flexibility)

Some difficulties were caused by the solutionsthat the various frameworks allow.

Page 13: 1 of 20 Octopus: document handling Document handling: three modeling approaches Marc Voorhoeve Venkatesh Kannan TUE

13 of 20

Octopus: document handling

CPN model therefore opts for flexibility.

Other difficulties caused by unstable requirements.

color set JOB: sequence of tasks.

a

b

[a,b]

x != [ ]

x tail(x)

Page 14: 1 of 20 Octopus: document handling Document handling: three modeling approaches Marc Voorhoeve Venkatesh Kannan TUE

14 of 20

Octopus: document handling

jobQ

JOB

scanner scanIP IP1 IP2 USB printIP

startedJob

JOB

schedulerJobGenerator

newJob

JOB

memory

INT

Page 15: 1 of 20 Octopus: document handling Document handling: three modeling approaches Marc Voorhoeve Venkatesh Kannan TUE

15 of 20

Octopus: document handling

start do

free

jobQ

JOB

startedJob

JOB

compInfo

paperInfo

end

parameters

structure of scanner, scanIP, IP1, IP2, printIP

Page 16: 1 of 20 Octopus: document handling Document handling: three modeling approaches Marc Voorhoeve Venkatesh Kannan TUE

16 of 20

Octopus: document handling

job in join

trigger

USBjobList

updatejobout

Job Rate LastUpdateTime

JOB JOB

structure of USB subnet

Page 17: 1 of 20 Octopus: document handling Document handling: three modeling approaches Marc Voorhoeve Venkatesh Kannan TUE

17 of 20

Octopus: document handling

0 1 2 3 3+x

HL

2L

Depicted USB scenario:

0 U H 0 31 U L 1 3+x

D L 1 22 U H 23 U H 33+x -

time job rate last_update_time trigger

x=(H-L)/H

Page 18: 1 of 20 Octopus: document handling Document handling: three modeling approaches Marc Voorhoeve Venkatesh Kannan TUE

18 of 20

Octopus: document handling

TA, SDF:find "optimal" schedulewithin state spacefor a given job sequence

CPN:nondeterministiceager execution

Mutual validation of models:- remove freedom- model within intersection- compare generated schedules (traces)

Mutual validation: do the models match?

Page 19: 1 of 20 Octopus: document handling Document handling: three modeling approaches Marc Voorhoeve Venkatesh Kannan TUE

19 of 20

Octopus: document handling

Modeling power vs. analysis options:

CPN: most power, least analyzable.SDF: least power, analysis limited but fastTA: wide range of analysis options danger of state space explosion

Possible developments for Océ:- competition- cooperation

Page 20: 1 of 20 Octopus: document handling Document handling: three modeling approaches Marc Voorhoeve Venkatesh Kannan TUE

20 of 20

Octopus: document handling

Conclusions:

Combination of formal frameworksinteresting, but time-consuming.

More time needed for assessment.

Questions?