public class Mib
extends CompositeDataset
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkParameter(Parameter param)
Check if the representation and radix of a parameter is the same as defined in the MIB
|
boolean |
checkParameterSequence(java.lang.String sequence,
java.lang.String parameter)
Check if a particular sequence has a given parameter defined in the MIB or not
|
boolean |
checkSequence(SequenceInterface seq) |
boolean |
checkSequence(java.lang.String sequence)
Check if a sequence exist in the MIB
|
java.lang.String[] |
getAllSequences()
Return an array with all valid sequences names
|
Parameter |
getDefaultParameter(java.lang.String parameterName)
Get the default Parameter definition in the MIB for a parameter name
|
Parameter[] |
getDefaultParameters(java.lang.String sequence)
Get the defaulr parameters for a sequence name
|
static Mib |
getMib()
Get the MIB.
|
static Mib |
getMibFromFiles()
Read the MIB from files.
|
static Mib |
getMibFromJar()
Read the MIB from the jars in the class path.
|
java.lang.String |
getParameterDescription(java.lang.String parameterName)
Get the description of a parameter in the MIB
|
java.lang.String |
getSequenceDescription(java.lang.String sequenceName)
Get the description in the MIB of a given sequence
|
long |
getTotalSequenceDuration(java.lang.String sequenceName)
Get the total duration in seconds of a sequence as defined in the MIB
|
public static Mib getMibFromFiles() throws java.io.IOException
java.io.IOException - In the case the files are not found or are not readablepublic static Mib getMibFromJar() throws java.io.IOException
java.io.IOException - IN case that the directory mib is not found in the class pathpublic boolean checkSequence(java.lang.String sequence)
sequence - The sequence name to be checkedpublic Parameter[] getDefaultParameters(java.lang.String sequence)
sequence - The sequence namepublic boolean checkParameterSequence(java.lang.String sequence,
java.lang.String parameter)
sequence - Sequence nameparameter - Parameter namepublic boolean checkParameter(Parameter param)
param - Parameter to be checkedjava.lang.IllegalArgumentException - If the representation or radix are different. The message in the exception will actually say what is the problempublic boolean checkSequence(SequenceInterface seq)
public Parameter getDefaultParameter(java.lang.String parameterName)
parameterName - The parameter namepublic static Mib getMib()
public java.lang.String getParameterDescription(java.lang.String parameterName)
parameterName - public java.lang.String[] getAllSequences()
public java.lang.String getSequenceDescription(java.lang.String sequenceName)
sequenceName - Sequence namepublic long getTotalSequenceDuration(java.lang.String sequenceName)
sequenceName - The sequence name