Csse3002 Tuesday 2 For process modelling, Jeff the ninja - - PowerPoint PPT Presentation

csse3002 tuesday 2
SMART_READER_LITE
LIVE PREVIEW

Csse3002 Tuesday 2 For process modelling, Jeff the ninja - - PowerPoint PPT Presentation

Csse3002 Tuesday 2 For process modelling, Jeff the ninja recommends... Little-JIL Overview What is Little-JIL? Jared Why use Little-JIL? Douglas Interrupt if you have a question What is Little-JIL? Research at UMass


slide-1
SLIDE 1

Csse3002 Tuesday 2

For process modelling, Jeff the ninja recommends...

Little-JIL

slide-2
SLIDE 2

Overview

 What is Little-JIL?

 Jared

 Why use Little-JIL?

 Douglas

 Interrupt if you have a question

slide-3
SLIDE 3

What is Little-JIL?

 Research at UMass  Process modelling language  Co-ordination of agents  Formal semantics  Graphical representation

slide-4
SLIDE 4

Process modelling language

 Some formal languages are object-based

 UML, B  create abstract data types & methods  “what is an X, and what can you do with it?”

 Little-JIL is process-based

 break complex algorithms into pieces  “how do you do X, and who is involved?”

slide-5
SLIDE 5

Co-ordination of agents

 Co-ordination of agents

 scheduling of tasks  communication between agents

slide-6
SLIDE 6

Little-JIL process model

 Composed of steps  Steps are executed by agents  Steps have badges which labels are attached to

slide-7
SLIDE 7

Example

slide-8
SLIDE 8

Example

Pass Csse3002 agent:Jared

slide-9
SLIDE 9

Example

Pass Csse3002 agent:Jared Agent executing the step Step name

slide-10
SLIDE 10

Example

Pass Csse3002 agent:Jared

slide-11
SLIDE 11

Example

Pass Csse3002 Do assignment 3 Do essay agent:Jared

slide-12
SLIDE 12

Example

Pass Csse3002 Do assignment 3 Do essay Steps executed in parallel agent:Jared

slide-13
SLIDE 13

Example

Pass Csse3002 Do assignment 3 Do essay agent:Jared

slide-14
SLIDE 14

Example

Do assignment 3

Pass Csse3002 Do essay agent:Jared

slide-15
SLIDE 15

Example

Do assignment 3 Choose topic Write content agent:Douglas agent:Lawrence

Pass Csse3002 Do essay agent:Jared

slide-16
SLIDE 16

Example

Do assignment 3 Choose topic Write content agent:Douglas agent:Lawrence Sequential execution (left to right) Steps assigned to different agents

Pass Csse3002 Do essay agent:Jared

slide-17
SLIDE 17

Example

Do assignment 3 Choose topic Write content agent:Douglas agent:Lawrence

Pass Csse3002 Do essay agent:Jared

slide-18
SLIDE 18

Example

Do essay

Pass Csse3002 agent:Jared Do assignment 3 Choose topic Write content agent:Douglas agent:Lawrence

slide-19
SLIDE 19

Example

Do essay

Pass Csse3002 agent:Jared Do assignment 3 Choose topic Write content agent:Douglas agent:Lawrence

Cheat Do it properly

slide-20
SLIDE 20

Example

Do essay

Pass Csse3002 agent:Jared Do assignment 3 Choose topic Write content agent:Douglas agent:Lawrence

Cheat Do it properly Choose

slide-21
SLIDE 21

Example

Do essay

Pass Csse3002 agent:Jared Do assignment 3 Choose topic Write content agent:Douglas agent:Lawrence

Cheat Do it properly

slide-22
SLIDE 22

Example

Do essay Pass Csse3002 agent:Jared Do assignment 3 Choose topic Write content agent:Douglas agent:Lawrence

Cheat

Do it properly

slide-23
SLIDE 23

Example

Do essay Pass Csse3002 agent:Jared Do assignment 3 Choose topic Write content agent:Douglas agent:Lawrence

Cheat

Do it properly

Copy from friend Bribe David Carrington

slide-24
SLIDE 24

Example

Do essay Pass Csse3002 agent:Jared Do assignment 3 Choose topic Write content agent:Douglas agent:Lawrence

Cheat

Do it properly

Copy from friend Bribe David Carrington T ry (execute sequentially until one succeeds)

slide-25
SLIDE 25

Example

Do essay Pass Csse3002 Choose topic Write content Do assignment 3 Copy from friend Bribe David Carrington Cheat Do it properly agent:Jared agent:Douglas agent:Lawrence

slide-26
SLIDE 26

Example

Do essay Pass Csse3002 Choose topic Write content Do assignment 3 Copy from friend Bribe David Carrington Cheat Do it properly

