[Javabdd-checkins] JavaBDD/org/sf/javabdd JFactory.java,NONE,1.1
Brought to you by:
joewhaley
|
From: John W. <joe...@us...> - 2004-07-20 21:48:39
|
Update of /cvsroot/javabdd/JavaBDD/org/sf/javabdd In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7947/org/sf/javabdd Added Files: JFactory.java Log Message: Improved version of JavaFactory. --- NEW FILE: JFactory.java --- // JavaFactory.java, created Aug 1, 2003 7:06:47 PM by joewhaley // Copyright (C) 2003 John Whaley <jw...@al...> // Licensed under the terms of the GNU LGPL; see COPYING for details. package org.sf.javabdd; import java.util.Arrays; import java.util.Collection; import java.util.Comparator; import java.util.Iterator; import java.util.LinkedList; import java.util.List; import java.util.Random; import java.util.StringTokenizer; import java.io.DataInput; import java.io.DataOutput; import java.io.IOException; import java.io.PrintStream; /** [...5953 lines suppressed...] INSTANCE.domain = new BDDDomain[this.domain.length]; for (int i = 0; i < INSTANCE.domain.length; ++i) { INSTANCE.domain[i] = INSTANCE.createDomain(i, this.domain[i].realsize); } return INSTANCE; } /** * Use this function to translate BDD's from a JavaFactory into its clone. * This will only work immediately after cloneFactory() is called, and * before any other BDD operations are performed. * * @param that BDD in old factory * @return a BDD in the new factory */ public BDD copyNode(BDD that) { bdd b = (bdd) that; return new bdd(b._index); } } |