RobotCore
1.0
WPILib port to raspberry Pi
Toggle main menu visibility
Loading...
Searching...
No Matches
StartApplicationProcessor.java
1
/*
2
* Copyright (c) 2013 Creative Sphere Limited.
3
* Licensed under the Apache License, Version 2.0 (the "License");
4
* you may not use this file except in compliance with the License.
5
* You may obtain a copy of the License at
6
* http://www.apache.org/licenses/LICENSE-2.0
7
*
8
* Unless required by applicable law or agreed to in writing,
9
* software distributed under the License is distributed on an "AS IS" BASIS,
10
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
* See the License for the specific language governing permissions and
12
* limitations under the License.
13
*
14
* Contributors:
15
*
16
* Creative Sphere - initial API and implementation
17
*
18
*/
19
package
org.ah.java.remotevmlauncher.protocol;
20
21
import
java.io.DataInputStream;
22
23
29
public
class
StartApplicationProcessor
extends
AbstractProcessor {
30
31
public
static
final
String ID =
"ST"
;
32
33
private
boolean
start =
false
;
34
35
public
StartApplicationProcessor() {
36
super(ID);
37
}
38
39
public
boolean
isStart() {
40
return
start;
41
}
42
43
public
void
reset() {
44
start =
false
;
45
}
46
47
public
void
receive(DataInputStream dis) {
48
start =
true
;
49
synchronized
(
this
) {
50
notifyAll();
51
}
52
}
53
}
org
ah
java
remotevmlauncher
protocol
StartApplicationProcessor.java
Generated by
1.18.0