|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectEquivalente
public class Equivalente
Nested Class Summary | |
---|---|
(package private) class |
Equivalente.MouseHandler
Metodo que monitorea las accionde del boton del mouse |
Field Summary | |
---|---|
private java.util.ArrayList |
Cables
|
private Circuito |
cir
|
private int |
CON_FOOT
|
private int |
CON_HEAD
|
private boolean |
Desordenadas
|
private int |
FUENTE
|
private boolean |
inicioCalculo
|
private Nodos |
nodoref
|
private java.util.ArrayList |
nodos
|
private java.util.ArrayList |
nodosaux
|
private int |
numnodoref
|
private boolean |
paralelolista
|
private java.awt.Point |
puntoclick
|
private int |
RESISTENCIA
|
private Reducido |
respuesta
|
private boolean |
serielista
|
private boolean |
series_ok
|
private int |
TIERRA
|
Constructor Summary | |
---|---|
Equivalente(Circuito circ)
Costructor de la clase |
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
Metodo que se usa para detectar las acciones del raton al ejecutarse este metodo |
java.util.ArrayList |
creaCables(java.util.ArrayList nodos)
Metodo que permite crear cables |
boolean |
estaEnCable(Componentes comp)
Metodo que permite verificar si ya exite un cable que tenga esta componente |
java.util.ArrayList |
Limpianodos(java.util.ArrayList arreglonodal)
Metodo que permite eliminar las componentes que tienen un solo nodo |
void |
paraleloOrden()
Metodo que permite Ordenar las lineas previamenete hechas en paralelo |
Nodos |
searchONnode(Nodos node,
int tipo,
Componentes comp,
java.util.ArrayList nodos)
Metodo que permite buscar el otro nodo de una componente |
void |
serieOrden()
Metodo que permite sumar en paralelo las lineas |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final int CON_HEAD
private final int CON_FOOT
private final int TIERRA
private final int FUENTE
private final int RESISTENCIA
private java.util.ArrayList Cables
private Nodos nodoref
private int numnodoref
private Circuito cir
private boolean inicioCalculo
private java.awt.Point puntoclick
private java.util.ArrayList nodos
private java.util.ArrayList nodosaux
private boolean Desordenadas
private boolean serielista
private boolean paralelolista
private boolean series_ok
private Reducido respuesta
Constructor Detail |
---|
public Equivalente(Circuito circ)
circ
- panel que contiene el circuitoMethod Detail |
---|
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
e
- parametro que es igual al evento hecha por el usuario al crearse
esta clasepublic java.util.ArrayList Limpianodos(java.util.ArrayList arreglonodal)
public java.util.ArrayList creaCables(java.util.ArrayList nodos)
nodos
- arreglo que inicialmente contiene los nodospublic void serieOrden()
public void paraleloOrden()
public Nodos searchONnode(Nodos node, int tipo, Componentes comp, java.util.ArrayList nodos)
node
- nodo al cual ya pertenece la componentetipo
- de componentecomp
- componente a buscarnodos
- arreglo de nodos
public boolean estaEnCable(Componentes comp)
comp
- componente a buscar
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |