org.jscience.physics.electricity.circuitry.elements
Class MosfetElement

java.lang.Object
  extended by org.jscience.physics.electricity.circuitry.CircuitElement
      extended by org.jscience.physics.electricity.circuitry.elements.MosfetElement
Direct Known Subclasses:
JfetElement, NMosfetElement, PMosfetElement

public class MosfetElement
extends CircuitElement

DOCUMENT ME!


Field Summary
 int drn_mx
          DOCUMENT ME!
 int drn_my
          DOCUMENT ME!
 int drn_px
          DOCUMENT ME!
 int drn_py
          DOCUMENT ME!
 int FLAG_PNP
          DOCUMENT ME!
 int gate1x
          DOCUMENT ME!
 int gate1y
          DOCUMENT ME!
 int gate2x
          DOCUMENT ME!
 int gate2y
          DOCUMENT ME!
 int gate3x
          DOCUMENT ME!
 int gate3y
          DOCUMENT ME!
 double gm
          DOCUMENT ME!
 double ids
          DOCUMENT ME!
 double lastv1
          DOCUMENT ME!
 double lastv2
          DOCUMENT ME!
 int mode
          DOCUMENT ME!
 int pcircler
          DOCUMENT ME!
 int pcirclex
          DOCUMENT ME!
 int pcircley
          DOCUMENT ME!
 int pnp
          DOCUMENT ME!
 int src_mx
          DOCUMENT ME!
 int src_my
          DOCUMENT ME!
 int src_px
          DOCUMENT ME!
 int src_py
          DOCUMENT ME!
 
Fields inherited from class org.jscience.physics.electricity.circuitry.CircuitElement
boundingBox, circuitFrame, curcount, current, flags, nodes, noDiagonal, volts, voltSource, x, x2, y, y2
 
Constructor Summary
MosfetElement(int xx, int yy, boolean pnpflag)
          Creates a new MosfetElement object.
MosfetElement(int xa, int ya, int xb, int yb, int f, java.util.StringTokenizer st)
          Creates a new MosfetElement object.
 
Method Summary
 boolean canViewInScope()
          DOCUMENT ME!
 void doStep()
          DOCUMENT ME!
 void draw(java.awt.Graphics g)
          DOCUMENT ME!
 double getBeta()
          DOCUMENT ME!
 boolean getConnection(int n1, int n2)
          DOCUMENT ME!
 double getCurrent()
          DOCUMENT ME!
 int getDumpType()
          DOCUMENT ME!
 void getFetInfo(java.lang.String[] arr, java.lang.String n)
          DOCUMENT ME!
 void getInfo(java.lang.String[] arr)
          DOCUMENT ME!
 java.awt.Point getPost(int n)
          DOCUMENT ME!
 int getPostCount()
          DOCUMENT ME!
 double getPower()
          DOCUMENT ME!
 double getThreshold()
          DOCUMENT ME!
 double getVoltageDiff()
          DOCUMENT ME!
 boolean nonLinear()
          DOCUMENT ME!
 void reset()
          DOCUMENT ME!
 void setPoints()
          DOCUMENT ME!
 void stamp()
          DOCUMENT ME!
 
Methods inherited from class org.jscience.physics.electricity.circuitry.CircuitElement
adjustBbox, allocNodes, calculateCurrent, doAdjust, doDots, drag, drawPost, drawPost, drawPosts, drawValues, dump, getBasicInfo, getCircuitFrame, getDumpClass, getEditInfo, getInternalNodeCount, getNode, getScopeUnits, getScopeValue, getVoltageSource, getVoltageSourceCount, hasGroundConnection, isWire, move, movePoint, setBbox, setCircuitFrame, setCurrent, setEditValue, setNode, setNodeVoltage, setPowerColor, setPowerColor, setupAdjust, setVoltageColor, setVoltageSource, startIteration, updateDotCount, updateDotCount
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pnp

public int pnp
DOCUMENT ME!


FLAG_PNP

public int FLAG_PNP
DOCUMENT ME!


src_px

public int src_px
DOCUMENT ME!


src_py

public int src_py
DOCUMENT ME!


drn_px

public int drn_px
DOCUMENT ME!


drn_py

public int drn_py
DOCUMENT ME!


src_mx

public int src_mx
DOCUMENT ME!


src_my

public int src_my
DOCUMENT ME!


