|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectspis.Circ.Circ.ElecComponent
Class Name : ElecComponent
Project ref : SPIS project
File name : ElecComponent.java
File type : class
Copyright : ONERA, 2 Av. E. Belin, 31055 Toulouse cedex, France
http://www.onecert.fr
Status : under development
Creation : 27/09/2004
Modification :
Description : a component of an electric curcuit.
In practice, such components are used between sub-groups of elementary
surfaces, called electrical nodes.
The following types are supported for now:
- C: capacitance,
- R: resistor,
- V: voltage supply
- L: inductance,
NB: the various components are very straightforwardly coded through a ID
(componentType), but an extension to a wider rnge of types may require
a better OO coding (derived classess...)
Versions and anomalies correction :
Version number | Author (name, e-mail) | Corrections/Modifications |
0.1 | JF Roussel, roussel@onecert.fr | Creation |
Field Summary | |
private java.lang.String |
componentType
Type of component (R, L, C, V) |
private int |
node1
Id of the first electric node the component is connected to |
private int |
node2
Id of the second electric node the component is connected to |
private float |
value
Value of the component (R, L, C or V) |
Constructor Summary | |
ElecComponent(java.lang.String componentType,
int node1,
int node2,
float value)
Default constructor |
Method Summary | |
java.lang.String |
getComponentType()
|
int |
getNode1()
|
int |
getNode2()
|
float |
getValue()
|
void |
println(int verbosityLevel)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private int node1
private int node2
private java.lang.String componentType
private float value
Constructor Detail |
public ElecComponent(java.lang.String componentType, int node1, int node2, float value)
node1
- node2
- componentType
- value
- Method Detail |
public void println(int verbosityLevel)
public java.lang.String getComponentType()
public int getNode1()
public int getNode2()
public float getValue()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |