Em Andamento

Java Code correction -- 5 hours turnaround timemost of the codes already done.

Code correction on below codes written by me. (Fastest turnaround time)

Petrinet

1. Objective

Create a Java class to store a Petri-net, and to allow the behaviour of the Petri-net to be simulated. In addition, you will write a class that can read/write the description of a Petri-net from/to a text file. The required external behaviour will be constrained by interfaces that will be provided.

3. Petri Net text-file format

The text file describing a Petri-net is structured as lines of text. The are six different type of lines to specify places, transitions, arcs (two types), initial-arcs, and comments.

3.1 Place lines

To specify each place, there is a line of the form:

plc placeName xPos yPos

Where:

plc is the character string plc (indicating a place).

placeName is the name of the place. It is a string of characters beginning with a capital-letter, followed by zero or more letter, digit, or underscore characters.

xPos and yPos are integer values that give the x- and y-position of the place on the computer’s display screen.

3.2 Transition lines

To specify each transition, there is a line of the form:

trn transitionName xPos yPos

Where:

• trn stands for the character string trn, indicating a transition).

• transitionName is the name of the transition. It is a string of characters beginning with a small-letter, followed by zero or more letter, digit, or underscore characters.

• xPos and yPos are integer values that gives the x- and y-position of the transition on the computer’s display screen.

3.3 Arc lines

To specify each arc from a place to a transition, there is a line of the form:

apt placeName transitionName weight

Where:

• apt stands for the character string apt, (indicating arc, place-to-transition).

• placeName is the name of the place where the arc begins;

• transitionName is the name of the transition where the arc ends;

• weight is the weight associated with this arc.

To specify each arc from a transition to a place, there is a line of the form:

atp transitionName placeName weight

Where:

• atp stands for the character string atp, (indicating arc, transition-to-place).

• transitionName is the name of the transition where the arc begins;

• placeName is the name of the place where the arc ends;

• weight is the weight associated with this arc.

3.4 Initial arc lines

To specify each initial-arc, a line of the form:

ini placeName weight

Where:

• ini stands for the character string ini, (indicating an initial arc);

• placeName specifies the place to which this initial arc should be attached; and

• weight is the weight associated with this initial arc.

3.5 Comment line

For each comment in the file a line of the form:

# text afterwards is ignored

3.6 Order of lines

Lines can appear in any order in the file, provided that places and transitions must have been defined via a plc or trn line before they can be used in a apt, atp, or ini line.

4 What you have to do

You must correct two java classes:

//Both the classes are already implemented, please check my codes and you need to throw the exception correctly on [url removed, login to view] rather than in [url removed, login to view] (thats how i Implement it and its wrong)

[url removed, login to view], which implements the Petrinet interface, and contains a default constructor: public PetrinetImpl().

[url removed, login to view], which implements the PetrinetIo inteface, and contains a default constructor: PetrinetReaderWriter().

Habilidades: Java

Ver mais: need java on my computer, how to write an objective, how to read computer code, how to computer code, how to code a computer, computer beginning of time, check hours, character turnaround, beginning of computer time, atp file

Acerca do Empregador:
( 2 comentários ) Singapore, Singapore

ID do Projeto: #10493404

Premiar a:

quochuy2809

- I completed a petrinet simulator few days ago with the same requirements, so I deeply understand your problem. - I have strong skills in Java, JWT, Swing

$26 SGD em 1 dia
(0 Avaliações)
0.0

3 freelancers estão ofertando em média $33 para este trabalho

abhijitbuet

Hi, I'm Abhijit Mondal from Bangladesh and my background is in Computer Science and Engineering at Bangladesh University of Engineering and Technology. I am an expert Java and Android developer and I have 5 years of Mais

$46 SGD em 1 dia
(21 Comentários)
4.4
$27 SGD em 1 dia
(2 Comentários)
1.9