0; i
}
}
}
ДОДАТОК 4
Головний файл аплету Main.fx моделі міжвидової конкуренції з призначеним для користувача інтерфейсом:
Main.fx
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
/**
* @ author Admin
*/
// var X0 = 0; numberGraf = -1;
// var numOfEquat: Integer; numOfEquat = 2; stepSize = 0.1; t0 = 0; tn = 100; numSteps = 1000;
// var beginValue = [X0, Y0]; coordinat = coordinates {}; tempX0 = bind width: 200: 100}
} modelNAME = Label {layoutInfo: LayoutInfo {width: 300} text: "Модель міжвидова конуренція"}
// var CoordinateOfXY = LineChart. Series {}; CoordinatesOfXY: LineChart. Series [] = [. Series {},. Series {},. Series {},. Series {},. Series {},. Series {},. Series {},. Series {},. Series {}, . Series {},. Series {},. Series {},. Series {},. Series {},. Series {},. Series {},. Series {},. Series {},. Series {}, . Series {}
]; CoordinateOfXT = LineChart. Series {name: "X (t)"}; CoordinateOfYT = LineChart. Series {name: "Y (t)"}; grafikXY = LineChart {: false: false: "Фазовий портрет": LayoutInfo {width: 400 height: 400}: NumberAxis {: 0: 10: "x"
}: NumberAxis {: 0: 10: "y"
}
data: CoordinatesOfXY
}// ініціалізація графіка X від Y
var grafikXYT = LineChart {: "Графік": Side.RIGHT: false: LayoutInfo {width: 600 height: 200}: NumberAxis {: 10: 10: 0: 100: "t"
}: NumberAxis {: 0: 10: "x y"
}: [CoordinateOfXT, CoordinateOfYT]
}// ініціалізація графіка Y від TlabelX0 = Label {width: 20 text: "Xo"} textX0 = TextBox {layoutInfo: LayoutInfo {: 100} text: bind String.valueOf (valX0) columns : 10 selectOnFocus: false: true
} scrollX0 = ScrollBar {layoutInfo: LayoutInfo {width: 140 height: 15}: 0 max: 10 vertical: false value: 10 unitIncrement: 0.1 visibleAmount: 0.01
}
// scrollX0.onMouseDragged
// textX0.onKeyReleasedlabelY0 = Label {width: 20 text: "Yo:"} textY0 = TextBox {layoutInfo: LayoutInfo {width: 100} text: bind String.valueOf (valY0) columns : 10: true
} scrollY0 = ScrollBar {layoutInfo: LayoutInfo {width: 140 height: 15}: 0 ma...