-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
509 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
src/main/java/pl/put/poznan/building_info/structures/BuildingContent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package pl.put.poznan.building_info.structures; | ||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
public class BuildingContent{ | ||
|
||
private Building building; | ||
private ArrayList<LevelContent> levels = new ArrayList<LevelContent>(); | ||
|
||
public BuildingContent(Building b){ | ||
this.building = b; | ||
} | ||
|
||
public void addLevelContent(LevelContent l){ | ||
levels.add(l); | ||
} | ||
|
||
public Building getBiuiding(){ | ||
return building; | ||
} | ||
|
||
public ArrayList<LevelContent> getLevelContent(){ | ||
return levels; | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
src/main/java/pl/put/poznan/building_info/structures/LevelContent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package pl.put.poznan.building_info.structures; | ||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
public class LevelContent{ | ||
private Level level; | ||
private ArrayList<Room> rooms = new ArrayList<Room>(); | ||
|
||
public LevelContent(Level l){ | ||
level = l; | ||
} | ||
|
||
public Level getLevel(){ | ||
return level; | ||
} | ||
|
||
public ArrayList<Room> getRooms(){ | ||
return rooms; | ||
} | ||
|
||
public void addRooms(ArrayList<Room> rooms){ | ||
this.rooms = rooms; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.