Class NMOS
java.lang.Object
|
+----Element
|
+----NMOS
- public class NMOS
- extends Element
NMOS Field Effect Transistor
-
NMOS()
- Constructs default NMOS.
-
NMOS(NMOS)
- Constructs new NMOS from given one.
-
checkVoltage(int, double, double)
- Function used to check the result of calculation, when more than one result obtained
-
getCurrent(int, double)
- Main function for calculations.
-
getImage(int, double)
-
Returns image for this element.
-
getInfo(int)
-
Returns information for this element, such as voltage, current etc.
-
getProperties()
- This method is called to get values of element.
-
getTip(int)
-
Returns tool tip for this element.
-
parseString(String)
- This method is called to load new values to element from string.
-
setProperties(String[])
- This method is called to set new values to element.
NMOS
public NMOS()
- Constructs default NMOS.
NMOS
public NMOS(NMOS e)
- Constructs new NMOS from given one.
- Parameters:
- e - NMOS to copy.
getCurrent
public Polynom getCurrent(int dir,
double timeStep)
- Main function for calculations.
- Overrides:
- getCurrent in class Element
checkVoltage
public boolean checkVoltage(int dir,
double timeStep,
double newVoltage)
- Function used to check the result of calculation, when more than one result obtained
- Overrides:
- checkVoltage in class Element
parseString
public void parseString(String values) throws ParseException
- This method is called to load new values to element from string.
String should be like "value,order;value,order;etc.".
- Parameters:
- values - new values for element in string in format given above.
- Throws: ParseException
- if string format is incorrect.
- Overrides:
- parseString in class Element
getProperties
public Object[] getProperties()
- This method is called to get values of element. Six Objects for each parameter:
- Name of parameter
- Value
- Minimal valid order
- Maximal valid order
- Current order
- Units
- Returns:
- array of Objects.
- Overrides:
- getProperties in class Element
setProperties
public void setProperties(String props[])
- This method is called to set new values to element. Two strings for each parameter:
- Parameters:
- props - array with pairs of Strings.
- Overrides:
- setProperties in class Element
getImage
public Image getImage(int angle,
double time)
- Returns image for this element.
- Overrides:
- getImage in class Element
getInfo
public String[] getInfo(int angle)
- Returns information for this element, such as voltage, current etc.
- Overrides:
- getInfo in class Element
getTip
public String getTip(int type)
- Returns tool tip for this element.
- Overrides:
- getTip in class Element