at.dms.kjc.slicegraph
Class InputContent

java.lang.Object
  extended by at.dms.kjc.slicegraph.FilterContent
      extended by at.dms.kjc.slicegraph.PredefinedContent
          extended by at.dms.kjc.slicegraph.InputContent
All Implemented Interfaces:
SIRCodeUnit
Direct Known Subclasses:
FileInputContent

public abstract class InputContent
extends PredefinedContent

Predefined FilterContent for input. Could be restructured to be interface but it was easier to extend PredefinedContent this way and can hold code common for predefined input.

Author:
jasperln

Field Summary
 
Fields inherited from class at.dms.kjc.slicegraph.FilterContent
initFunction, inputType, my_unique_ID, outputType, prework, steady
 
Constructor Summary
InputContent(InputContent content)
          Copy constructor for InputContent.
InputContent(SIRPredefinedFilter filter)
          Construct InputContent from SIRPredefinedFilter
InputContent(UnflatFilter unflat)
          Construct InputContent from UnflatFilter.
 
Method Summary
abstract  void createContent()
          Subclasses of PredefinedContent must be able to create their content.
 
Methods inherited from class at.dms.kjc.slicegraph.FilterContent
addAField, addAMethod, addField, addFields, addMethod, addMethods, getArray, getBegin, getConstant, getEnd, getFields, getInit, getInitMult, getInitWork, getInputType, getMethods, getName, getOutputType, getPeek, getPeekInt, getPopCount, getPopInt, getPos, getPrework, getPreworkPeek, getPreworkPop, getPreworkPush, getPushInt, getSteadyList, getSteadyMult, getTotal, getWork, initItemsNeeded, initItemsPushed, isLinear, isTwoStage, multSteadyMult, setArray, setBegin, setEnd, setFields, setInitMult, setMethods, setPos, setPrework, setSteadyMult, setTheMethods, setTotal, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InputContent

public InputContent(InputContent content)
Copy constructor for InputContent.

Parameters:
content - The InputContent to copy.

InputContent

public InputContent(SIRPredefinedFilter filter)
Construct InputContent from SIRPredefinedFilter

Parameters:
filter - The SIRPredefinedFilter used to contruct the InputContent.

InputContent

public InputContent(UnflatFilter unflat)
Construct InputContent from UnflatFilter.

Parameters:
unflat - The UnflatFilter used to contruct the InputContent.
Method Detail

createContent

public abstract void createContent()
Description copied from class: PredefinedContent
Subclasses of PredefinedContent must be able to create their content. (fields, methods, work function if appropriate, multiplicities, rates)

Specified by:
createContent in class PredefinedContent