Start a Conversation

Unsolved

This post is more than 5 years old

567

April 5th, 2010 04:00

Dynamic modeling: string wildcards

Hello.

Does anyone know if it's possible to create events based on string wildcards?

For example, I have a class named "CustomPort" with attributes "Description" and "Status" and I would like to set a new event only if "Status" is Down and port "Description" does not contains the string "Port*" (Port1, Port2, etc...):

interface CustomPort:Port
"Custom port example."
{
        event CustomPortDown
        "Custom port seems to be down."
        = Status=="DOWN" && Description!="Port*"
        ;

        export CustomPortDown;
}

Any help would be appreciated.

Thank you very much for your time.

Isabelle.

No Responses!
No Events found!

Top