new ExchangeMessage(x, y, exchange, routingKey, rejected, radius, fillColor)
Message object between producer and exchange.
The exchange receives this messages and route with another message.
The exchange receives this messages and route with another message.
Parameters:
Name | Type | Description |
---|---|---|
x | number | x position of the message |
y | number | y position of the message |
exchange | Exchange | Exchange object |
routingKey | string | routing key of the message |
rejected | boolean | rejected message |
radius | number | radius of the circle |
fillColor | string | hex color code to fill the circle |
Extends
Methods
addToScene(scene) → {object}
Add an object as actor to scene.
Parameters:
Name | Type | Description |
---|---|---|
scene | Scene | scene on canvas |
- Inherited From
Returns:
this
- Type:
- object
createUUID() → {string}
Generates an UUID, used to identify every object in the scene.
https://www.w3resource.com/javascript-exercises/fundamental/javascript-fundamental-exercise-253.php
https://www.w3resource.com/javascript-exercises/fundamental/javascript-fundamental-exercise-253.php
- Inherited From
Returns:
- uuid
- Type:
- string
render()
Renders a circle representing the message.
- Inherited From
- Source
update()
Updates the values for the moving message.
When the target gets reached the method of an arriving messages gets called.
When the target gets reached the method of an arriving messages gets called.