Created
June 9, 2010 15:29
-
-
Save gilleain/431646 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package test; | |
import java.util.ArrayList; | |
import java.util.List; | |
import tmp.IGenerator; | |
import tmp.Model; | |
import tmp.MyGenerator; | |
import static tmp.MyGenerator.BOND_DISTANCE; | |
public class Test { | |
public static void main(String[] args) { | |
List<IGenerator> generators = new ArrayList<IGenerator>(); | |
generators.add(new MyGenerator()); | |
Model model = new Model(generators); | |
System.out.println(model.get(BOND_DISTANCE)); | |
try { | |
model.set(BOND_DISTANCE, 2.0); | |
System.out.println(model.get(BOND_DISTANCE)); | |
model.set(BOND_DISTANCE, true); | |
} catch (Exception e) { | |
System.out.println(e); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment