forked from cmarini/NSE-Train-Control
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCTCControl.java
38 lines (32 loc) · 831 Bytes
/
CTCControl.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package CTC;
public class CTCControl
{
private int authority;
private int setpoint;
private int operatorSpeed;
private boolean operatorBrake;
private CTCModel model;
CTCControl(CTCModel m)
{
model = m;
}
public void setCommands(int sp, int auth)
{
setpoint = sp;
authority = auth;
//System.out.println("Setpoint: " + setpoint + " Authority: " + authority);
}
public void setOperatorCommands(int sp, boolean b)
{
operatorSpeed = sp;
operatorBrake = b;
//System.out.println("Operator Speed : " + operatorSpeed + " Brake: " + operatorBrake);
}
public void createTrain()
{
}
}