ca.mcgill.lmp.finite
Class LMP

java.lang.Object
  extended byca.mcgill.lmp.finite.LMP

public class LMP
extends java.lang.Object

A representation of a finite LMP.

Author:
Alexandre Bouchard

Constructor Summary
LMP(java.util.Set states, java.util.Set labels, java.util.List transitionMatrices)
           
LMP(java.lang.String description)
          Construct a new LMP using "\n*\n"-separated description of transition matrices (See TransitionMatrix.java).
 
Method Summary
 java.util.Set getLabels()
           
 int getNumberOfLabels()
           
 int getNumberOfStates()
           
 java.util.Set getStates()
           
 TransitionMatrix getTPM(Label label)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LMP

public LMP(java.lang.String description)
Construct a new LMP using "\n*\n"-separated description of transition matrices (See TransitionMatrix.java). e.g.
0  1  0  0
0  0  0  0
0  0  0  1
0  0  0  0
*
0  0  0  0
0  0  0  0
0  0  0  0
0  0  0  1
will produced a non-lumpable LMP.

Parameters:
description -

LMP

public LMP(java.util.Set states,
           java.util.Set labels,
           java.util.List transitionMatrices)
Parameters:
states -
labels -
transitionMatrices -
Method Detail

getNumberOfStates

public int getNumberOfStates()
Returns:

getNumberOfLabels

public int getNumberOfLabels()
Returns:

getLabels

public java.util.Set getLabels()
Returns:

getStates

public java.util.Set getStates()
Returns:

getTPM

public TransitionMatrix getTPM(Label label)
Parameters:
label -
Returns:
the transition probability matrix corresponding to the provided label.

toString

public java.lang.String toString()
Returns: