SlideShare a Scribd company logo
1 of 14
How to create events
Become an AnyLogic Expert Step by Step
About me
khoi.tran@simbean.com 2
My name is Khoi Tran and I’m living in beautiful Stuttgart, Germany.
As a 12-years expert in the software industry and 6-years expert in
simulation with AnyLogic, I would like to share my experiences
with you on a simple and fast path.
Learning subjects
khoi.tran@simbean.com 3
In this example you can learn,
• How to create different kind of Events.
• Static Events
• Dynamic Events
You can see the demo in action first
http://simbean.com/en/knowhow/become-an-anylogic-expert.html
If you like to know, how I built this model, this presentation may help you.
create_MyDynamicEvent01(15);
static event and dynamic event
khoi.tran@simbean.com 4
0
10 15
timeevent.restart(15);
1. Static event exists for the whole time, during the model run. When time is over,
you can restart the static event by calling its restart method.
2. Many dynamic event objects can be created in parallel. When time is over, you
need to create new dynamic event.
15
0
10
time
Static event
Dynamic event
Action executed
Start to schedule
create_MyDynamicEvent01(10);
Create a static event
khoi.tran@simbean.com 5
Drag & drop one event
onto the graghical
editor
Set properties for static event
khoi.tran@simbean.com 6
• Method “Traceln” prints the message on the console of AnyLogic
• Absolute time of a running model is exactly the time, which is counted from the
begin of the running model
Show the message,
when this event is
triggered
Set Trigger type:
“Timeout”
Set Mode: “Occurs
once”
Set absolute time for
event trigger
Create a dynamic event
khoi.tran@simbean.com 7
Drag & drop a dynamic
event onto the
graghical editor
Drag & drop a plain
variable onto the
graghical editor
Set properties for dynamic event
khoi.tran@simbean.com 8
Method traceln(“...“) shows the
message on the console, as the
definition of the action in this
dynamic event
Set properties for plain variable
khoi.tran@simbean.com 9
Set the plain variable on type
“DynamicEvent“
Set startup code for active object which has a
dynamic event
khoi.tran@simbean.com 10
Create dynamic events,
Value 10 is the trigger time
Run the model
khoi.tran@simbean.com
Click on the run button and
choose the simulation
11
1. You can run the model and see the result
2. Try to change or set properties to see some small effects e.g.
1. Set the absolute time for the static and dynamic events.
3. You need to restart the model to see the effects
Another try
khoi.tran@simbean.com 12
Create another dynamic event
with another plain variable
Create another plain variable
The result
khoi.tran@simbean.com 13
Two dynamic events are
created. Time value can be
seen at the plain variables
The time is counting down
for the static event
Two dynamic events are
created. Time value can be
seen at the plain variables
Thank You
khoi.tran@simbean.com 14
IF YOU HAVE ANY QUESTION, IDEA, FEEDBACK or FIND ANY MISTAKE,
PLEASE SEND ME an EMAIL
khoi.tran@simbean.com
BECAUSE I WOULD LIKE to IMPROVE this SLIDE CONTINUOUSLY.
I APPRECIATE a lot YOUR TIME.

More Related Content

Viewers also liked (13)

Google Think Mobile 2012
Google Think Mobile 2012Google Think Mobile 2012
Google Think Mobile 2012
 
Pooderniercours
PooderniercoursPooderniercours
Pooderniercours
 
Llista provisional d'inscrits ve'12
Llista provisional d'inscrits ve'12Llista provisional d'inscrits ve'12
Llista provisional d'inscrits ve'12
 
Inwestycje zagraniczne w chinach
Inwestycje zagraniczne w chinachInwestycje zagraniczne w chinach
Inwestycje zagraniczne w chinach
 
Sachin tuli
Sachin tuliSachin tuli
Sachin tuli
 
Blacklists amb Squidguard a Debian Squeeze
Blacklists amb Squidguard a Debian SqueezeBlacklists amb Squidguard a Debian Squeeze
Blacklists amb Squidguard a Debian Squeeze
 
Pr1 ri
Pr1 riPr1 ri
Pr1 ri
 
Power point 5 media
Power point 5 mediaPower point 5 media
Power point 5 media
 
Swiatowypon
SwiatowyponSwiatowypon
Swiatowypon
 
2012 Corporate Info
2012 Corporate Info2012 Corporate Info
2012 Corporate Info
 
VodQA_Parallelizingcukes_AmanKing
VodQA_Parallelizingcukes_AmanKingVodQA_Parallelizingcukes_AmanKing
VodQA_Parallelizingcukes_AmanKing
 
Hokkaido.pm#6 YAPC::Asia Hokkaido
Hokkaido.pm#6 YAPC::Asia HokkaidoHokkaido.pm#6 YAPC::Asia Hokkaido
Hokkaido.pm#6 YAPC::Asia Hokkaido
 
Web norte
Web norteWeb norte
Web norte
 

Recently uploaded

Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo DiehlFuture Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Peter Udo Diehl
 
Breaking Down the Flutterwave Scandal What You Need to Know.pdf
Breaking Down the Flutterwave Scandal What You Need to Know.pdfBreaking Down the Flutterwave Scandal What You Need to Know.pdf
Breaking Down the Flutterwave Scandal What You Need to Know.pdf
UK Journal
 
Structuring Teams and Portfolios for Success
Structuring Teams and Portfolios for SuccessStructuring Teams and Portfolios for Success
Structuring Teams and Portfolios for Success
UXDXConf
 

Recently uploaded (20)

Free and Effective: Making Flows Publicly Accessible, Yumi Ibrahimzade
Free and Effective: Making Flows Publicly Accessible, Yumi IbrahimzadeFree and Effective: Making Flows Publicly Accessible, Yumi Ibrahimzade
Free and Effective: Making Flows Publicly Accessible, Yumi Ibrahimzade
 
