This is both a general SysML question and one for paraMagic.
I have a Block who's power consumption is a function of its current state defined by a State Machine within it.
1. In general, how do I reference the state property of a Block with a state machine? (or, how do I create a state attribute to represent the Block's state)? I know how to dot-reference a state in the state machine, but what represents the current state?
2. How would I reference the State in a constraint Block for paraMagic? (i.e. in an 'if' statement for example)
So far the only way I've thought of is to create a Value Type property for the Block to represent its state and then give its slot values arbitrary numbers (currentState: 1 = Initialize, 2 = Operate::LowPower, 3 = Operate::HighPower, 4 = StandBy, ...) for each state. That's not a very attractive approach since its not related in anyway to the state machine states as defined in the state machine.
The desired ultimate result is to roll-up everything into a plot that has power usage as the Y-axis and system states as the X-axis.
Thanks,
Keith Smith