-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLayer.java
More file actions
42 lines (36 loc) · 970 Bytes
/
Copy pathLayer.java
File metadata and controls
42 lines (36 loc) · 970 Bytes
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
package com.cs2212;
import java.util.*;
/**
* The Layer class represents a layer of pois on a floor in a building.
*/
public class Layer {
private String name;
private String id;
private Floor floor;
/**
* Creates a new Layer object with the specified name, active status, floor, and ID.
* @param name the name of the layer
* @param active the active status of the layer
* @param floor the floor on which the layer is located
* @param id the ID of the layer
*/
public Layer(String name, boolean active, Floor floor, String id) {
this.name = name;
this.id = id;
this.floor = floor;
}
/**
* Returns the name of the layer.
* @return the name of the layer
*/
public String getName() {
return name;
}
/**
* Returns the ID of the layer.
* @return the ID of the layer
*/
public String getID() {
return id;
}
}