using System;
using System.Text;
using System.Collections;
using System.Collections.Generic;
namespace CLab
{
///
/// The Variable class represents a CLab variable
/// In addition to the types set by Type objects, CLab has an internal boolean type named bool
///
public class LayoutVariable
{
List bddVar = new List();
int typeIndex;
///
/// Constructor
///
/// Name of the type to use for this variable
/// Name of the variable
public LayoutVariable(List bddVar, int typeIndex)
{
this.bddVar = bddVar;
this.typeIndex = typeIndex;
}
public List BddVar
{
get { return bddVar; }
}
public int TypeIndex
{
get { return typeIndex; }
}
public override string ToString()
{
String res = "";
for (int i = 0; i < bddVar.Count; i++)
{
res += bddVar[i] + ", ";
}
return (String.Format(" type index: {0} \nBDD variables: {1}", typeIndex, res));
}
}
}