uk.ac.man.cs.rainbow.compiler.networks
Class Pipeline

java.lang.Object
  |
  +--uk.ac.man.cs.rainbow.compiler.CompilerThing
        |
        +--uk.ac.man.cs.rainbow.compiler.CompilerNode
              |
              +--uk.ac.man.cs.rainbow.compiler.networks.Pipeline
All Implemented Interfaces:
Cloneable

public class Pipeline
extends CompilerNode
implements Cloneable


Fields inherited from class uk.ac.man.cs.rainbow.compiler.CompilerNode
next, sourcepos
 
Constructor Summary
Pipeline()
           
Pipeline(GreenComponent componentList)
           
Pipeline(SourcePosition sourcepos, GreenComponent componentList, boolean inputRequired, boolean outputProduced)
           
 
Method Summary
 CompilerType check_control_pipe(TCEnv env, CompilerType input_if_any, SourcePosition sourcepos, String context, CompilerType required_type, Errors errors)
           
 Pipeline clonePipelineNoParent()
           
 String dumpTree(int n)
           
 ProcessTerm getRAPA(RapaEnv env)
           
 Channel getSimpleChannelTarget()
           
 int inputs_really_required(TCEnv env)
           
 boolean isSimpleChannelTarget()
           
 RASMList rasm(GreenEnv env)
           
 void setEnds(boolean inputRequired, boolean outputProduced)
           
 void setInputRequired(boolean inputRequired)
           
 void setOutputProduced(boolean outputProduced)
           
 String toString()
           
 CompilerType typecheckGreen(TCEnv env, Errors errors, CompilerType input_typeList)
           
 
Methods inherited from class uk.ac.man.cs.rainbow.compiler.CompilerNode
append, appendNotParent, dumpNode, getParent, indent, iterator, list_typecheck, list_typecheck, listLength, listToString, noParent, rasm_list, rasm, setParent, typecheck, typecheck, typecheckGreen
 
Methods inherited from class uk.ac.man.cs.rainbow.compiler.CompilerThing
className, crashHere, getSerial
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Pipeline

public Pipeline(SourcePosition sourcepos,
                GreenComponent componentList,
                boolean inputRequired,
                boolean outputProduced)

Pipeline

public Pipeline(GreenComponent componentList)

Pipeline

public Pipeline()
Method Detail

clonePipelineNoParent

public Pipeline clonePipelineNoParent()

setEnds

public void setEnds(boolean inputRequired,
                    boolean outputProduced)

setInputRequired

public void setInputRequired(boolean inputRequired)

setOutputProduced

public void setOutputProduced(boolean outputProduced)

toString

public String toString()
Overrides:
toString in class CompilerNode

dumpTree

public String dumpTree(int n)
Overrides:
dumpTree in class CompilerNode

inputs_really_required

public int inputs_really_required(TCEnv env)

typecheckGreen

public CompilerType typecheckGreen(TCEnv env,
                                   Errors errors,
                                   CompilerType input_typeList)
Overrides:
typecheckGreen in class CompilerNode

rasm

public RASMList rasm(GreenEnv env)
Overrides:
rasm in class CompilerNode

check_control_pipe

public CompilerType check_control_pipe(TCEnv env,
                                       CompilerType input_if_any,
                                       SourcePosition sourcepos,
                                       String context,
                                       CompilerType required_type,
                                       Errors errors)

getRAPA

public ProcessTerm getRAPA(RapaEnv env)

isSimpleChannelTarget

public boolean isSimpleChannelTarget()

getSimpleChannelTarget

public Channel getSimpleChannelTarget()