Value passed between steps

chosenT

  • pic

agent:Jared agent:Douglas agent:Lawrence

slide-27
SLIDE 27

Example

Do essay Pass Csse3002 Choose topic Write content Do assignment 3 Copy from friend Bribe David Carrington Cheat Do it properly chosenT

  • pic

agent:Jared agent:Douglas agent:Lawrence

slide-28
SLIDE 28

Example

Do essay Pass Csse3002 Choose topic Write content Do assignment 3 Copy from friend Bribe David Carrington Cheat x CantT akeItAnymore Do it properly

Exception declared

chosenT

  • pic

agent:Jared agent:Douglas agent:Lawrence

slide-29
SLIDE 29

Example

Do essay Pass Csse3002 Choose topic Write content Do assignment 3 Copy from friend Bribe David Carrington Cheat x CantT akeItAnymore Do it properly

Exception rethrown

↑CantT akeItAnymore chosenT

  • pic

agent:Jared agent:Douglas agent:Lawrence

slide-30
SLIDE 30

Example

Do essay Pass Csse3002 Choose topic Write content Do assignment 3 Copy from friend Bribe David Carrington Cheat x CantT akeItAnymore Do it properly

Exception handled

↑CantT akeItAnymore StudyArtsAtGriffith chosenT

  • pic

agent:Jared agent:Douglas agent:Lawrence

slide-31
SLIDE 31

Little-JIL features

 Co-ordination of agents

 scheduling of tasks  communication between agents

slide-32
SLIDE 32

Little-JIL features

 Co-ordination of agents  Already covered

 Step sequencing

 parallel  sequential  choose  try

 Parameter passing  Exception handling

slide-33
SLIDE 33

Little-JIL features

 Co-ordination of agents  Not yet covered

 step repetition  conditional execution  deadlines  pre-conditions & post-conditions  resource acquisition  communication between groups of agents

 multi-way  synchronous & asynchronous

slide-34
SLIDE 34

Little-JIL features

 Co-ordination of agents  Is this useful?

slide-35
SLIDE 35

Why?

 Why use Little-JIL?  Why use a process modelling language?

slide-36
SLIDE 36

Design goals

 Simplicity  Expressiveness  Precision  Flexibility

slide-37
SLIDE 37

Simplicity

 Graphical  No data types, data definition, calculation...

slide-38
SLIDE 38

Expressiveness

 ‘A picture is worth a thousand words’

  • Ole Canadian Proverb*

*Not actually Canadian

slide-39
SLIDE 39

Expressiveness

 ‘A picture is worth a thousand words’

Get drink agent:ThirstyPerson Get coke Get milk IsCold NotCold

slide-40
SLIDE 40

Precision

 Strict syntax & semantics

slide-41
SLIDE 41

Flexibility

 Any process can be described

slide-42
SLIDE 42

Little-JIL’s limitations

 Assumes agent knowledge

 Is this valid?

 Doesn’t get requirements  Doesn’t run testing  Doesn’t write code  So what’s the use??

slide-43
SLIDE 43

Possible uses

 Modelling The Software ProcessTM  Specification for system-wide process flows

slide-44
SLIDE 44

Modelling the software process

 Gantt chart & PERT chart & Little-JIL

 Concurrency  Dependencies  Time

 Little-JIL

 Better sequencing (choice & try)  Exceptions  Communication

slide-45
SLIDE 45

Software specification

 Combines good aspects of

 UML activity/collaboration/sequence diagrams

 Multi-agent  Communication

 Flowcharts

 Sequencing of steps  Decisions

slide-46
SLIDE 46

Software specification (cont)

slide-47
SLIDE 47

Software specification (cont)

Add action item agent:User Clear form Enter information x MaxItemsExceeded x InvalidName ✓ MaxItemsExceeded ↲ InvalidName

slide-48
SLIDE 48

Software specification (cont)

 Problems

 No data  No calculation

slide-49
SLIDE 49

Conclusion

 Can Little JIL help?

 Yes

 Good replacement for UML sequence, activity and

collaboration diagrams

 Good for explaining processes within software engineering

 But

 Relies on human interpretation  No data types  Relies on agent ability

slide-50
SLIDE 50
slide-51
SLIDE 51

References

 Sutton, Lerner, & Osterweil “Experience using

the JIL process programming language to specify design processes” (1997)

 Sutton & Osterweil “The design of a next-

generation process language” (1997)

 Cass, Lerner, et al “Little-JIL/Juliette: a process

definition language and interpreter” (2000)

 LASER process working group “Little-JIL 1.5

language report” (2006)

slide-52
SLIDE 52

End of presentation