JKI State Machine Objects

cancel
Showing results for 
Search instead for 
Did you mean: 

Public/Private API confusion

I'm starting to understand this architecture, but I've got a long way to go.

 

I've built a basic SMO, started adding events and methods and found something that confused me.  I created a public event titled "SetPressure", which was created in the "Private" folder (but appears as a Public Event), and I created a public method that is in the "API" folder, but shows up as a private event.  I want other SMOs to be able to call the GetPressure method.

 

What have I done?  What am I missing?

 

SMO confused.png

Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

0 Kudos
Message 1 of 2
(4,646 Views)

I think public and private refer to the receiver of the event, but the API method is the sender.  Anyone can send a “private event” that only the SMO can receive.  Only the SMO can send a “public event” that anyone can receive.

 

I don’t use SMO myself, but I think that’s the issue.   The DQMH, which borrows the event architecture, uses different terminology to avoid this confusion.

0 Kudos
Message 2 of 2
(4,637 Views)