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

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
                    |
                    +--uk.ac.man.cs.rainbow.compiler.green.Source

public class Source
extends GreenComponent

Visual green source node.

 $Log: Source.java,v $
 Revision 1.2  2001/11/08 14:20:19  fellowsd
 Hacked to work with a Rapa generating environment

 Revision 1.1  2001/11/06 16:28:02  fellowsd
 Added RAPA generator

 


Fields inherited from class uk.ac.man.cs.rainbow.compiler.green.GreenComponent
device_name, inputs_actually_required, out_types
 
Fields inherited from class uk.ac.man.cs.rainbow.compiler.CompilerNode
next, sourcepos
 
Constructor Summary
Source(SourcePosition sourcepos, Expression exp)
           
Source(SourcePosition sourcepos, Expression exp, String device_name, boolean is_general_source)
           
 
Method Summary
static Source constantSource(SourcePosition sourcepos, Expression exp)
           
static Source generalSource(SourcePosition sourcepos, Expression exp)
           
 ProcessTerm getRAPA(RapaEnv env)
           
 int inputs_required(TCEnv env)
           
 int num_inputs(GreenEnv env)
           
 int num_outputs(GreenEnv env)
           
 int num_params()
           
 String toString()
           
 CompilerType typecheckGreen(TCEnv env, Errors errors, CompilerType input_typeList)
           
 
Methods inherited from class uk.ac.man.cs.rainbow.compiler.green.GreenComponent
appendNextComponent, check_pipe, definitive_num_inputs, get_next, get_output_types, getInputChannels, getOutputChannels, rasm_list_nextComponent, rasm, set_delay_parameters, set_next, setNextComponents, setupNextComponents
 
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
 

Constructor Detail

Source

public Source(SourcePosition sourcepos,
              Expression exp)

Source

public Source(SourcePosition sourcepos,
              Expression exp,
              String device_name,
              boolean is_general_source)
Method Detail

toString

public String toString()
Overrides:
toString in class GreenComponent

num_params

public int num_params()
Overrides:
num_params in class GreenComponent

num_inputs

public int num_inputs(GreenEnv env)
Overrides:
num_inputs in class GreenComponent

num_outputs

public int num_outputs(GreenEnv env)
Overrides:
num_outputs in class GreenComponent

constantSource

public static Source constantSource(SourcePosition sourcepos,
                                    Expression exp)

generalSource

public static Source generalSource(SourcePosition sourcepos,
                                   Expression exp)

typecheckGreen

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

inputs_required

public int inputs_required(TCEnv env)
Overrides:
inputs_required in class GreenComponent

getRAPA

public ProcessTerm getRAPA(RapaEnv env)
Overrides:
getRAPA in class GreenComponent