Calculation methods. MatLab models. Java code.