The MatrixDataHelperclass has three methods that are to be used to access data of the matrix. First of all you must check, if the matrix is already built (building the matrix means collecting all the needed data from the model). In some cases, when settings are changed or a lot of model changes occur, you have to rebuild the matrix to get the up-to-date information. Thus the best pattern to use is as follows: