question

JP117 avatar image
0 Likes"
JP117 asked Jeanette F commented

Event Triggered Source Assigning Labels

I have a label I am trying to assign to a TaskExecuter 1 using proximity behavior

1695413915967.png

the labels on AMR and Neighbor

1695413974212.png

Here is how I am trying to create the label on AMR which is TaskExecuter 1 I am getting a null value

1695414062865.png


FlexSim 23.0.0
event triggerproximity agent system
1695413915967.png (42.4 KiB)
1695413974212.png (16.5 KiB)
1695414062865.png (22.1 KiB)
· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @JP117, was Jeanette F's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always comment back to reopen your question.

0 Likes 0 ·

1 Answer

·
Jeanette F avatar image
0 Likes"
Jeanette F answered

Hello @JP117,

The AMR label contains a pointer to the Agent and to get the Type we need to have a pointer to the Object.

token.AMR.as(Agent).object.Type

Agent Label.fsm


agent-label.fsm (36.7 KiB)
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.