PhoneDurationspublic class PhoneDurationsImpl extends java.lang.Object implements PhoneDurations
phone mean stddev phone mean stddev phone mean stddev ...Where
phone is the phone name, mean is
a float representing the mean duration of the phone
(typically in seconds), and stddev is a
float representing the standard deviation from the
mean.| Constructor | Description |
|---|---|
PhoneDurationsImpl(java.net.URL url) |
Creates a new PhoneDurationsImpl by reading from the given URL.
|
| Modifier and Type | Method | Description |
|---|---|---|
PhoneDuration |
getPhoneDuration(java.lang.String phone) |
Gets the
PhoneDuration for the given phone. |
public PhoneDurationsImpl(java.net.URL url)
throws java.io.IOException
url - the input sourcejava.io.IOException - if an error occurspublic PhoneDuration getPhoneDuration(java.lang.String phone)
PhoneDuration for the given phone. If no
duration is applicable, returns null.getPhoneDuration in interface PhoneDurationsphone - the phonePhoneDuration for phone