spis.Circ.Circ
Class ElecComponent

java.lang.Object
  extended byspis.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 numberAuthor (name, e-mail) Corrections/Modifications
0.1 JF Roussel, roussel@onecert.frCreation


Version:
0.1
Author:
JF Roussel

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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ElecComponent

public ElecComponent(java.lang.String componentType,
                     int node1,
                     int node2,
                     float value)
Default constructor

Parameters:
node1 -
node2 -
componentType -
value -
Method Detail

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.