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 change the colour of a place in a petri net model

Mousavi
edited June 2011 in ProM 6

Dear friends

 I'm using Prom6 as a developer,I want to change the colour of a place in a petri net model,how can I do it ? I need to know the code of that .

thanks alot

Mousavi

Comments

  • Hi Mousavi,

    Assuming that you are creating the Petri net, you can add an attribute to the attributemap of the place indicating the color.

    This would look something like this: (note: untested!)
    myPlace.getAttributeMap().put(AttributeMap.FILLCOLOR, new Color(0,0,0));

    Where attributemap comes from org.processmining.models.graphbased.AttributeMap;


    Let me know if this works!
    Joos Buijs

    Senior Data Scientist and process mining expert at APG (Dutch pension fund executor).
    Previously Assistant Professor in Process Mining at Eindhoven University of Technology
  • Hi Joos Buijs,

    Thank you, I tested it , and it solved this problem :)
    I tested below code :
    myPlace.getAttributeMap().put(org.processmining.models.graphbased.AttributeMap.FILLCOLOR,Color.RED);

    With best regards
    Mousavi
Sign In or Register to comment.