Converted existing OpenClCircuitSimulation code to Java