Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quick Question on “Private Function” #37

Open
linhongbin opened this issue Aug 17, 2017 · 1 comment
Open

Quick Question on “Private Function” #37

linhongbin opened this issue Aug 17, 2017 · 1 comment
Labels

Comments

@linhongbin
Copy link

Hi,

I found that the Behavior Dash Board of Flexbe APP have a configuration option called "Private Function", but it is not available.
3
It seems it can add or drop the new function to the configuration in the tutorial.

And I am curious about what that configuration is used for? It is not discussed in tutorial.

@pschillinger
Copy link
Member

This is indeed not yet covered in the tutorials. Without going much into detail here, every behavior has a section in the source code marked with:

# Private functions can be added inside the following tags
# [MANUAL_FUNC]

# [/MANUAL_FUNC]

This section can be edited manually, i.e., directly in the source code, to define additional functions. These functions can be passed to states which accept functions as parameters, e.g., a CalculationState or a DecisionState. For easy reference, these functions are listed in the Dashboard.

Since the idea is that the user can do whatever they want in this section of the code, parsing is kept to a minimum and no code is generated to overwrite this part. This is why it appears as read-only.

fmessmer added a commit to fmessmer/flexbe_behavior_engine that referenced this issue May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants