To prevent spam users, you can only post on this forum after registration, which is by invitation. If you want to post on the forum, please send me a mail (h DOT m DOT w DOT verbeek AT tue DOT nl) and I'll send you an invitation in return for an account.

how can I convert String classinto Place class

Hi, I want to konw how convert String class to Place class. The information that i extracted is a String class, But what I need is a Place class, how can I convert String classinto Place class, maybe there is a similar code, I want to know where to find.

Comments

  • HI,

    Provided that net is the Petrinet where you want to add the place to and that label is the String you have, you can use
    Place place = net.addPlace(label);
    This adds a place with the given label to the given net, and returns that place.

    Kind regards,
    Eric.
Sign In or Register to comment.