sims.mar
Class Instruction

java.lang.Object
  extended by sims.mar.Sommet
      extended by sims.mar.Instruction

public class Instruction
extends Sommet

Une instruction est un sommet executable qui est toujours associé à une commande


Method Summary
 int executer()
          Execute l'intruction
 Commande getCommande()
           
 int getID()
           
 int getLigne()
          Si la ligne vaut -1, aucune ligne n'est associé à cette exception
 void setCommande(Commande cmd)
          Associé la commande à l'intruction
 void setLigne(int ligne)
           
 
Methods inherited from class sims.mar.Sommet
toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

executer

public int executer()
Execute l'intruction

Returns:
le type de branchement

getID

public int getID()
Returns:
l'id de l'intruction

getLigne

public int getLigne()
Si la ligne vaut -1, aucune ligne n'est associé à cette exception

Returns:
la ligne correspondant à l'instruction

setLigne

public void setLigne(int ligne)
Parameters:
ligne - Numéro de ligne à associer avec l'intruction

setCommande

public void setCommande(Commande cmd)
Associé la commande à l'intruction

Parameters:
cmd - Commade à associer

getCommande

public Commande getCommande()
Returns:
la commande associé à l'instruction