-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathRavensAttribute.java
executable file
·51 lines (47 loc) · 1.24 KB
/
RavensAttribute.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
46
47
48
49
50
51
/*
* DO NOT MODIFY THIS FILE.
*
* Any modifications to this file will not be used when grading your project.
* If you have any questions, please email the TAs.
*
*/
package project2;
/**
* A single variable-value pair that describes some element of a RavensObject.
* For example, a circle might have the attributes shape:circle, size:large, and
* filled:no.
*/
public class RavensAttribute {
private String name;
private String value;
/**
* Creates a new RavensAttribute.
*
* Your agent does not need to use this method.
*
* @param name the name of the attribute
* @param value the value of the attribute
*/
public RavensAttribute(String name,String value) {
this.name=name;
this.value=value;
}
/**
* Returns the name of the attribute. For example, 'shape', 'size', or
* 'fill'.
*
* @return the name of the attribute
*/
public String getName() {
return name;
}
/**
* Returns the value of the attribute. For example, 'circle', 'large', or
* 'no'.
*
* @return the value of the attribute
*/
public String getValue() {
return value;
}
}