spis.Circ.Circ
Class ElecComponent
java.lang.Object
spis.Circ.Circ.ElecComponent
- public class ElecComponent
- extends java.lang.Object
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 |
- Version:
- 0.1
- Author:
- JF Roussel
Constructor Summary |
ElecComponent(java.lang.String componentType,
int node1,
int node2,
float value)
Default constructor |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ElecComponent
public ElecComponent(java.lang.String componentType,
int node1,
int node2,
float value)
- Default constructor
- Parameters:
node1
- node2
- componentType
- value
-
println
public void println(int verbosityLevel)
- Returns:
getComponentType
public java.lang.String getComponentType()
- Returns:
- Returns the componentType.
getNode1
public int getNode1()
- Returns:
- Returns the node1.
getNode2
public int getNode2()
- Returns:
- Returns the node2.
getValue
public float getValue()
- Returns:
- Returns the value.