Book a Demo

Author Topic: SysML Parametric Diagram Simulation  (Read 2666 times)

philchudley

  • EA User
  • **
  • Posts: 750
  • Karma: +22/-0
  • EA Consultant / Trainer - Sparx Europe
    • View Profile
SysML Parametric Diagram Simulation
« on: December 09, 2009, 02:20:55 am »
Does anyone know if it is possible to output text values (rather than numeric) when simulating a SysML parametric diagram?

When I display the graphical output, all is well except any output with a text value is not displayed.


Here is the script

var determinant = (b * b) - (4 * a * c);
if (determinant < 0) {
      roots = "Complex roots";
}
else {
      roots ="Real Roots";
      rootA = ((-1 * b) / (2 * a)) + (Math.sqrt(determinant)) / (2 * a);
      rootB = ((-1 * b) / (2 * a)) - (Math.sqrt(determinant)) / (2 * a);
}

roots rootA rootB are all visible on the Simulate Diagram dialogue

Cheers
Models are great!
Correct models are even greater!