Enterprise Knowledge Graphs - Data Summit 2024
Enterprise Knowledge Graphs - Data Summit 2024Enterprise Knowledge Graphs - Data Summit 2024
Enterprise Knowledge Graphs - Data Summit 2024
 
The Metaverse: Are We There Yet?
The  Metaverse:    Are   We  There  Yet?The  Metaverse:    Are   We  There  Yet?
The Metaverse: Are We There Yet?
 
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdfLinux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
 
Designing for Hardware Accessibility at Comcast
Designing for Hardware Accessibility at ComcastDesigning for Hardware Accessibility at Comcast
Designing for Hardware Accessibility at Comcast
 
Overview of Hyperledger Foundation
Overview of Hyperledger FoundationOverview of Hyperledger Foundation
Overview of Hyperledger Foundation
 
Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...
Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...
Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...
 
TopCryptoSupers 12thReport OrionX May2024
TopCryptoSupers 12thReport OrionX May2024TopCryptoSupers 12thReport OrionX May2024
TopCryptoSupers 12thReport OrionX May2024
 
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...
 
Optimizing NoSQL Performance Through Observability
Optimizing NoSQL Performance Through ObservabilityOptimizing NoSQL Performance Through Observability
Optimizing NoSQL Performance Through Observability
 
Powerful Start- the Key to Project Success, Barbara Laskowska
Powerful Start- the Key to Project Success, Barbara LaskowskaPowerful Start- the Key to Project Success, Barbara Laskowska
Powerful Start- the Key to Project Success, Barbara Laskowska
 
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...
 
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdfHow Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
 
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdfSimplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
 
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo DiehlFuture Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
 
Breaking Down the Flutterwave Scandal What You Need to Know.pdf
Breaking Down the Flutterwave Scandal What You Need to Know.pdfBreaking Down the Flutterwave Scandal What You Need to Know.pdf
Breaking Down the Flutterwave Scandal What You Need to Know.pdf
 
Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)
Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)
Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)
 
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptxUnpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
 
Portal Kombat : extension du réseau de propagande russe
Portal Kombat : extension du réseau de propagande russePortal Kombat : extension du réseau de propagande russe
Portal Kombat : extension du réseau de propagande russe
 
Structuring Teams and Portfolios for Success
Structuring Teams and Portfolios for SuccessStructuring Teams and Portfolios for Success
Structuring Teams and Portfolios for Success
 

AnyLogic - Free AnyLogic basic lessions - Learning AnyLogic by examples - Demo event

  • 1. How to create events Become an AnyLogic Expert Step by Step
  • 2. About me khoi.tran@simbean.com 2 My name is Khoi Tran and I’m living in beautiful Stuttgart, Germany. As a 12-years expert in the software industry and 6-years expert in simulation with AnyLogic, I would like to share my experiences with you on a simple and fast path.
  • 3. Learning subjects khoi.tran@simbean.com 3 In this example you can learn, • How to create different kind of Events. • Static Events • Dynamic Events You can see the demo in action first http://simbean.com/en/knowhow/become-an-anylogic-expert.html If you like to know, how I built this model, this presentation may help you.
  • 4. create_MyDynamicEvent01(15); static event and dynamic event khoi.tran@simbean.com 4 0 10 15 timeevent.restart(15); 1. Static event exists for the whole time, during the model run. When time is over, you can restart the static event by calling its restart method. 2. Many dynamic event objects can be created in parallel. When time is over, you need to create new dynamic event. 15 0 10 time Static event Dynamic event Action executed Start to schedule create_MyDynamicEvent01(10);
  • 5. Create a static event khoi.tran@simbean.com 5 Drag & drop one event onto the graghical editor
  • 6. Set properties for static event khoi.tran@simbean.com 6 • Method “Traceln” prints the message on the console of AnyLogic • Absolute time of a running model is exactly the time, which is counted from the begin of the running model Show the message, when this event is triggered Set Trigger type: “Timeout” Set Mode: “Occurs once” Set absolute time for event trigger
  • 7. Create a dynamic event khoi.tran@simbean.com 7 Drag & drop a dynamic event onto the graghical editor Drag & drop a plain variable onto the graghical editor
  • 8. Set properties for dynamic event khoi.tran@simbean.com 8 Method traceln(“...“) shows the message on the console, as the definition of the action in this dynamic event
  • 9. Set properties for plain variable khoi.tran@simbean.com 9 Set the plain variable on type “DynamicEvent“
  • 10. Set startup code for active object which has a dynamic event khoi.tran@simbean.com 10 Create dynamic events, Value 10 is the trigger time
  • 11. Run the model khoi.tran@simbean.com Click on the run button and choose the simulation 11 1. You can run the model and see the result 2. Try to change or set properties to see some small effects e.g. 1. Set the absolute time for the static and dynamic events. 3. You need to restart the model to see the effects
  • 12. Another try khoi.tran@simbean.com 12 Create another dynamic event with another plain variable Create another plain variable
  • 13. The result khoi.tran@simbean.com 13 Two dynamic events are created. Time value can be seen at the plain variables The time is counting down for the static event Two dynamic events are created. Time value can be seen at the plain variables
  • 14. Thank You khoi.tran@simbean.com 14 IF YOU HAVE ANY QUESTION, IDEA, FEEDBACK or FIND ANY MISTAKE, PLEASE SEND ME an EMAIL khoi.tran@simbean.com BECAUSE I WOULD LIKE to IMPROVE this SLIDE CONTINUOUSLY. I APPRECIATE a lot YOUR TIME.