drn_mx

public int drn_mx
DOCUMENT ME!


drn_my

public int drn_my
DOCUMENT ME!


gate1x

public int gate1x
DOCUMENT ME!


gate1y

public int gate1y
DOCUMENT ME!


gate2x

public int gate2x
DOCUMENT ME!


gate2y

public int gate2y
DOCUMENT ME!


gate3x

public int gate3x
DOCUMENT ME!


gate3y

public int gate3y
DOCUMENT ME!


pcirclex

public int pcirclex
DOCUMENT ME!


pcircley

public int pcircley
DOCUMENT ME!


pcircler

public int pcircler
DOCUMENT ME!


lastv1

public double lastv1
DOCUMENT ME!


lastv2

public double lastv2
DOCUMENT ME!


ids

public double ids
DOCUMENT ME!


mode

public int mode
DOCUMENT ME!


gm

public double gm
DOCUMENT ME!

Constructor Detail

MosfetElement

public MosfetElement(int xx,
                     int yy,
                     boolean pnpflag)
Creates a new MosfetElement object.

Parameters:
xx - DOCUMENT ME!
yy - DOCUMENT ME!
pnpflag - DOCUMENT ME!

MosfetElement

public MosfetElement(int xa,
                     int ya,
                     int xb,
                     int yb,
                     int f,
                     java.util.StringTokenizer st)
Creates a new MosfetElement object.

Parameters:
xa - DOCUMENT ME!
ya - DOCUMENT ME!
xb - DOCUMENT ME!
yb - DOCUMENT ME!
f - DOCUMENT ME!
st - DOCUMENT ME!
Method Detail

getThreshold

public double getThreshold()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getBeta

public double getBeta()
DOCUMENT ME!

Returns:
DOCUMENT ME!

nonLinear

public boolean nonLinear()
DOCUMENT ME!

Overrides:
nonLinear in class CircuitElement
Returns:
DOCUMENT ME!

reset

public void reset()
DOCUMENT ME!

Overrides:
reset in class CircuitElement

getDumpType

public int getDumpType()
DOCUMENT ME!

Overrides:
getDumpType in class CircuitElement
Returns:
DOCUMENT ME!

draw

public void draw(java.awt.Graphics g)
DOCUMENT ME!

Specified by:
draw in class CircuitElement
Parameters:
g - DOCUMENT ME!

getPost

public java.awt.Point getPost(int n)
DOCUMENT ME!

Overrides:
getPost in class CircuitElement
Parameters:
n - DOCUMENT ME!
Returns:
DOCUMENT ME!

getCurrent

public double getCurrent()
DOCUMENT ME!

Overrides:
getCurrent in class CircuitElement
Returns:
DOCUMENT ME!

getPower

public double getPower()
DOCUMENT ME!

Overrides:
getPower in class CircuitElement
Returns:
DOCUMENT ME!

getPostCount

public int getPostCount()
DOCUMENT ME!

Overrides:
getPostCount in class CircuitElement
Returns:
DOCUMENT ME!

setPoints

public void setPoints()
DOCUMENT ME!

Overrides:
setPoints in class CircuitElement

stamp

public void stamp()
DOCUMENT ME!

Overrides:
stamp in class CircuitElement

doStep

public void doStep()
DOCUMENT ME!

Overrides:
doStep in class CircuitElement

getFetInfo

public void getFetInfo(java.lang.String[] arr,
                       java.lang.String n)
DOCUMENT ME!

Parameters:
arr - DOCUMENT ME!
n - DOCUMENT ME!

getInfo

public void getInfo(java.lang.String[] arr)
DOCUMENT ME!

Overrides:
getInfo in class CircuitElement
Parameters:
arr - DOCUMENT ME!

canViewInScope

public boolean canViewInScope()
DOCUMENT ME!

Overrides:
canViewInScope in class CircuitElement
Returns:
DOCUMENT ME!

getVoltageDiff

public double getVoltageDiff()
DOCUMENT ME!

Overrides:
getVoltageDiff in class CircuitElement
Returns:
DOCUMENT ME!

getConnection

public boolean getConnection(int n1,
                             int n2)
DOCUMENT ME!

Overrides:
getConnection in class CircuitElement
Parameters:
n1 - DOCUMENT ME!
n2 - DOCUMENT ME!
Returns:
DOCUMENT ME!