org.knowceans.topics.cgen
Class MixItem

java.lang.Object
  extended by org.knowceans.topics.cgen.MixItem
Direct Known Subclasses:
MixEdge, MixNode

public abstract class MixItem
extends java.lang.Object


Field Summary
(package private)  java.util.List<MixItem> children
           
(package private)  int datatype
           
static java.lang.String indent
           
(package private)  int linktype
           
(package private)  java.lang.String name
           
(package private)  java.util.List<MixItem> parents
           
static int UNRECOG
           
 
Constructor Summary
MixItem(int type, java.lang.String name)
           
 
Method Summary
abstract  java.lang.String assignVarsInput()
          assign input to the variable of this item
 boolean check(java.io.PrintStream out)
           
abstract  boolean classify()
          classify the data and linking types of this item
abstract  java.lang.String declareVars()
          declare the variables of this node
 java.util.List<? extends MixItem> getChildren()
           
abstract  java.lang.String getName()
          get a short name of this node
 java.util.List<? extends MixItem> getParents()
           
abstract  java.lang.String getVariable()
           
abstract  java.lang.String initVars(boolean q)
          initialise variables
abstract  java.lang.String listTypedVarsInput(java.util.Set<java.lang.String> unique)
          list the variables for input with types
abstract  java.lang.String listVarsInput(java.util.Set<java.lang.String> uniqcall)
          list the variables used for inputting data into this item
 java.lang.String printDetails()
           
abstract  java.lang.String printType()
          print the type of this node
 void setConstants(java.util.Map<java.lang.String,java.lang.String> constants)
          may be used to set constants from a map of parsed constants
static java.lang.String typeString(java.lang.String u, int type, java.lang.String[] typeString)
          print a type string (used for verbose monitoring in subclasses)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNRECOG

public static final int UNRECOG
See Also:
Constant Field Values

datatype

int datatype

linktype

int linktype

name

java.lang.String name

parents

java.util.List<MixItem> parents

children

java.util.List<MixItem> children

indent

public static final java.lang.String indent
See Also:
Constant Field Values
Constructor Detail

MixItem

public MixItem(int type,
               java.lang.String name)
Method Detail

setConstants

public void setConstants(java.util.Map<java.lang.String,java.lang.String> constants)
may be used to set constants from a map of parsed constants

Parameters:
constants -

classify

public abstract boolean classify()
classify the data and linking types of this item

Returns:
false if invalid

getParents

public java.util.List<? extends MixItem> getParents()

getChildren

public java.util.List<? extends MixItem> getChildren()

typeString

public static java.lang.String typeString(java.lang.String u,
                                          int type,
                                          java.lang.String[] typeString)
print a type string (used for verbose monitoring in subclasses)

Parameters:
u -
type -
typeString -
Returns:

printDetails

public java.lang.String printDetails()

getVariable

public abstract java.lang.String getVariable()

printType

public abstract java.lang.String printType()
print the type of this node

Returns:

check

public boolean check(java.io.PrintStream out)

declareVars

public abstract java.lang.String declareVars()
declare the variables of this node


assignVarsInput

public abstract java.lang.String assignVarsInput()
assign input to the variable of this item

Returns:

listVarsInput

public abstract java.lang.String listVarsInput(java.util.Set<java.lang.String> uniqcall)
list the variables used for inputting data into this item

Parameters:
uniqcall -
Returns:

listTypedVarsInput

public abstract java.lang.String listTypedVarsInput(java.util.Set<java.lang.String> unique)
list the variables for input with types

Parameters:
unique -
Returns:

getName

public abstract java.lang.String getName()
get a short name of this node

Returns:

initVars

public abstract java.lang.String initVars(boolean q)
initialise variables

Parameters:
q -
Returns: