/**
 * 
 */
package commons.collections;


/**
 * Just a term that has a type:int and a value (counter, weight ...).
 * @author ks
 */
public class NodeQualified
{

String node   = "";
int    type   = 0;
double weight = 0;

public NodeQualified()
{}

public NodeQualified(String node)
{
   this.node = node;
}

public NodeQualified(String node, double weight)
{
   this.node = node;
   this.weight = weight;
}

public NodeQualified(String node, int type, double weight)
{
   this.node = node;
   this.type = type;
   this.weight = weight;
//   SysUtl.trace(SUtl.sprint("node(%) type(%): weight(%)", node, type, weight));
}

public String getNode ()
{
   return node;
}

public double getWeight ()
{
   return weight;
}

public void setWeight (double w)
{
   weight = w;
}

public String toString ()
{
   StringBuilder sb = new StringBuilder();
   sb.append(node);
   sb.append(":");
   sb.append(type);
   sb.append(":");
   sb.append(weight);
   return sb.toString();
}

public int getType ()
{
   return type;
}

public void setType (int type)
{
   this.type = type;
}

public void setNode (String node)
{
   this.node = node;
}
}