il2.bridge
Class Converter

Object
  extended by Converter

public class Converter
extends Object


Constructor Summary
Converter()
          012904
 
Method Summary
 BayesianNetwork convert(BeliefNetwork bn)
           
 int convert(FiniteVariable fv)
           
 FiniteVariable convert(int var)
           
 List convert(IntList variablesToConvert)
           
 Map convert(IntMap map)
           
 Set convert(IntSet v)
           
 IntList convert(List vars)
           
 IntMap convert(Map map)
           
 IntSet convert(Set vars)
           
 Table convert(Table t)
           
 Table convert(Table t)
           
 Table[] convert(Table[] tables)
           
 Table convert(Table t, List varOrder)
           
 DirectedEdge[] convertDirected(int[][] edges)
           
 Table[] convertTables(BeliefNetwork bn, QuantitativeDependencyHandler handler)
           
 List convertToList(IntSet variablesToConvert)
           
 Edge[] convertUndirected(int[][] edges)
           
 BayesianNetwork getBayesianNetwork()
           
 BeliefNetwork getBeliefNetwork()
           
 Domain getDomain()
           
 Map getIndex()
           
 void init(Collection variables)
          Initializes the fields without requiring a call to convert ().
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Converter

public Converter()
012904

Method Detail

init

public void init(Collection variables)
Initializes the fields without requiring a call to convert (). James set this class up so that one would always call convert () before using the class. convert () initializes the fields, performs some conversions and returns. I wanted to initialize the fields without performing any conversions and without needing to specify a belief network and without affecting others' code. This method serves that purpose.

Parameters:
variables - the inflib variables in topological order.
Since:
011704

getBeliefNetwork

public BeliefNetwork getBeliefNetwork()
Since:
020904

getBayesianNetwork

public BayesianNetwork getBayesianNetwork()
Since:
20060123

getIndex

public Map getIndex()
Since:
112503

getDomain

public Domain getDomain()
Since:
120103

convert

public BayesianNetwork convert(BeliefNetwork bn)

convertTables

public Table[] convertTables(BeliefNetwork bn,
                             QuantitativeDependencyHandler handler)
Since:
061404

convert

public FiniteVariable convert(int var)

convert

public int convert(FiniteVariable fv)

convertDirected

public DirectedEdge[] convertDirected(int[][] edges)
Since:
20091219

convertUndirected

public Edge[] convertUndirected(int[][] edges)
Since:
20091219

convert

public Set convert(IntSet v)

convert

public List convert(IntList variablesToConvert)
Since:
20060224

convert

public IntSet convert(Set vars)

convert

public IntList convert(List vars)

convertToList

public List convertToList(IntSet variablesToConvert)
Since:
20060123

convert

public IntMap convert(Map map)

convert

public Map convert(IntMap map)

convert

public Table convert(Table t,
                     List varOrder)

convert

public Table convert(Table t)

convert

public Table[] convert(Table[] tables)
Since:
061504

convert

public Table convert(Table t)


Copyright 2010 UCLA Automated Reasoning Group