-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVariable.java
45 lines (40 loc) · 1.03 KB
/
Variable.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
39
40
41
42
43
44
45
//******************************************************************************
//
// File: Variable.java
//
//******************************************************************************
/**
* Class Variable acts as a model for holding the info about a boolean
* variable.
*
* @author Harshad Paradkar
*
*/
public class Variable {
/**
* An integer valued name, using which this variable can be identified.
*/
public int name;
/**
* The boolean value of this variable.
*/
public boolean value;
/**
* Construct a variable with the given name. (Default value will be false)
*
* @param name The integer valued name of this variable to be constructed.
*/
public Variable(int name) {
this.name = name;
}
/**
* Construct a variable with the given name, and value.
*
* @param name The integer valued name of this variable to be constructed.
* @param value The boolean value of this variable to be constructed.
*/
public Variable(int name, boolean value) {
this.name = name;
this.value = value;
}
}