uk.ac.man.cs.rainbow.compiler.green
Class GreenComponent

java.lang.Object
  |
  +--uk.ac.man.cs.rainbow.compiler.CompilerThing
        |
        +--uk.ac.man.cs.rainbow.compiler.CompilerNode
              |
              +--uk.ac.man.cs.rainbow.compiler.green.GreenComponent
Direct Known Subclasses:
Arbitrate, uk.ac.man.cs.rainbow.compiler.green.BinaryStandardFunction, Buffer, Channel, Duplicate, GreenBlock, GreenCase, GreenIf, GreenLoop, GreenNoOp, Invoke, Merge, Probe, SimpleArbitrate, SimpleMerge, SimpleSplit, Sink, Source, Split, Synchronise, Tuple, UnaryStandardFunction, Untuple

public class GreenComponent
extends CompilerNode

Visual green component.

 $Log: GreenComponent.java,v $
 Revision 1.4  2001/11/22 23:54:54  fellowsd
 Added code to cut out many unnecessary anonymous channels.

 Revision 1.3  2001/11/22 09:03:40  fellowsd
 Some cleaning up and a few changes to support RAPA generation

 Revision 1.2  2001/11/06 16:37:22  fellowsd
 First step towards a RAPA generation system

 


Field Summary
 String device_name
           
 int inputs_actually_required
           
 CompilerType out_types
           
 
Fields inherited from class uk.ac.man.cs.rainbow.compiler.CompilerNode
next, sourcepos
 
Constructor Summary
GreenComponent(SourcePosition sourcepos)
           
 
Method Summary
 void appendNextComponent(GreenComponent nextComponent)
           
 CompilerType check_pipe(TCEnv env, Errors errors, CompilerType input_typeList)
           
 int definitive_num_inputs()
           
 GreenComponent get_next()
           
 CompilerType get_output_types()
           
protected  Channel[] getInputChannels()
           
protected  Channel[] getOutputChannels()
           
 ProcessTerm getRAPA(RapaEnv env)
           
 int inputs_required(TCEnv env)
           
 int num_inputs(GreenEnv env)
           
 int num_outputs(GreenEnv env)
           
 int num_params()
           
 RASMList rasm_list_nextComponent(CGEnv env)
           
 RASMList rasm(GreenEnv env)
           
 void set_delay_parameters(DelayParams dps)
           
 void set_next(GreenComponent comp)
           
 GreenComponent setNextComponents()
           
 GreenComponent setupNextComponents()
           
 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, dumpTree, 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
 

Field Detail

out_types

public CompilerType out_types

inputs_actually_required

public int inputs_actually_required

device_name

public String device_name
Constructor Detail

GreenComponent

public GreenComponent(SourcePosition sourcepos)
Method Detail

set_delay_parameters

public void set_delay_parameters(DelayParams dps)

num_inputs

public int num_inputs(GreenEnv env)

num_outputs

public int num_outputs(GreenEnv env)

definitive_num_inputs

public int definitive_num_inputs()

set_next

public void set_next(GreenComponent comp)

get_next

public GreenComponent get_next()

toString

public String toString()
Overrides:
toString in class CompilerNode

typecheckGreen

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

inputs_required

public int inputs_required(TCEnv env)

get_output_types

public CompilerType get_output_types()

check_pipe

public CompilerType check_pipe(TCEnv env,
                               Errors errors,
                               CompilerType input_typeList)

rasm_list_nextComponent

public RASMList rasm_list_nextComponent(CGEnv env)

appendNextComponent

public void appendNextComponent(GreenComponent nextComponent)

setNextComponents

public GreenComponent setNextComponents()

setupNextComponents

public GreenComponent setupNextComponents()

rasm

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

num_params

public int num_params()

getRAPA

public ProcessTerm getRAPA(RapaEnv env)

getInputChannels

protected Channel[] getInputChannels()

getOutputChannels

protected Channel[] getOutputChannels()