1 / 19

Chapter 2: One on one (101)

Chapter 2: One on one (101). BOIDS. Three Forces Acting on a Boid. Cohesion. Alignment. Separation. V’ i. V i. A. P’ i. P i. One Time Step of a Boid. At time t+  t. At time t. Simulation. 1010100 1111001 0010101 0111101 1001. Renderer. Data Model. Software. Client.

rossa
Download Presentation

Chapter 2: One on one (101)

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Chapter 2: One on one (101)

  2. BOIDS

  3. Three Forces Acting on a Boid Cohesion Alignment Separation

  4. V’i Vi A P’i Pi One Time Step of a Boid At time t+t At time t

  5. Simulation 1010100 1111001 0010101 0111101 1001...... Renderer Data Model Software Client

  6. DISTRIBUTED BOIDS: CONCEPTS

  7. Data-Push Client A Client B

  8. Data-Sharing Client A Client B

  9. Data-Coupled Client A Client B

  10. DISTRIBUTED BOIDS: IMPLEMENTATION

  11. Simulation 1010100 1111001 0010101 0111101 1001...... 1010100 1111001 0010101 0111101 1001...... Renderer Data Model Network Router Router Software Software Router Router Modem Modem Client Client

  12. Boids Implementation Screen (Renderer Output) Data model Simulation Local Flock Router Remote Flock Network Router Internet Router Router

  13. Create socket local port X _socket = DatagramSocket(); Create socket local port X _socket = DatagramSocket(); Create Datagram Packet to receive and send _packet = DatagramPacket(); Create Datagram Packet to receive and send _packet = DatagramPacket(); Read packet _packet = _socket.read() Write packet to remote address and port _socket .write(_packet) Write packet to remote address and port _socket .write(_packet) Read packet _packet = _socket.read() Close _socket Close _socket

  14. Wait for incoming connection requests _connectionSocket = _listenSocket.accept(); Connect to remote address and port _clientSocket = _Socket(); Create socket to listen to requests on local port X _listenSocket = ServerSocket(); Setup streams _connectionSocket Setup streams _connectionSocket Read messages on _connectionSocket Write messages on _clientSocket Write messages on _connectionSocket Read messages on _clientSocket Close _connectionSocket Close _clientSocket

  15. REFLECTION

  16. X X Boidi Boidi t wall clock time t+tNetwork wall clock time ClientA ClientB

  17. X X Boidj Boidi Boidi Boidi t t+tNetwork wall clock time wall clock time t t+tNetwork ClientA ClientB

  18. X Boidj Boidi t wall clock time tNetwork ClientA X Boidj Boidi t wall clock time tNetwork ClientB

  19. ClientA ClientB ClientA ClientB b) At time t+tNetwork a) At time t ClientA ClientB c) At time t+2.tNetwork

More Related