public class ChannelImpl extends Channel
| Modifier and Type | Field and Description |
|---|---|
protected int |
dbid |
| Modifier | Constructor and Description |
|---|---|
protected |
ChannelImpl()
for hibernate
|
|
ChannelImpl(ChannelId id,
java.lang.String name,
Orientation an_orientation,
Sampling sampling_info,
TimeRange effective_time,
Site my_site) |
|
ChannelImpl(ChannelId id,
java.lang.String name,
Orientation an_orientation,
Sampling sampling_info,
TimeRange effective_time,
Site my_site,
int dbid) |
| Modifier and Type | Method and Description |
|---|---|
void |
associateInDB(ChannelImpl indb) |
static ChannelImpl |
createEmpty()
Only for use for CORBA object serialization.
|
java.lang.String |
get_code() |
ChannelId |
get_id() |
static int |
getAzimuth(java.lang.String chanCode)
Calculates a default azimuth based on the orientation code,
0 for Z and N, 90 for E, -1 otherwise
|
int |
getDbid() |
static int |
getDip(java.lang.String chanCode)
Calculates a default dip based on the orientation code,
-90 for Z, 0 for N and E, -1 otherwise
|
NetworkAttrImpl |
getNetworkAttrImpl()
Same as getNetworkAttr(), but returns a NetworkAttrImpl to avoid casting.
|
SiteImpl |
getSiteImpl()
Same as getSite(), but returns a SiteImpl to avoid casting.
|
StationImpl |
getStationImpl()
Same as getStation(), but returns a StationImpl to avoid casting.
|
static ChannelImpl[] |
implize(Channel[] chan) |
protected void |
setDbid(int dbid) |
java.lang.String |
toString() |
_read, _truncatable_ids, _type, _write, getBeginTime, getEffectiveTime, getEndTime, getId, getName, getNetworkAttr, getOrientation, getSamplingInfo, getSite, getStation, intern, setBeginTime, setEffectiveTime, setEndTime, setId, setName, setOrientation, setSamplingInfo, setSitepublic ChannelImpl(ChannelId id, java.lang.String name, Orientation an_orientation, Sampling sampling_info, TimeRange effective_time, Site my_site)
public ChannelImpl(ChannelId id, java.lang.String name, Orientation an_orientation, Sampling sampling_info, TimeRange effective_time, Site my_site, int dbid)
protected ChannelImpl()
public static ChannelImpl createEmpty()
public NetworkAttrImpl getNetworkAttrImpl()
public StationImpl getStationImpl()
public SiteImpl getSiteImpl()
public static int getAzimuth(java.lang.String chanCode)
orientationCode - public static int getDip(java.lang.String chanCode)
orientationCode - protected void setDbid(int dbid)
public int getDbid()
public void associateInDB(ChannelImpl indb)
public static ChannelImpl[] implize(Channel[] chan)
public java.lang.String toString()
toString in class java.lang.Object