Processor Simulator in Java using petri net model for design