muskel.util
Class mdfis

java.lang.Object
  extended by muskel.util.mdfis

public class mdfis
extends java.lang.Object


Constructor Summary
mdfis(Manager m, Compute c, int id)
          Used to incrementally build the instruction
 
Method Summary
 void addDest(int iid, int pos)
          adds a destination to the instruction currently being built
 void addInput()
          increments the number of input tokens (default is 1)
 Mdfi getMDFi()
          build the instruction as stored up to now
static Mdfi simpleMDFi(Manager m, Compute opc, int id, int pos, int did)
          prepares a new instruction, wiht a given code, identifier and destination (just one token in input and one in output)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

mdfis

public mdfis(Manager m,
             Compute c,
             int id)
Used to incrementally build the instruction

Parameters:
m - the manager eventually running it
c - the code to be executed
id - the instruction id
Method Detail

simpleMDFi

public static Mdfi simpleMDFi(Manager m,
                              Compute opc,
                              int id,
                              int pos,
                              int did)
prepares a new instruction, wiht a given code, identifier and destination (just one token in input and one in output)

Parameters:
m - the manager eventually running the application
opc - the code to be computed
id - the instruction id
pos - the position in the dest instruction of the output token
did - the identifier of the dest instruction
Returns:
the MDF instruction

addDest

public void addDest(int iid,
                    int pos)
adds a destination to the instruction currently being built

Parameters:
iid - the destination instruction id
pos - the destination instruction input token position

addInput

public void addInput()
increments the number of input tokens (default is 1)


getMDFi

public Mdfi getMDFi()
build the instruction as stored up to now

Returns:
the new MDF instruction