Jump to content

Recommended Posts

Posted

In VB.Net, you can use an expression like "TypeOf obj Is Node", which will return True if obj is a Node, or if it is a type that inherits from Node.

How can I use a Simio expression to do something similar, to return True if an object is either a Server, or is subclassed from a Server (or a subclass of a subclass of a Server, etc)?
Simio's "Is" keyword doesn't respect polymorphism.

Posted (edited)

Using a object reference state variable named "Test" on the ModelEntity: (Assign step was just ModelEntity.Test  ->  Server)

image.thumb.png.5aa98b3393b178e18fb031810d730141.png

Edited by ViniciusF
×
×
  • Create New...