"Save" maximum value in "EntityProcessor"

34 views
Skip to first unread message

Cristiano Silva

unread,
May 13, 2024, 6:12:15 PMMay 13
to Jaamsim Users Discussion Group
Hey guys.

Please, can you tell me how I can "save" the maximum value that occurred in the "EntityProcessor" and display it in text.

Thank you very much!

Atenciosamente,
Cristiano Luís Turbino de França e Silva
==============================
                      GNU / Linux
    ,                ,       /       .-.
   /                  \     /      (e e)
  ((__-^^-,-^^-__))   /     _.`V'._
    `-_---' `---_-'      /    //~~W~~\\
  <__|o ` 'o|__>   /    //,           ,\\
        \   `  /       /    // |            | \\
         ):  :(      /      \) |            | (/
        :o_o:    /           \           /
          "-"    /              `w -  w'

john.b...@arup.com

unread,
May 14, 2024, 3:04:34 AMMay 14
to JaamSim Users Discussion Group
You might use the recently introduced ExpressionStatistics element. As I think of it, it does for expressions what the Statistics element does for entities. It will retain the latest maximum value (among other stats) of an expression.

Cristiano Silva

unread,
May 14, 2024, 8:21:16 AMMay 14
to john.b...@arup.com, JaamSim Users Discussion Group
Excellent...

Thank you very much.

I did it like this:

ExpressionStatistics:
- UnitType: DimensionlessUnit
- DataSource: [EntityProcessor].NumberInProgress

Text:
- Format: %s
- UnitType: DimensionlessUnit
- Datasource: [ExpressionSatatistics].Maximum

Atenciosamente,
Cristiano Luís Turbino de França e Silva
==============================
                      GNU / Linux
    ,                ,       /       .-.
   /                  \     /      (e e)
  ((__-^^-,-^^-__))   /     _.`V'._
    `-_---' `---_-'      /    //~~W~~\\
  <__|o ` 'o|__>   /    //,           ,\\
        \   `  /       /    // |            | \\
         ):  :(      /      \) |            | (/
        :o_o:    /           \           /
          "-"    /              `w -  w'

--
You received this message because you are subscribed to the Google Groups "JaamSim Users Discussion Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jaamsim-user...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/jaamsim-users/812e42f1-2ed8-4ff7-a61a-b35dade9087cn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages