public class EightPointChannel extends Channel
| Constructor and Description |
|---|
EightPointChannel() |
| Modifier and Type | Method and Description |
|---|---|
double |
getCelerity(double depth) |
ChannelType |
getChannelType() |
double |
getDepth(double flowRate) |
java.lang.Object |
getFieldObject(java.lang.reflect.Field fld)
This method allows access to java.lang.reflect.Field objects within the implementing
class.
|
double[] |
getManningsN() |
double |
getTopWidth(double depth) |
double[] |
getXCoordinates() |
double[] |
getYCoordinates() |
boolean |
isValid()
Checks if parameter values are valid for this channel.
|
boolean |
setFieldObject(java.lang.reflect.Field fld,
java.lang.Object fobj)
This allows access to fields withing the implementing object to set there data.
|
void |
setManningsN(double[] n) |
void |
setXCoordinates(double[] x) |
void |
setYCoordinates(double[] y) |
getLength, getLength, getSlope, getUnitSystem, setchannelLength, setLength, setSlope, setUnitSystempublic ChannelType getChannelType()
getChannelType in class Channelpublic double[] getXCoordinates()
public double[] getYCoordinates()
public double[] getManningsN()
public void setXCoordinates(double[] x)
public void setYCoordinates(double[] y)
public void setManningsN(double[] n)
public boolean isValid()
throws InvalidStateException
isValid in class ChannelInvalidStateExceptionpublic double getTopWidth(double depth)
getTopWidth in class Channelpublic double getCelerity(double depth)
getCelerity in class Channelpublic java.lang.Object getFieldObject(java.lang.reflect.Field fld)
FieldAccessorgetFieldObject in interface FieldAccessorgetFieldObject in class Channelfld - The field to get.public boolean setFieldObject(java.lang.reflect.Field fld,
java.lang.Object fobj)
FieldAccessorsetFieldObject in interface FieldAccessorsetFieldObject in class Channelfld - The java field object representing the member field to be setfobj - The data to set in that field