SE 3M04 T1 2002
Assignment 1a
- Due: Monday September 16, in class
- Write a Java program to
- read a Spice
file circuit definition
(ignoring all non-component definition elements) from a local file. The name
of the file should be a parameter to the program.
- output component-by-component English description of circuit to standard output.
In other words use the object created by
new FileOutputStream( (new FileDescriptor).out )
(assuming you've done an import java.io.*; first)
or System.out.println().
One line per (recognized) component is expected.
- Read and Output only the following components (for now):
- resistors (3.1.1)
- capacitors (3.1.4)
- inductors (3.1.7)
- voltage sources (with no distortion) (3.2.1)
- current sources (with no distortion) (3.2.1)
The number in [brackets] refers to the section of the
Spice 3 Manual where this element is formally
defined.
- Deliverables:
- clear text file with exact requirements.
- java program file(s)
- must compile !
- must run cleanly through javadoc
- java test program file(s) (including test data files )
It is expected that you test your program with approximately 10 test data files, at least
2 of which should be your own.
- text file or paper copy of log
- To be delivered on 1 floppy in class with paper log (if applicable)
Example Spice files:
More examples Spice files can be had from:
Back to main page