From 7193628da97ec351a3292b14242a19d8adb3158e Mon Sep 17 00:00:00 2001 From: xavier Date: Mon, 20 Nov 2023 19:34:03 -0500 Subject: [PATCH 1/3] Adding some more javadocs --- .../java/team/rocket/Entities/AbstractAnimal.java | 6 +++++- .../java/team/rocket/Entities/AbstractPlant.java | 6 +++++- src/main/java/team/rocket/Entities/Carrot.java | 5 +++-- src/main/java/team/rocket/Entities/Fox.java | 15 ++++++++++++++- src/main/java/team/rocket/Entities/Grass.java | 5 +++-- src/main/java/team/rocket/Entities/Rabbit.java | 5 ++++- src/main/java/team/rocket/Enums/Direction.java | 12 ++++++++++++ 7 files changed, 46 insertions(+), 8 deletions(-) diff --git a/src/main/java/team/rocket/Entities/AbstractAnimal.java b/src/main/java/team/rocket/Entities/AbstractAnimal.java index c9fa5ee..80e4060 100644 --- a/src/main/java/team/rocket/Entities/AbstractAnimal.java +++ b/src/main/java/team/rocket/Entities/AbstractAnimal.java @@ -5,7 +5,7 @@ /** * @since 0.1.0 - * @version 0.4.0 + * @version 0.6.0 */ public abstract class AbstractAnimal extends AbstractOrganism { private static char icon; @@ -62,6 +62,10 @@ public void resetMove(){ */ public abstract int getNutrition(); + /** + * Gets the vision of the organism, representing how far it can 'see' + * @return the vision value of the organism + */ public static int getVision() { return vision; } diff --git a/src/main/java/team/rocket/Entities/AbstractPlant.java b/src/main/java/team/rocket/Entities/AbstractPlant.java index 96f08f3..b8f1c49 100644 --- a/src/main/java/team/rocket/Entities/AbstractPlant.java +++ b/src/main/java/team/rocket/Entities/AbstractPlant.java @@ -57,8 +57,12 @@ public void resetGrown(){ /** * Creates new Organism + * @param grid the map of the abstractOrganisms for the simulation + * @param neighbors the nearby orthogonal abstractOrganisms or null in a 4-length array representing directions [up, down, left, right] respectively + * @param x the x position to try and create a new organism + * @param y the y position to try and create a new organism */ - public abstract void grow(AbstractOrganism grid[][], AbstractOrganism[] neighbors, int y, int x); + public abstract void grow(AbstractOrganism[][] grid, AbstractOrganism[] neighbors, int y, int x); /** * @return nutrition diff --git a/src/main/java/team/rocket/Entities/Carrot.java b/src/main/java/team/rocket/Entities/Carrot.java index 6a4a8c5..39e3d7c 100644 --- a/src/main/java/team/rocket/Entities/Carrot.java +++ b/src/main/java/team/rocket/Entities/Carrot.java @@ -7,7 +7,7 @@ /** * @since 0.5.0 - * @version 0.5.0 + * @version 0.6.0 */ public class Carrot extends AbstractPlant { private static char icon = 'C'; @@ -16,7 +16,8 @@ public class Carrot extends AbstractPlant { private boolean hasGrown; /** - * Creates new Carrot, not ready to grow + * The constructor method for creating a new Carrot object, please avoid using this and use the Organism Factory instead. + * The carrot is not ready to grow. */ public Carrot(){ count++; diff --git a/src/main/java/team/rocket/Entities/Fox.java b/src/main/java/team/rocket/Entities/Fox.java index 5d014da..3c947c8 100644 --- a/src/main/java/team/rocket/Entities/Fox.java +++ b/src/main/java/team/rocket/Entities/Fox.java @@ -7,7 +7,7 @@ /** * @since 0.4.0 - * @version 0.4.0 + * @version 0.6.0 */ public class Fox extends AbstractAnimal { private static final char icon = 'F'; @@ -18,6 +18,9 @@ public class Fox extends AbstractAnimal { private int nutrition = 0; private static final int vision = 5; + /** + * The constructor method for creating a new Fox object, please avoid using this and use the Organism Factory instead. + */ public Fox(){ count++; hasMoved = true; @@ -199,10 +202,20 @@ public void move(Map map, int y, int x) { hasMoved = true; } + /** + * Gets the vision value of the Fox, representing how far it can 'see' + * @return the int representing vision distance + */ public static int getVision() { return vision; } + /** + * eats the organism positioned at {row, column} + * @param map the map of the simulation + * @param row the row of the organism to be eaten + * @param column the column of the organism to be eaten + */ public void eat(Map map, int row, int column) { if (map.getGrid()[row][column] != null) { AbstractOrganism org = map.getGrid()[row][column]; diff --git a/src/main/java/team/rocket/Entities/Grass.java b/src/main/java/team/rocket/Entities/Grass.java index b211aeb..87d4c55 100644 --- a/src/main/java/team/rocket/Entities/Grass.java +++ b/src/main/java/team/rocket/Entities/Grass.java @@ -7,7 +7,7 @@ /** * @since 0.3.0 - * @version 0.4.0 + * @version 0.6.0 */ public class Grass extends AbstractPlant { private static char icon = 'G'; @@ -16,7 +16,8 @@ public class Grass extends AbstractPlant { private boolean hasGrown; /** - * Creates new grass, not ready to grow + * The constructor method for creating a new Grass object, please avoid using this and use the Organism Factory instead. + * The grass is not ready to grow. */ public Grass(){ count++; diff --git a/src/main/java/team/rocket/Entities/Rabbit.java b/src/main/java/team/rocket/Entities/Rabbit.java index a869a31..ce7f6ba 100644 --- a/src/main/java/team/rocket/Entities/Rabbit.java +++ b/src/main/java/team/rocket/Entities/Rabbit.java @@ -8,7 +8,7 @@ /** * * @since 0.1.0 - * @version 0.4.0 + * @version 0.6.0 */ public class Rabbit extends AbstractAnimal{ private static final char icon = 'R'; @@ -20,6 +20,9 @@ public class Rabbit extends AbstractAnimal{ private static int nutrition = 10; private static final int vision = 4; + /** + * The constructor method for creating a new Rabbit object, please avoid using this and use the Organism Factory instead. + */ public Rabbit(){ count++; hasMoved = true; diff --git a/src/main/java/team/rocket/Enums/Direction.java b/src/main/java/team/rocket/Enums/Direction.java index 9f613fc..f2d9382 100644 --- a/src/main/java/team/rocket/Enums/Direction.java +++ b/src/main/java/team/rocket/Enums/Direction.java @@ -7,9 +7,21 @@ * @version 0.6.0 */ public enum Direction { + /** + * Enum value representing the direction up, representing a positional offset of {0, -1} within a 2d array. + */ UP, + /** + * Enum value representing the direction down, representing a positional offset of {0, 1} within a 2d array. + */ DOWN, + /** + * Enum value representing the direction left, representing a positional offset of {-1, 0} within a 2d array. + */ LEFT, + /** + *Enum value representing the direction right, representing a positional offset of {1, 0} within a 2d array. + */ RIGHT; /** From 44461836c8fd24d4ef8a667f3ba6a25995f99082 Mon Sep 17 00:00:00 2001 From: xavier Date: Mon, 27 Nov 2023 17:20:55 -0500 Subject: [PATCH 2/3] Added API and added documentation, may need to be regenerated at some point. --- api/allclasses-index.html | 140 +++ api/allpackages-index.html | 74 ++ api/constant-values.html | 99 ++ api/element-list | 6 + api/help-doc.html | 181 ++++ api/index-files/index-1.html | 97 ++ api/index-files/index-10.html | 65 ++ api/index-files/index-11.html | 104 +++ api/index-files/index-12.html | 75 ++ api/index-files/index-13.html | 160 ++++ api/index-files/index-14.html | 133 +++ api/index-files/index-15.html | 106 +++ api/index-files/index-16.html | 71 ++ api/index-files/index-17.html | 70 ++ api/index-files/index-2.html | 65 ++ api/index-files/index-3.html | 71 ++ api/index-files/index-4.html | 102 +++ api/index-files/index-5.html | 69 ++ api/index-files/index-6.html | 81 ++ api/index-files/index-7.html | 224 +++++ api/index-files/index-8.html | 77 ++ api/index-files/index-9.html | 105 +++ api/index.html | 73 ++ api/jquery-ui.overrides.css | 35 + api/legal/COPYRIGHT | 69 ++ api/legal/LICENSE | 118 +++ api/legal/jquery.md | 72 ++ api/legal/jqueryUI.md | 49 + api/member-search-index.js | 1 + api/module-search-index.js | 1 + api/overview-summary.html | 26 + api/overview-tree.html | 120 +++ api/package-search-index.js | 1 + api/resources/glass.png | Bin 0 -> 499 bytes api/resources/x.png | Bin 0 -> 394 bytes api/script-dir/jquery-3.6.1.min.js | 2 + api/script-dir/jquery-ui.min.css | 6 + api/script-dir/jquery-ui.min.js | 6 + api/script.js | 132 +++ api/search.js | 354 +++++++ api/stylesheet.css | 866 ++++++++++++++++++ api/tag-search-index.js | 1 + api/team/rocket/Entities/AbstractAnimal.html | 285 ++++++ .../rocket/Entities/AbstractOrganism.html | 258 ++++++ api/team/rocket/Entities/AbstractPlant.html | 309 +++++++ api/team/rocket/Entities/Carrot.html | 348 +++++++ api/team/rocket/Entities/Fox.html | 464 ++++++++++ api/team/rocket/Entities/Grass.html | 348 +++++++ api/team/rocket/Entities/OrganismFactory.html | 185 ++++ api/team/rocket/Entities/Rabbit.html | 455 +++++++++ api/team/rocket/Entities/package-summary.html | 116 +++ api/team/rocket/Entities/package-tree.html | 87 ++ api/team/rocket/Enums/Direction.html | 309 +++++++ api/team/rocket/Enums/package-summary.html | 99 ++ api/team/rocket/Enums/package-tree.html | 75 ++ .../IO/Terminal/DaysPerRunFlagHandler.html | 190 ++++ api/team/rocket/IO/Terminal/FlagHandler.html | 225 +++++ .../IO/Terminal/GridSizeFlagHandler.html | 189 ++++ .../InitialOrganismCountFlagHandler.html | 190 ++++ .../IO/Terminal/TerminalFlagRequest.html | 278 ++++++ .../Terminal/TimeStepsPerDayFlagHandler.html | 190 ++++ .../rocket/IO/Terminal/package-summary.html | 120 +++ api/team/rocket/IO/Terminal/package-tree.html | 79 ++ api/team/rocket/IO/UI.html | 216 +++++ api/team/rocket/IO/package-summary.html | 103 +++ api/team/rocket/IO/package-tree.html | 71 ++ api/team/rocket/Map.html | 507 ++++++++++ api/team/rocket/Simulation.html | 409 +++++++++ api/team/rocket/package-summary.html | 105 +++ api/team/rocket/package-tree.html | 72 ++ api/team/rocket/util/RandomManager.html | 145 +++ api/team/rocket/util/TimeManager.html | 145 +++ api/team/rocket/util/package-summary.html | 105 +++ api/team/rocket/util/package-tree.html | 72 ++ api/type-search-index.js | 1 + src/main/java/team/rocket/Entities/Fox.java | 7 + .../java/team/rocket/Entities/Rabbit.java | 21 + src/main/java/team/rocket/IO/UI.java | 5 + src/main/java/team/rocket/Map.java | 10 +- src/main/java/team/rocket/Simulation.java | 39 +- 80 files changed, 10934 insertions(+), 5 deletions(-) create mode 100644 api/allclasses-index.html create mode 100644 api/allpackages-index.html create mode 100644 api/constant-values.html create mode 100644 api/element-list create mode 100644 api/help-doc.html create mode 100644 api/index-files/index-1.html create mode 100644 api/index-files/index-10.html create mode 100644 api/index-files/index-11.html create mode 100644 api/index-files/index-12.html create mode 100644 api/index-files/index-13.html create mode 100644 api/index-files/index-14.html create mode 100644 api/index-files/index-15.html create mode 100644 api/index-files/index-16.html create mode 100644 api/index-files/index-17.html create mode 100644 api/index-files/index-2.html create mode 100644 api/index-files/index-3.html create mode 100644 api/index-files/index-4.html create mode 100644 api/index-files/index-5.html create mode 100644 api/index-files/index-6.html create mode 100644 api/index-files/index-7.html create mode 100644 api/index-files/index-8.html create mode 100644 api/index-files/index-9.html create mode 100644 api/index.html create mode 100644 api/jquery-ui.overrides.css create mode 100644 api/legal/COPYRIGHT create mode 100644 api/legal/LICENSE create mode 100644 api/legal/jquery.md create mode 100644 api/legal/jqueryUI.md create mode 100644 api/member-search-index.js create mode 100644 api/module-search-index.js create mode 100644 api/overview-summary.html create mode 100644 api/overview-tree.html create mode 100644 api/package-search-index.js create mode 100644 api/resources/glass.png create mode 100644 api/resources/x.png create mode 100644 api/script-dir/jquery-3.6.1.min.js create mode 100644 api/script-dir/jquery-ui.min.css create mode 100644 api/script-dir/jquery-ui.min.js create mode 100644 api/script.js create mode 100644 api/search.js create mode 100644 api/stylesheet.css create mode 100644 api/tag-search-index.js create mode 100644 api/team/rocket/Entities/AbstractAnimal.html create mode 100644 api/team/rocket/Entities/AbstractOrganism.html create mode 100644 api/team/rocket/Entities/AbstractPlant.html create mode 100644 api/team/rocket/Entities/Carrot.html create mode 100644 api/team/rocket/Entities/Fox.html create mode 100644 api/team/rocket/Entities/Grass.html create mode 100644 api/team/rocket/Entities/OrganismFactory.html create mode 100644 api/team/rocket/Entities/Rabbit.html create mode 100644 api/team/rocket/Entities/package-summary.html create mode 100644 api/team/rocket/Entities/package-tree.html create mode 100644 api/team/rocket/Enums/Direction.html create mode 100644 api/team/rocket/Enums/package-summary.html create mode 100644 api/team/rocket/Enums/package-tree.html create mode 100644 api/team/rocket/IO/Terminal/DaysPerRunFlagHandler.html create mode 100644 api/team/rocket/IO/Terminal/FlagHandler.html create mode 100644 api/team/rocket/IO/Terminal/GridSizeFlagHandler.html create mode 100644 api/team/rocket/IO/Terminal/InitialOrganismCountFlagHandler.html create mode 100644 api/team/rocket/IO/Terminal/TerminalFlagRequest.html create mode 100644 api/team/rocket/IO/Terminal/TimeStepsPerDayFlagHandler.html create mode 100644 api/team/rocket/IO/Terminal/package-summary.html create mode 100644 api/team/rocket/IO/Terminal/package-tree.html create mode 100644 api/team/rocket/IO/UI.html create mode 100644 api/team/rocket/IO/package-summary.html create mode 100644 api/team/rocket/IO/package-tree.html create mode 100644 api/team/rocket/Map.html create mode 100644 api/team/rocket/Simulation.html create mode 100644 api/team/rocket/package-summary.html create mode 100644 api/team/rocket/package-tree.html create mode 100644 api/team/rocket/util/RandomManager.html create mode 100644 api/team/rocket/util/TimeManager.html create mode 100644 api/team/rocket/util/package-summary.html create mode 100644 api/team/rocket/util/package-tree.html create mode 100644 api/type-search-index.js diff --git a/api/allclasses-index.html b/api/allclasses-index.html new file mode 100644 index 0000000..f7a5ff4 --- /dev/null +++ b/api/allclasses-index.html @@ -0,0 +1,140 @@ + + + + +All Classes and Interfaces + + + + + + + + + + + + + + + +
+ +
+
+
+

All Classes and Interfaces

+
+
+
+
+
+
Class
+
Description
+ +
 
+ +
 
+ +
 
+ +
 
+ +
+
Handles the DaysPerRun Flag + Ex: --days_amount 8
+
+ +
 
+ +
+ +
+ +
 
+ +
 
+ +
+
Handles Grid Size Flags + Ex --grid_width 55 --grid_height 35
+
+ +
+
Handles Terminal Flags that pertain to initial Organism Count + Will put an initial amount of Organisms onto the map + Ex: --rabbit_count 6
+
+ +
+
A team.rocket.Map contains the information about the arrangement of a set of simulated organisms.
+
+ +
+
Imitating Singleton + Creates new objects of organisms after they've been registered
+
+ +
 
+ +
+
A utility class for the Random java tool
+
+ +
+
team.rocket.Simulation is the class that controls the backend of the simulation.
+
+ +
+
A request to be used with the Terminal FlagHandlers
+
+ +
+
Handles Getting the time and makes it require less instantiation
+
+ +
+
Handles the TimeStepsPerDay flag + Ex: --steps_per_day 12
+
+ +
+
UI is the standard entry point for using the simulation.
+
+
+
+
+
+
+
+ + diff --git a/api/allpackages-index.html b/api/allpackages-index.html new file mode 100644 index 0000000..fd48c7c --- /dev/null +++ b/api/allpackages-index.html @@ -0,0 +1,74 @@ + + + + +All Packages + + + + + + + + + + + + + + + +
+ +
+
+
+

All Packages

+
+
Package Summary
+ +
+
+
+ + diff --git a/api/constant-values.html b/api/constant-values.html new file mode 100644 index 0000000..5a56790 --- /dev/null +++ b/api/constant-values.html @@ -0,0 +1,99 @@ + + + + +Constant Field Values + + + + + + + + + + + + + + + +
+ +
+
+
+

Constant Field Values

+
+

Contents

+ +
+
+
+

team.rocket.*

+ +
+
+
+
+ + diff --git a/api/element-list b/api/element-list new file mode 100644 index 0000000..8b0aa8b --- /dev/null +++ b/api/element-list @@ -0,0 +1,6 @@ +team.rocket +team.rocket.Entities +team.rocket.Enums +team.rocket.IO +team.rocket.IO.Terminal +team.rocket.util diff --git a/api/help-doc.html b/api/help-doc.html new file mode 100644 index 0000000..314f5a6 --- /dev/null +++ b/api/help-doc.html @@ -0,0 +1,181 @@ + + + + +API Help + + + + + + + + + + + + + + + +
+ +
+
+

JavaDoc Help

+ +
+
+

Navigation

+Starting from the Overview page, you can browse the documentation using the links in each page, and in the navigation bar at the top of each page. The Index and Search box allow you to navigate to specific declarations and summary pages, including: All Packages, All Classes and Interfaces + +
+
+
+

Kinds of Pages

+The following sections describe the different kinds of pages in this collection. +
+

Overview

+

The Overview page is the front page of this API document and provides a list of all packages with a summary for each. This page can also contain an overall description of the set of packages.

+
+
+

Package

+

Each package has a page that contains a list of its classes and interfaces, with a summary for each. These pages may contain the following categories:

+
    +
  • Interfaces
  • +
  • Classes
  • +
  • Enum Classes
  • +
  • Exceptions
  • +
  • Errors
  • +
  • Annotation Interfaces
  • +
+
+
+

Class or Interface

+

Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a declaration and description, member summary tables, and detailed member descriptions. Entries in each of these sections are omitted if they are empty or not applicable.

+
    +
  • Class Inheritance Diagram
  • +
  • Direct Subclasses
  • +
  • All Known Subinterfaces
  • +
  • All Known Implementing Classes
  • +
  • Class or Interface Declaration
  • +
  • Class or Interface Description
  • +
+
+
    +
  • Nested Class Summary
  • +
  • Enum Constant Summary
  • +
  • Field Summary
  • +
  • Property Summary
  • +
  • Constructor Summary
  • +
  • Method Summary
  • +
  • Required Element Summary
  • +
  • Optional Element Summary
  • +
+
+
    +
  • Enum Constant Details
  • +
  • Field Details
  • +
  • Property Details
  • +
  • Constructor Details
  • +
  • Method Details
  • +
  • Element Details
  • +
+

Note: Annotation interfaces have required and optional elements, but not methods. Only enum classes have enum constants. The components of a record class are displayed as part of the declaration of the record class. Properties are a feature of JavaFX.

+

The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.

+
+
+

Other Files

+

Packages and modules may contain pages with additional information related to the declarations nearby.

+
+
+

Tree (Class Hierarchy)

+

There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. Classes are organized by inheritance structure starting with java.lang.Object. Interfaces do not inherit from java.lang.Object.

+
    +
  • When viewing the Overview page, clicking on TREE displays the hierarchy for all packages.
  • +
  • When viewing a particular package, class or interface page, clicking on TREE displays the hierarchy for only that package.
  • +
+
+
+

Constant Field Values

+

The Constant Field Values page lists the static final fields and their values.

+
+
+

All Packages

+

The All Packages page contains an alphabetic index of all packages contained in the documentation.

+
+
+

All Classes and Interfaces

+

The All Classes and Interfaces page contains an alphabetic index of all classes and interfaces contained in the documentation, including annotation interfaces, enum classes, and record classes.

+
+
+

Index

+

The Index contains an alphabetic index of all classes, interfaces, constructors, methods, and fields in the documentation, as well as summary pages such as All Packages, All Classes and Interfaces.

+
+
+
+This help file applies to API documentation generated by the standard doclet.
+
+
+ + diff --git a/api/index-files/index-1.html b/api/index-files/index-1.html new file mode 100644 index 0000000..4571fa1 --- /dev/null +++ b/api/index-files/index-1.html @@ -0,0 +1,97 @@ + + + + +A-Index + + + + + + + + + + + + + + + +
+ +
+
+
+

Index

+
+A B C D E F G H I L M O R S T U V 
All Classes and Interfaces|All Packages|Constant Field Values +

A

+
+
AbstractAnimal - Class in team.rocket.Entities
+
 
+
AbstractAnimal() - Constructor for class team.rocket.Entities.AbstractAnimal
+
 
+
AbstractOrganism - Class in team.rocket.Entities
+
 
+
AbstractOrganism() - Constructor for class team.rocket.Entities.AbstractOrganism
+
 
+
AbstractPlant - Class in team.rocket.Entities
+
 
+
AbstractPlant() - Constructor for class team.rocket.Entities.AbstractPlant
+
 
+
addOrganism(AbstractOrganism, int, int) - Method in class team.rocket.Map
+
+
Adds an organism to the specified location
+
+
availableMovementSpace(AbstractOrganism[]) - Method in class team.rocket.Entities.AbstractAnimal
+
+
Takes array of an Animal's neighbors, randomly chooses an available space, and returns corresponding direction
+
+
availableMovementSpace(AbstractOrganism[]) - Method in class team.rocket.Entities.Fox
+
+
Takes array of a team.rocket.Entities.Fox's neighbors, randomly chooses an available space, and returns corresponding direction
+
+
availableMovementSpace(AbstractOrganism[]) - Method in class team.rocket.Entities.Rabbit
+
+
Takes array of a team.rocket.Entities.Rabbit's neighbors, randomly chooses an available space, and returns corresponding direction
+
+
availableSpace(AbstractOrganism[]) - Method in class team.rocket.Entities.Carrot
+
+
Takes array of a team.rocket.Entities.Rabbit's neighbors, randomly chooses an available space, and returns corresponding direction
+
+
availableSpace(AbstractOrganism[]) - Method in class team.rocket.Entities.Grass
+
+
Takes array of a team.rocket.Entities.Rabbit's neighbors, randomly chooses an available space, and returns corresponding direction
+
+
+A B C D E F G H I L M O R S T U V 
All Classes and Interfaces|All Packages|Constant Field Values
+
+
+ + diff --git a/api/index-files/index-10.html b/api/index-files/index-10.html new file mode 100644 index 0000000..c178ceb --- /dev/null +++ b/api/index-files/index-10.html @@ -0,0 +1,65 @@ + + + + +L-Index + + + + + + + + + + + + + + + +
+ +
+
+
+

Index

+
+A B C D E F G H I L M O R S T U V 
All Classes and Interfaces|All Packages|Constant Field Values +

L

+
+
LEFT - Enum constant in enum class team.rocket.Enums.Direction
+
+
Enum value representing the direction left, representing a positional offset of {-1, 0} within a 2d array.
+
+
+A B C D E F G H I L M O R S T U V 
All Classes and Interfaces|All Packages|Constant Field Values
+
+
+ + diff --git a/api/index-files/index-11.html b/api/index-files/index-11.html new file mode 100644 index 0000000..2e38557 --- /dev/null +++ b/api/index-files/index-11.html @@ -0,0 +1,104 @@ + + + + +M-Index + + + + + + + + + + + + + + + +
+ +
+
+
+

Index

+
+A B C D E F G H I L M O R S T U V 
All Classes and Interfaces|All Packages|Constant Field Values +

M

+
+
m_successor - Variable in class team.rocket.IO.Terminal.FlagHandler
+
+
Successor handler which comes after current handler
+
+
main(String[]) - Static method in class team.rocket.IO.UI
+
+
The main UI method that's called to start the program
+
+
Map - Class in team.rocket
+
+
A team.rocket.Map contains the information about the arrangement of a set of simulated organisms.
+
+
Map() - Constructor for class team.rocket.Map
+
+
A constructor for the team.rocket.Map class that sets the grid to an empty grid of default size and sets the + width and height to their default values
+
+
Map(int, int) - Constructor for class team.rocket.Map
+
+
A constructor for the team.rocket.Map class that sets the grid to an empty 2D array of AbstractOrganisms with a + given width and height.
+
+
Map(AbstractOrganism[][]) - Constructor for class team.rocket.Map
+
+
A constructor for the team.rocket.Map class that sets the grid to the given grid and sets the width and height + to the width and height of the grid.
+
+
move(Map, int, int) - Method in class team.rocket.Entities.AbstractAnimal
+
+
Moves Animal in grid based on current position, available movement space, and past movement
+
+
move(Map, int, int) - Method in class team.rocket.Entities.Fox
+
+
Moves Fox in grid based on current position, available movement space, and past movement
+
+
move(Map, int, int) - Method in class team.rocket.Entities.Rabbit
+
+
Moves Rabbit in grid based on current position, available movement space, and past movement
+
+
moveOrganism(int, int, int, int) - Method in class team.rocket.Map
+
+
Moves an organism at (currentCol, currentRow) to (newCol, newRow) and removes the organism at that location if one is there
+
+
+A B C D E F G H I L M O R S T U V 
All Classes and Interfaces|All Packages|Constant Field Values
+
+
+ + diff --git a/api/index-files/index-12.html b/api/index-files/index-12.html new file mode 100644 index 0000000..2dfd60d --- /dev/null +++ b/api/index-files/index-12.html @@ -0,0 +1,75 @@ + + + + +O-Index + + + + + + + + + + + + + + + +
+ +
+
+
+

Index

+
+A B C D E F G H I L M O R S T U V 
All Classes and Interfaces|All Packages|Constant Field Values +

O

+
+
OrganismFactory - Class in team.rocket.Entities
+
+
Imitating Singleton + Creates new objects of organisms after they've been registered
+
+
outputGrid(int, Map) - Static method in class team.rocket.IO.UI
+
+
Outputs the current Grid with boundaries and letter representations for the animals.
+
+
outputGridViaMainThread(int, Map) - Static method in class team.rocket.IO.UI
+
+
Outputs the current Grid with boundaries and letter representations for the animals + Also outputs what day the simulation is on.
+
+
+A B C D E F G H I L M O R S T U V 
All Classes and Interfaces|All Packages|Constant Field Values
+
+
+ + diff --git a/api/index-files/index-13.html b/api/index-files/index-13.html new file mode 100644 index 0000000..6a9efa6 --- /dev/null +++ b/api/index-files/index-13.html @@ -0,0 +1,160 @@ + + + + +R-Index + + + + + + + + + + + + + + + +
+ +
+
+
+

Index

+
+A B C D E F G H I L M O R S T U V 
All Classes and Interfaces|All Packages|Constant Field Values +

R

+
+
Rabbit - Class in team.rocket.Entities
+
 
+
Rabbit() - Constructor for class team.rocket.Entities.Rabbit
+
+
The constructor method for creating a new Rabbit object, please avoid using this and use the Organism Factory instead.
+
+
randomDirectionFromBooleanArray(boolean[]) - Static method in enum class team.rocket.Enums.Direction
+
+
Takes a 4-long array of booleans and returns a random direction + The booleans are used to determine which Directions it can choose from where + each boolean represents a different direction in the order up, down, left, right
+
+
RandomManager - Class in team.rocket.util
+
+
A utility class for the Random java tool
+
+
reduceCount() - Method in class team.rocket.Entities.AbstractOrganism
+
+
Needed for very specific instance with OrganismEnum so that the instance in the enum doesn't count towards the total number of Organisms
+
+
reduceCount() - Method in class team.rocket.Entities.AbstractPlant
+
+
Needed for very specific instance with OrganismEnum so that the instance in the enum doesn't count towards the total number of Organisms
+
+
reduceCount() - Method in class team.rocket.Entities.Carrot
+
+
Needed for very specific instance with OrganismEnum so that the instance in the enum doesn't count towards the total number of Organisms
+
+
reduceCount() - Method in class team.rocket.Entities.Fox
+
 
+
reduceCount() - Method in class team.rocket.Entities.Grass
+
+
Needed for very specific instance with OrganismEnum so that the instance in the enum doesn't count towards the total number of Organisms
+
+
reduceCount() - Method in class team.rocket.Entities.Rabbit
+
 
+
reduceHunger() - Method in class team.rocket.Entities.Fox
+
+
decreases Fox's hunger meter
+
+
reduceHunger() - Method in class team.rocket.Entities.Rabbit
+
+
decreases Rabbit's hunger meter
+
+
registerOrganism(String, AbstractOrganism) - Method in class team.rocket.Entities.OrganismFactory
+
+
Registers an organism to the internal Hashmap + reduces organism count to 0
+
+
removeOrganism(int, int) - Method in class team.rocket.Map
+
+
Removes the organism at the specified location
+
+
reproduce() - Method in class team.rocket.Entities.AbstractAnimal
+
+
Creates new Animal
+
+
reproduce() - Method in class team.rocket.Entities.Fox
+
 
+
reproduce() - Method in class team.rocket.Entities.Rabbit
+
+
Creates new Rabbit
+
+
resetBreeding() - Method in class team.rocket.Entities.Fox
+
+
Resets hasBred to false, meant to be used to reset breeding each day
+
+
resetGrown() - Method in class team.rocket.Entities.AbstractPlant
+
+
Resets hasGrown to false, meant to be used to reset growth each day
+
+
resetGrown() - Method in class team.rocket.Entities.Carrot
+
+
Resets hasGrown to false, meant to be used to reset growth each day
+
+
resetGrown() - Method in class team.rocket.Entities.Grass
+
+
Resets hasGrown to false, meant to be used to reset growth each day
+
+
resetMove() - Method in class team.rocket.Entities.AbstractAnimal
+
+
Resets hasMoved to false, meant to be used to reset movement each day
+
+
resetMove() - Method in class team.rocket.Entities.Fox
+
+
Resets hasMoved to false, meant to be used to reset movement each day
+
+
resetMove() - Method in class team.rocket.Entities.Rabbit
+
+
Resets hasMoved to false, meant to be used to reset movement each day
+
+
RIGHT - Enum constant in enum class team.rocket.Enums.Direction
+
+
Enum value representing the direction right, representing a positional offset of {1, 0} within a 2d array.
+
+
run() - Method in class team.rocket.Simulation
+
+
Simulates how the environment changes over time based on initial conditions and interactions among animals.
+
+
+A B C D E F G H I L M O R S T U V 
All Classes and Interfaces|All Packages|Constant Field Values
+
+
+ + diff --git a/api/index-files/index-14.html b/api/index-files/index-14.html new file mode 100644 index 0000000..83cfba7 --- /dev/null +++ b/api/index-files/index-14.html @@ -0,0 +1,133 @@ + + + + +S-Index + + + + + + + + + + + + + + + +
+ +
+
+
+

Index

+
+A B C D E F G H I L M O R S T U V 
All Classes and Interfaces|All Packages|Constant Field Values +

S

+
+
setCount(int) - Method in class team.rocket.Entities.AbstractOrganism
+
+
Sets the count of animals
+
+
setCount(int) - Method in class team.rocket.Entities.AbstractPlant
+
+
Sets the count of Plants
+
+
setCount(int) - Method in class team.rocket.Entities.Carrot
+
+
Sets the count of Carrot
+
+
setCount(int) - Method in class team.rocket.Entities.Fox
+
 
+
setCount(int) - Method in class team.rocket.Entities.Grass
+
+
Sets the count of Grass
+
+
setCount(int) - Method in class team.rocket.Entities.Rabbit
+
 
+
setDaysPerRun(int) - Method in class team.rocket.Simulation
+
+
Sets the days per run value
+
+
setGrid(AbstractOrganism[][]) - Method in class team.rocket.Map
+
+
Sets the grid of the team.rocket.Map to the given grid and changes the width and height values if applicable.
+
+
setMap(Map) - Method in class team.rocket.IO.Terminal.TerminalFlagRequest
+
+
Allows the map to be set, can be used for passing information
+
+
setMillisecondsPerTimeStep(int) - Method in class team.rocket.Simulation
+
+
Set the milliseconds per timestep
+
+
setNumOfDays(int) - Method in class team.rocket.IO.Terminal.TerminalFlagRequest
+
+
Sets the numOfDays integer
+
+
setPrintOutput(boolean) - Method in class team.rocket.Simulation
+
+
Sets whether the simulation should print it's output
+
+
setStepsPerDay(int) - Method in class team.rocket.IO.Terminal.TerminalFlagRequest
+
+
sets the stepsPerDay integer
+
+
setSuccessor(FlagHandler) - Method in class team.rocket.IO.Terminal.FlagHandler
+
+
Sets the successor of the handler
+
+
setTimeStepsPerDay(int) - Method in class team.rocket.Simulation
+
+
Sets the timesteps per day
+
+
Simulation - Class in team.rocket
+
+
team.rocket.Simulation is the class that controls the backend of the simulation.
+
+
Simulation() - Constructor for class team.rocket.Simulation
+
+
Returns a new team.rocket.Simulation object with default constraints.
+
+
Simulation(int, int) - Constructor for class team.rocket.Simulation
+
+
Returns a new team.rocket.Simulation object with the given constraints.
+
+
Simulation(Map) - Constructor for class team.rocket.Simulation
+
+
Creates a simulation from a map
+
+
+A B C D E F G H I L M O R S T U V 
All Classes and Interfaces|All Packages|Constant Field Values
+
+
+ + diff --git a/api/index-files/index-15.html b/api/index-files/index-15.html new file mode 100644 index 0000000..c59fbec --- /dev/null +++ b/api/index-files/index-15.html @@ -0,0 +1,106 @@ + + + + +T-Index + + + + + + + + + + + + + + + +
+ +
+
+
+

Index

+
+A B C D E F G H I L M O R S T U V 
All Classes and Interfaces|All Packages|Constant Field Values +

T

+
+
team.rocket - package team.rocket
+
 
+
team.rocket.Entities - package team.rocket.Entities
+
 
+
team.rocket.Enums - package team.rocket.Enums
+
 
+
team.rocket.IO - package team.rocket.IO
+
 
+
team.rocket.IO.Terminal - package team.rocket.IO.Terminal
+
 
+
team.rocket.util - package team.rocket.util
+
 
+
TerminalFlagRequest - Class in team.rocket.IO.Terminal
+
+
A request to be used with the Terminal FlagHandlers
+
+
TerminalFlagRequest(String, Map) - Constructor for class team.rocket.IO.Terminal.TerminalFlagRequest
+
+
Constructs a TerminalFlagRequest
+
+
TimeManager - Class in team.rocket.util
+
+
Handles Getting the time and makes it require less instantiation
+
+
TimeStepsPerDayFlagHandler - Class in team.rocket.IO.Terminal
+
+
Handles the TimeStepsPerDay flag + Ex: --steps_per_day 12
+
+
TimeStepsPerDayFlagHandler() - Constructor for class team.rocket.IO.Terminal.TimeStepsPerDayFlagHandler
+
 
+
toIcon() - Static method in class team.rocket.Entities.AbstractAnimal
+
 
+
toIcon() - Static method in class team.rocket.Entities.AbstractOrganism
+
 
+
toIcon() - Static method in class team.rocket.Entities.AbstractPlant
+
 
+
toIcon() - Static method in class team.rocket.Entities.Carrot
+
 
+
toIcon() - Static method in class team.rocket.Entities.Fox
+
 
+
toIcon() - Static method in class team.rocket.Entities.Grass
+
 
+
toIcon() - Static method in class team.rocket.Entities.Rabbit
+
 
+
+A B C D E F G H I L M O R S T U V 
All Classes and Interfaces|All Packages|Constant Field Values
+
+
+ + diff --git a/api/index-files/index-16.html b/api/index-files/index-16.html new file mode 100644 index 0000000..f44aa17 --- /dev/null +++ b/api/index-files/index-16.html @@ -0,0 +1,71 @@ + + + + +U-Index + + + + + + + + + + + + + + + +
+ +
+
+
+

Index

+
+A B C D E F G H I L M O R S T U V 
All Classes and Interfaces|All Packages|Constant Field Values +

U

+
+
UI - Class in team.rocket.IO
+
+
UI is the standard entry point for using the simulation.
+
+
UI() - Constructor for class team.rocket.IO.UI
+
 
+
UP - Enum constant in enum class team.rocket.Enums.Direction
+
+
Enum value representing the direction up, representing a positional offset of {0, -1} within a 2d array.
+
+
+A B C D E F G H I L M O R S T U V 
All Classes and Interfaces|All Packages|Constant Field Values
+
+
+ + diff --git a/api/index-files/index-17.html b/api/index-files/index-17.html new file mode 100644 index 0000000..f05837f --- /dev/null +++ b/api/index-files/index-17.html @@ -0,0 +1,70 @@ + + + + +V-Index + + + + + + + + + + + + + + + +
+ +
+
+
+

Index

+
+A B C D E F G H I L M O R S T U V 
All Classes and Interfaces|All Packages|Constant Field Values +

V

+
+
valueOf(String) - Static method in enum class team.rocket.Enums.Direction
+
+
Returns the enum constant of this class with the specified name.
+
+
values() - Static method in enum class team.rocket.Enums.Direction
+
+
Returns an array containing the constants of this enum class, in +the order they are declared.
+
+
+A B C D E F G H I L M O R S T U V 
All Classes and Interfaces|All Packages|Constant Field Values
+
+
+ + diff --git a/api/index-files/index-2.html b/api/index-files/index-2.html new file mode 100644 index 0000000..9203e15 --- /dev/null +++ b/api/index-files/index-2.html @@ -0,0 +1,65 @@ + + + + +B-Index + + + + + + + + + + + + + + + +
+ +
+
+
+

Index

+
+A B C D E F G H I L M O R S T U V 
All Classes and Interfaces|All Packages|Constant Field Values +

B

+
+
breed() - Method in class team.rocket.Entities.Fox
+
+
Creates new Fox
+
+
+A B C D E F G H I L M O R S T U V 
All Classes and Interfaces|All Packages|Constant Field Values
+
+
+ + diff --git a/api/index-files/index-3.html b/api/index-files/index-3.html new file mode 100644 index 0000000..92abf93 --- /dev/null +++ b/api/index-files/index-3.html @@ -0,0 +1,71 @@ + + + + +C-Index + + + + + + + + + + + + + + + +
+ +
+
+
+

Index

+
+A B C D E F G H I L M O R S T U V 
All Classes and Interfaces|All Packages|Constant Field Values +

C

+
+
Carrot - Class in team.rocket.Entities
+
 
+
Carrot() - Constructor for class team.rocket.Entities.Carrot
+
+
The constructor method for creating a new Carrot object, please avoid using this and use the Organism Factory instead.
+
+
createOrganism(String) - Method in class team.rocket.Entities.OrganismFactory
+
+
Creates a new instance of the organism with the id
+
+
+A B C D E F G H I L M O R S T U V 
All Classes and Interfaces|All Packages|Constant Field Values
+
+
+ + diff --git a/api/index-files/index-4.html b/api/index-files/index-4.html new file mode 100644 index 0000000..72ed6fd --- /dev/null +++ b/api/index-files/index-4.html @@ -0,0 +1,102 @@ + + + + +D-Index + + + + + + + + + + + + + + + +
+ +
+
+
+

Index

+
+A B C D E F G H I L M O R S T U V 
All Classes and Interfaces|All Packages|Constant Field Values +

D

+
+
DaysPerRunFlagHandler - Class in team.rocket.IO.Terminal
+
+
Handles the DaysPerRun Flag + Ex: --days_amount 8
+
+
DaysPerRunFlagHandler() - Constructor for class team.rocket.IO.Terminal.DaysPerRunFlagHandler
+
 
+
DEFAULT_DAYS_PER_RUN - Static variable in class team.rocket.Simulation
+
+
The default number of days in each run
+
+
DEFAULT_HEIGHT - Static variable in class team.rocket.Map
+
+
The default value for the height of the grid
+
+
DEFAULT_MILLISECONDS_PER_TIME_STEP - Static variable in class team.rocket.Simulation
+
+
The default number of real-world milliseconds in each time step
+
+
DEFAULT_TIME_STEPS_PER_DAY - Static variable in class team.rocket.Simulation
+
+
The default number of time steps in each day
+
+
DEFAULT_WIDTH - Static variable in class team.rocket.Map
+
+
The default value for the width of the grid
+
+
Direction - Enum Class in team.rocket.Enums
+
 
+
directionFromInt(int) - Static method in enum class team.rocket.Enums.Direction
+
+
Gets a Direction from an int where the range [0,3] is assigned to UP, DOWN, LEFT, RIGHT in that order
+
+
directionFromString(String) - Static method in enum class team.rocket.Enums.Direction
+
+
Gets a direction from a string
+
+
DOWN - Enum constant in enum class team.rocket.Enums.Direction
+
+
Enum value representing the direction down, representing a positional offset of {0, 1} within a 2d array.
+
+
+A B C D E F G H I L M O R S T U V 
All Classes and Interfaces|All Packages|Constant Field Values
+
+
+ + diff --git a/api/index-files/index-5.html b/api/index-files/index-5.html new file mode 100644 index 0000000..65fae25 --- /dev/null +++ b/api/index-files/index-5.html @@ -0,0 +1,69 @@ + + + + +E-Index + + + + + + + + + + + + + + + +
+ +
+
+
+

Index

+
+A B C D E F G H I L M O R S T U V 
All Classes and Interfaces|All Packages|Constant Field Values +

E

+
+
eat(Map, int, int) - Method in class team.rocket.Entities.Fox
+
+
eats the organism positioned at {row, column}
+
+
eat(Map, int, int) - Method in class team.rocket.Entities.Rabbit
+
+
Gets the rabbit to eat the carrot or grass at position (column, row)
+
+
+A B C D E F G H I L M O R S T U V 
All Classes and Interfaces|All Packages|Constant Field Values
+
+
+ + diff --git a/api/index-files/index-6.html b/api/index-files/index-6.html new file mode 100644 index 0000000..6a79c48 --- /dev/null +++ b/api/index-files/index-6.html @@ -0,0 +1,81 @@ + + + + +F-Index + + + + + + + + + + + + + + + +
+ +
+
+
+

Index

+
+A B C D E F G H I L M O R S T U V 
All Classes and Interfaces|All Packages|Constant Field Values +

F

+
+
findNeighbors(Map, int, int) - Method in class team.rocket.Entities.Fox
+
+
Gets the neighbors of an organisms position
+
+
findNeighbors(Map, int, int) - Method in class team.rocket.Entities.Rabbit
+
+
Finds the neighbors of the Rabbit
+
+
FlagHandler - Class in team.rocket.IO.Terminal
+
+ +
+
FlagHandler() - Constructor for class team.rocket.IO.Terminal.FlagHandler
+
 
+
Fox - Class in team.rocket.Entities
+
 
+
Fox() - Constructor for class team.rocket.Entities.Fox
+
+
The constructor method for creating a new Fox object, please avoid using this and use the Organism Factory instead.
+
+
+A B C D E F G H I L M O R S T U V 
All Classes and Interfaces|All Packages|Constant Field Values
+
+
+ + diff --git a/api/index-files/index-7.html b/api/index-files/index-7.html new file mode 100644 index 0000000..7aea0c1 --- /dev/null +++ b/api/index-files/index-7.html @@ -0,0 +1,224 @@ + + + + +G-Index + + + + + + + + + + + + + + + +
+ +
+
+
+

Index

+
+A B C D E F G H I L M O R S T U V 
All Classes and Interfaces|All Packages|Constant Field Values +

G

+
+
getCount() - Static method in class team.rocket.Entities.AbstractAnimal
+
 
+
getCount() - Static method in class team.rocket.Entities.AbstractOrganism
+
 
+
getCount() - Static method in class team.rocket.Entities.AbstractPlant
+
 
+
getCount() - Static method in class team.rocket.Entities.Carrot
+
 
+
getCount() - Static method in class team.rocket.Entities.Fox
+
 
+
getCount() - Static method in class team.rocket.Entities.Grass
+
 
+
getCount() - Static method in class team.rocket.Entities.Rabbit
+
 
+
getCurrentDay() - Method in class team.rocket.Simulation
+
+
Returns the current day of the simulation
+
+
getCurrentTime() - Static method in class team.rocket.util.TimeManager
+
+
Gets the systems current epoch time and returns it as a long
+
+
getCurrentTimeStep() - Method in class team.rocket.Simulation
+
+
gets the current timestep
+
+
getGrid() - Method in class team.rocket.Map
+
+
Returns the grid of the team.rocket.Map.
+
+
getHeight() - Method in class team.rocket.Map
+
+
Returns the height of the grid of the team.rocket.Map.
+
+
getHunger() - Method in class team.rocket.Entities.Fox
+
 
+
getHunger() - Method in class team.rocket.Entities.Rabbit
+
 
+
getInstance() - Static method in class team.rocket.Entities.OrganismFactory
+
+
Singleton creator
+
+
getMap() - Method in class team.rocket.IO.Terminal.TerminalFlagRequest
+
+
Gets the map object
+
+
getMap() - Method in class team.rocket.Simulation
+
+
Getter for the simulation map
+
+
getNeighbors(int, int) - Method in class team.rocket.Map
+
+
Gets the neighbors of the position (x,y) + if a neighbor is a wall then that entry isn't included.
+
+
getNeighborsAsCharacter(int, int) - Method in class team.rocket.Map
+
+
Gets the neighbors of the position (x,y) as characters + If a neighbor is a wall, then that entry isn't included.
+
+
getNewObjectFromExistingObject() - Method in class team.rocket.Entities.AbstractOrganism
+
+
Takes the instance of an object and creates a brand new one and returns that new object
+
+
getNewObjectFromExistingObject() - Method in class team.rocket.Entities.AbstractPlant
+
+
Takes the instance of an object and creates a brand new one and returns that new object
+
+
getNewObjectFromExistingObject() - Method in class team.rocket.Entities.Carrot
+
+
Takes the instance of an object and creates a brand new one and returns that new object
+
+
getNewObjectFromExistingObject() - Method in class team.rocket.Entities.Fox
+
 
+
getNewObjectFromExistingObject() - Method in class team.rocket.Entities.Grass
+
+
Takes the instance of an object and creates a brand new one and returns that new object
+
+
getNewObjectFromExistingObject() - Method in class team.rocket.Entities.Rabbit
+
 
+
getNumberOfOrganisms() - Method in class team.rocket.Map
+
+
Gets the number of entities held by the map
+
+
getNumOfDays() - Method in class team.rocket.IO.Terminal.TerminalFlagRequest
+
+
Gets the numOfDays integer
+
+
getNutrition() - Method in class team.rocket.Entities.AbstractAnimal
+
 
+
getNutrition() - Method in class team.rocket.Entities.AbstractOrganism
+
 
+
getNutrition() - Method in class team.rocket.Entities.AbstractPlant
+
 
+
getNutrition() - Method in class team.rocket.Entities.Carrot
+
 
+
getNutrition() - Method in class team.rocket.Entities.Fox
+
 
+
getNutrition() - Method in class team.rocket.Entities.Grass
+
 
+
getNutrition() - Method in class team.rocket.Entities.Rabbit
+
 
+
getOrganism(int, int) - Method in class team.rocket.Map
+
+
Gets the organism at the specified location
+
+
getRandom() - Static method in class team.rocket.util.RandomManager
+
+
Creates one instance of Random and reuses it
+
+
getStepsPerDay() - Method in class team.rocket.IO.Terminal.TerminalFlagRequest
+
+
gets the stepsPerDay integer
+
+
getTerminalCommand() - Method in class team.rocket.IO.Terminal.TerminalFlagRequest
+
+
Gets the terminalCommand string
+
+
getVision() - Static method in class team.rocket.Entities.AbstractAnimal
+
+
Gets the vision of the organism, representing how far it can 'see'
+
+
getVision() - Static method in class team.rocket.Entities.Fox
+
+
Gets the vision value of the Fox, representing how far it can 'see'
+
+
getVision() - Static method in class team.rocket.Entities.Rabbit
+
+
return the vision value
+
+
getWidth() - Method in class team.rocket.Map
+
+
Returns the width of the grid of the team.rocket.Map.
+
+
Grass - Class in team.rocket.Entities
+
 
+
Grass() - Constructor for class team.rocket.Entities.Grass
+
+
The constructor method for creating a new Grass object, please avoid using this and use the Organism Factory instead.
+
+
GridSizeFlagHandler - Class in team.rocket.IO.Terminal
+
+
Handles Grid Size Flags + Ex --grid_width 55 --grid_height 35
+
+
GridSizeFlagHandler() - Constructor for class team.rocket.IO.Terminal.GridSizeFlagHandler
+
 
+
grow(AbstractOrganism[][], AbstractOrganism[], int, int) - Method in class team.rocket.Entities.AbstractPlant
+
+
Creates new Organism
+
+
grow(AbstractOrganism[][], AbstractOrganism[], int, int) - Method in class team.rocket.Entities.Carrot
+
+
Creates new Carrot in free adjacent slot
+
+
grow(AbstractOrganism[][], AbstractOrganism[], int, int) - Method in class team.rocket.Entities.Grass
+
+
Creates new Grass in free adjacent slot
+
+
growthStatus() - Method in class team.rocket.Entities.Carrot
+
 
+
growthStatus() - Method in class team.rocket.Entities.Grass
+
 
+
+A B C D E F G H I L M O R S T U V 
All Classes and Interfaces|All Packages|Constant Field Values
+
+
+ + diff --git a/api/index-files/index-8.html b/api/index-files/index-8.html new file mode 100644 index 0000000..88efa44 --- /dev/null +++ b/api/index-files/index-8.html @@ -0,0 +1,77 @@ + + + + +H-Index + + + + + + + + + + + + + + + +
+ +
+
+
+

Index

+
+A B C D E F G H I L M O R S T U V 
All Classes and Interfaces|All Packages|Constant Field Values +

H

+
+
handleRequest(TerminalFlagRequest) - Method in class team.rocket.IO.Terminal.DaysPerRunFlagHandler
+
 
+
handleRequest(TerminalFlagRequest) - Method in class team.rocket.IO.Terminal.FlagHandler
+
+
Actually handles the request
+
+
handleRequest(TerminalFlagRequest) - Method in class team.rocket.IO.Terminal.GridSizeFlagHandler
+
+
Handles grid size requests
+
+
handleRequest(TerminalFlagRequest) - Method in class team.rocket.IO.Terminal.InitialOrganismCountFlagHandler
+
+
Takes a request and updates the map to contain an initial amount of organisms
+
+
handleRequest(TerminalFlagRequest) - Method in class team.rocket.IO.Terminal.TimeStepsPerDayFlagHandler
+
 
+
+A B C D E F G H I L M O R S T U V 
All Classes and Interfaces|All Packages|Constant Field Values
+
+
+ + diff --git a/api/index-files/index-9.html b/api/index-files/index-9.html new file mode 100644 index 0000000..ff4f134 --- /dev/null +++ b/api/index-files/index-9.html @@ -0,0 +1,105 @@ + + + + +I-Index + + + + + + + + + + + + + + + +
+ +
+
+
+

Index

+
+A B C D E F G H I L M O R S T U V 
All Classes and Interfaces|All Packages|Constant Field Values +

I

+
+
InitialOrganismCountFlagHandler - Class in team.rocket.IO.Terminal
+
+
Handles Terminal Flags that pertain to initial Organism Count + Will put an initial amount of Organisms onto the map + Ex: --rabbit_count 6
+
+
InitialOrganismCountFlagHandler() - Constructor for class team.rocket.IO.Terminal.InitialOrganismCountFlagHandler
+
 
+
instancedToIcon() - Method in class team.rocket.Entities.AbstractOrganism
+
+
gets the icon from an instance
+
+
instancedToIcon() - Method in class team.rocket.Entities.AbstractPlant
+
+
gets the icon from an instance
+
+
instancedToIcon() - Method in class team.rocket.Entities.Carrot
+
+
gets the icon from an instance
+
+
instancedToIcon() - Method in class team.rocket.Entities.Fox
+
+
gets the icon from an instance
+
+
instancedToIcon() - Method in class team.rocket.Entities.Grass
+
+
gets the icon from an instance
+
+
instancedToIcon() - Method in class team.rocket.Entities.Rabbit
+
+
gets the icon from an instance
+
+
isEmpty() - Method in class team.rocket.Map
+
+
Returns a boolean telling whether the map is empty
+
+
isFull() - Method in class team.rocket.Map
+
+
Returns a boolean telling whether the map is full
+
+
isStarving() - Method in class team.rocket.Entities.Rabbit
+
+
Is the rabbit starving?
+
+
+A B C D E F G H I L M O R S T U V 
All Classes and Interfaces|All Packages|Constant Field Values
+
+
+ + diff --git a/api/index.html b/api/index.html new file mode 100644 index 0000000..6148374 --- /dev/null +++ b/api/index.html @@ -0,0 +1,73 @@ + + + + +Overview + + + + + + + + + + + + + + + +
+ +
+
+
+
Packages
+ +
+
+
+
+ + diff --git a/api/jquery-ui.overrides.css b/api/jquery-ui.overrides.css new file mode 100644 index 0000000..03c010b --- /dev/null +++ b/api/jquery-ui.overrides.css @@ -0,0 +1,35 @@ +/* + * Copyright (c) 2020, 2022, Oracle and/or its affiliates. All rights reserved. + * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + */ + +.ui-state-active, +.ui-widget-content .ui-state-active, +.ui-widget-header .ui-state-active, +a.ui-button:active, +.ui-button:active, +.ui-button.ui-state-active:hover { + /* Overrides the color of selection used in jQuery UI */ + background: #F8981D; + border: 1px solid #F8981D; +} diff --git a/api/legal/COPYRIGHT b/api/legal/COPYRIGHT new file mode 100644 index 0000000..945e19c --- /dev/null +++ b/api/legal/COPYRIGHT @@ -0,0 +1,69 @@ +Copyright © 1993, 2018, Oracle and/or its affiliates. +All rights reserved. + +This software and related documentation are provided under a +license agreement containing restrictions on use and +disclosure and are protected by intellectual property laws. +Except as expressly permitted in your license agreement or +allowed by law, you may not use, copy, reproduce, translate, +broadcast, modify, license, transmit, distribute, exhibit, +perform, publish, or display any part, in any form, or by +any means. Reverse engineering, disassembly, or +decompilation of this software, unless required by law for +interoperability, is prohibited. + +The information contained herein is subject to change +without notice and is not warranted to be error-free. If you +find any errors, please report them to us in writing. + +If this is software or related documentation that is +delivered to the U.S. Government or anyone licensing it on +behalf of the U.S. Government, the following notice is +applicable: + +U.S. GOVERNMENT END USERS: Oracle programs, including any +operating system, integrated software, any programs +installed on the hardware, and/or documentation, delivered +to U.S. Government end users are "commercial computer +software" pursuant to the applicable Federal Acquisition +Regulation and agency-specific supplemental regulations. As +such, use, duplication, disclosure, modification, and +adaptation of the programs, including any operating system, +integrated software, any programs installed on the hardware, +and/or documentation, shall be subject to license terms and +license restrictions applicable to the programs. No other +rights are granted to the U.S. Government. + +This software or hardware is developed for general use in a +variety of information management applications. It is not +developed or intended for use in any inherently dangerous +applications, including applications that may create a risk +of personal injury. If you use this software or hardware in +dangerous applications, then you shall be responsible to +take all appropriate fail-safe, backup, redundancy, and +other measures to ensure its safe use. Oracle Corporation +and its affiliates disclaim any liability for any damages +caused by use of this software or hardware in dangerous +applications. + +Oracle and Java are registered trademarks of Oracle and/or +its affiliates. Other names may be trademarks of their +respective owners. + +Intel and Intel Xeon are trademarks or registered trademarks +of Intel Corporation. All SPARC trademarks are used under +license and are trademarks or registered trademarks of SPARC +International, Inc. AMD, Opteron, the AMD logo, and the AMD +Opteron logo are trademarks or registered trademarks of +Advanced Micro Devices. UNIX is a registered trademark of +The Open Group. + +This software or hardware and documentation may provide +access to or information on content, products, and services +from third parties. Oracle Corporation and its affiliates +are not responsible for and expressly disclaim all +warranties of any kind with respect to third-party content, +products, and services. Oracle Corporation and its +affiliates will not be responsible for any loss, costs, or +damages incurred due to your access to or use of third-party +content, products, or services. diff --git a/api/legal/LICENSE b/api/legal/LICENSE new file mode 100644 index 0000000..ee860d3 --- /dev/null +++ b/api/legal/LICENSE @@ -0,0 +1,118 @@ +Your use of this Program is governed by the No-Fee Terms and Conditions set +forth below, unless you have received this Program (alone or as part of another +Oracle product) under an Oracle license agreement (including but not limited to +the Oracle Master Agreement), in which case your use of this Program is governed +solely by such license agreement with Oracle. + +Oracle No-Fee Terms and Conditions (NFTC) + +Definitions + +"Oracle" refers to Oracle America, Inc. "You" and "Your" refers to (a) a company +or organization (each an "Entity") accessing the Programs, if use of the +Programs will be on behalf of such Entity; or (b) an individual accessing the +Programs, if use of the Programs will not be on behalf of an Entity. +"Program(s)" refers to Oracle software provided by Oracle pursuant to the +following terms and any updates, error corrections, and/or Program Documentation +provided by Oracle. "Program Documentation" refers to Program user manuals and +Program installation manuals, if any. If available, Program Documentation may be +delivered with the Programs and/or may be accessed from +www.oracle.com/documentation. "Separate Terms" refers to separate license terms +that are specified in the Program Documentation, readmes or notice files and +that apply to Separately Licensed Technology. "Separately Licensed Technology" +refers to Oracle or third party technology that is licensed under Separate Terms +and not under the terms of this license. + +Separately Licensed Technology + +Oracle may provide certain notices to You in Program Documentation, readmes or +notice files in connection with Oracle or third party technology provided as or +with the Programs. If specified in the Program Documentation, readmes or notice +files, such technology will be licensed to You under Separate Terms. Your rights +to use Separately Licensed Technology under Separate Terms are not restricted in +any way by the terms herein. For clarity, notwithstanding the existence of a +notice, third party technology that is not Separately Licensed Technology shall +be deemed part of the Programs licensed to You under the terms of this license. + +Source Code for Open Source Software + +For software that You receive from Oracle in binary form that is licensed under +an open source license that gives You the right to receive the source code for +that binary, You can obtain a copy of the applicable source code from +https://oss.oracle.com/sources/ or http://www.oracle.com/goto/opensourcecode. If +the source code for such software was not provided to You with the binary, You +can also receive a copy of the source code on physical media by submitting a +written request pursuant to the instructions in the "Written Offer for Source +Code" section of the latter website. + +------------------------------------------------------------------------------- + +The following license terms apply to those Programs that are not provided to You +under Separate Terms. + +License Rights and Restrictions + +Oracle grants to You, as a recipient of this Program, subject to the conditions +stated herein, a nonexclusive, nontransferable, limited license to: + +(a) internally use the unmodified Programs for the purposes of developing, +testing, prototyping and demonstrating your applications, and running the +Program for Your own personal use or internal business operations; and + +(b) redistribute the unmodified Program and Program Documentation, under the +terms of this License, provided that You do not charge Your licensees any fees +associated with such distribution or use of the Program, including, without +limitation, fees for products that include or are bundled with a copy of the +Program or for services that involve the use of the distributed Program. + +You may make copies of the Programs to the extent reasonably necessary for +exercising the license rights granted herein and for backup purposes. You are +granted the right to use the Programs to provide third party training in the use +of the Programs and associated Separately Licensed Technology only if there is +express authorization of such use by Oracle on the Program's download page or in +the Program Documentation. + +Your license is contingent on compliance with the following conditions: + +- You do not remove markings or notices of either Oracle's or a licensor's + proprietary rights from the Programs or Program Documentation; + +- You comply with all U.S. and applicable export control and economic sanctions + laws and regulations that govern Your use of the Programs (including technical + data); + +- You do not cause or permit reverse engineering, disassembly or decompilation + of the Programs (except as allowed by law) by You nor allow an associated + party to do so. + +For clarity, any source code that may be included in the distribution with the +Programs is provided solely for reference purposes and may not be modified, +unless such source code is under Separate Terms permitting modification. + +Ownership + +Oracle or its licensors retain all ownership and intellectual property rights to +the Programs. + +Information Collection + +The Programs' installation and/or auto-update processes, if any, may transmit a +limited amount of data to Oracle or its service provider about those processes +to help Oracle understand and optimize them. Oracle does not associate the data +with personally identifiable information. Refer to Oracle's Privacy Policy at +www.oracle.com/privacy. + +Disclaimer of Warranties; Limitation of Liability + +THE PROGRAMS ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. ORACLE FURTHER +DISCLAIMS ALL WARRANTIES, EXPRESS AND IMPLIED, INCLUDING WITHOUT LIMITATION, ANY +IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR +NONINFRINGEMENT. + +IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW WILL ORACLE BE LIABLE TO YOU FOR +DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES +ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT +LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. diff --git a/api/legal/jquery.md b/api/legal/jquery.md new file mode 100644 index 0000000..d468b31 --- /dev/null +++ b/api/legal/jquery.md @@ -0,0 +1,72 @@ +## jQuery v3.6.1 + +### jQuery License +``` +jQuery v 3.6.1 +Copyright OpenJS Foundation and other contributors, https://openjsf.org/ + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +****************************************** + +The jQuery JavaScript Library v3.6.1 also includes Sizzle.js + +Sizzle.js includes the following license: + +Copyright JS Foundation and other contributors, https://js.foundation/ + +This software consists of voluntary contributions made by many +individuals. For exact contribution history, see the revision history +available at https://github.com/jquery/sizzle + +The following license applies to all parts of this software except as +documented below: + +==== + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +==== + +All files located in the node_modules and external directories are +externally maintained libraries used by this software which have their +own licenses; we recommend you read them, as their terms may differ from +the terms above. + +********************* + +``` diff --git a/api/legal/jqueryUI.md b/api/legal/jqueryUI.md new file mode 100644 index 0000000..8bda9d7 --- /dev/null +++ b/api/legal/jqueryUI.md @@ -0,0 +1,49 @@ +## jQuery UI v1.13.2 + +### jQuery UI License +``` +Copyright jQuery Foundation and other contributors, https://jquery.org/ + +This software consists of voluntary contributions made by many +individuals. For exact contribution history, see the revision history +available at https://github.com/jquery/jquery-ui + +The following license applies to all parts of this software except as +documented below: + +==== + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +==== + +Copyright and related rights for sample code are waived via CC0. Sample +code is defined as all source code contained within the demos directory. + +CC0: http://creativecommons.org/publicdomain/zero/1.0/ + +==== + +All files located in the node_modules and external directories are +externally maintained libraries used by this software which have their +own licenses; we recommend you read them, as their terms may differ from +the terms above. + +``` diff --git a/api/member-search-index.js b/api/member-search-index.js new file mode 100644 index 0000000..0714784 --- /dev/null +++ b/api/member-search-index.js @@ -0,0 +1 @@ +memberSearchIndex = [{"p":"team.rocket.Entities","c":"AbstractAnimal","l":"AbstractAnimal()","u":"%3Cinit%3E()"},{"p":"team.rocket.Entities","c":"AbstractOrganism","l":"AbstractOrganism()","u":"%3Cinit%3E()"},{"p":"team.rocket.Entities","c":"AbstractPlant","l":"AbstractPlant()","u":"%3Cinit%3E()"},{"p":"team.rocket","c":"Map","l":"addOrganism(AbstractOrganism, int, int)","u":"addOrganism(team.rocket.Entities.AbstractOrganism,int,int)"},{"p":"team.rocket.Entities","c":"AbstractAnimal","l":"availableMovementSpace(AbstractOrganism[])","u":"availableMovementSpace(team.rocket.Entities.AbstractOrganism[])"},{"p":"team.rocket.Entities","c":"Fox","l":"availableMovementSpace(AbstractOrganism[])","u":"availableMovementSpace(team.rocket.Entities.AbstractOrganism[])"},{"p":"team.rocket.Entities","c":"Rabbit","l":"availableMovementSpace(AbstractOrganism[])","u":"availableMovementSpace(team.rocket.Entities.AbstractOrganism[])"},{"p":"team.rocket.Entities","c":"Carrot","l":"availableSpace(AbstractOrganism[])","u":"availableSpace(team.rocket.Entities.AbstractOrganism[])"},{"p":"team.rocket.Entities","c":"Grass","l":"availableSpace(AbstractOrganism[])","u":"availableSpace(team.rocket.Entities.AbstractOrganism[])"},{"p":"team.rocket.Entities","c":"Fox","l":"breed()"},{"p":"team.rocket.Entities","c":"Carrot","l":"Carrot()","u":"%3Cinit%3E()"},{"p":"team.rocket.Entities","c":"OrganismFactory","l":"createOrganism(String)","u":"createOrganism(java.lang.String)"},{"p":"team.rocket.IO.Terminal","c":"DaysPerRunFlagHandler","l":"DaysPerRunFlagHandler()","u":"%3Cinit%3E()"},{"p":"team.rocket","c":"Simulation","l":"DEFAULT_DAYS_PER_RUN"},{"p":"team.rocket","c":"Map","l":"DEFAULT_HEIGHT"},{"p":"team.rocket","c":"Simulation","l":"DEFAULT_MILLISECONDS_PER_TIME_STEP"},{"p":"team.rocket","c":"Simulation","l":"DEFAULT_TIME_STEPS_PER_DAY"},{"p":"team.rocket","c":"Map","l":"DEFAULT_WIDTH"},{"p":"team.rocket.Enums","c":"Direction","l":"directionFromInt(int)"},{"p":"team.rocket.Enums","c":"Direction","l":"directionFromString(String)","u":"directionFromString(java.lang.String)"},{"p":"team.rocket.Enums","c":"Direction","l":"DOWN"},{"p":"team.rocket.Entities","c":"Fox","l":"eat(Map, int, int)","u":"eat(team.rocket.Map,int,int)"},{"p":"team.rocket.Entities","c":"Rabbit","l":"eat(Map, int, int)","u":"eat(team.rocket.Map,int,int)"},{"p":"team.rocket.Entities","c":"Fox","l":"findNeighbors(Map, int, int)","u":"findNeighbors(team.rocket.Map,int,int)"},{"p":"team.rocket.Entities","c":"Rabbit","l":"findNeighbors(Map, int, int)","u":"findNeighbors(team.rocket.Map,int,int)"},{"p":"team.rocket.IO.Terminal","c":"FlagHandler","l":"FlagHandler()","u":"%3Cinit%3E()"},{"p":"team.rocket.Entities","c":"Fox","l":"Fox()","u":"%3Cinit%3E()"},{"p":"team.rocket.Entities","c":"AbstractAnimal","l":"getCount()"},{"p":"team.rocket.Entities","c":"AbstractOrganism","l":"getCount()"},{"p":"team.rocket.Entities","c":"AbstractPlant","l":"getCount()"},{"p":"team.rocket.Entities","c":"Carrot","l":"getCount()"},{"p":"team.rocket.Entities","c":"Fox","l":"getCount()"},{"p":"team.rocket.Entities","c":"Grass","l":"getCount()"},{"p":"team.rocket.Entities","c":"Rabbit","l":"getCount()"},{"p":"team.rocket","c":"Simulation","l":"getCurrentDay()"},{"p":"team.rocket.util","c":"TimeManager","l":"getCurrentTime()"},{"p":"team.rocket","c":"Simulation","l":"getCurrentTimeStep()"},{"p":"team.rocket","c":"Map","l":"getGrid()"},{"p":"team.rocket","c":"Map","l":"getHeight()"},{"p":"team.rocket.Entities","c":"Fox","l":"getHunger()"},{"p":"team.rocket.Entities","c":"Rabbit","l":"getHunger()"},{"p":"team.rocket.Entities","c":"OrganismFactory","l":"getInstance()"},{"p":"team.rocket.IO.Terminal","c":"TerminalFlagRequest","l":"getMap()"},{"p":"team.rocket","c":"Simulation","l":"getMap()"},{"p":"team.rocket","c":"Map","l":"getNeighbors(int, int)","u":"getNeighbors(int,int)"},{"p":"team.rocket","c":"Map","l":"getNeighborsAsCharacter(int, int)","u":"getNeighborsAsCharacter(int,int)"},{"p":"team.rocket.Entities","c":"AbstractOrganism","l":"getNewObjectFromExistingObject()"},{"p":"team.rocket.Entities","c":"AbstractPlant","l":"getNewObjectFromExistingObject()"},{"p":"team.rocket.Entities","c":"Carrot","l":"getNewObjectFromExistingObject()"},{"p":"team.rocket.Entities","c":"Fox","l":"getNewObjectFromExistingObject()"},{"p":"team.rocket.Entities","c":"Grass","l":"getNewObjectFromExistingObject()"},{"p":"team.rocket.Entities","c":"Rabbit","l":"getNewObjectFromExistingObject()"},{"p":"team.rocket","c":"Map","l":"getNumberOfOrganisms()"},{"p":"team.rocket.IO.Terminal","c":"TerminalFlagRequest","l":"getNumOfDays()"},{"p":"team.rocket.Entities","c":"AbstractAnimal","l":"getNutrition()"},{"p":"team.rocket.Entities","c":"AbstractOrganism","l":"getNutrition()"},{"p":"team.rocket.Entities","c":"AbstractPlant","l":"getNutrition()"},{"p":"team.rocket.Entities","c":"Carrot","l":"getNutrition()"},{"p":"team.rocket.Entities","c":"Fox","l":"getNutrition()"},{"p":"team.rocket.Entities","c":"Grass","l":"getNutrition()"},{"p":"team.rocket.Entities","c":"Rabbit","l":"getNutrition()"},{"p":"team.rocket","c":"Map","l":"getOrganism(int, int)","u":"getOrganism(int,int)"},{"p":"team.rocket.util","c":"RandomManager","l":"getRandom()"},{"p":"team.rocket.IO.Terminal","c":"TerminalFlagRequest","l":"getStepsPerDay()"},{"p":"team.rocket.IO.Terminal","c":"TerminalFlagRequest","l":"getTerminalCommand()"},{"p":"team.rocket.Entities","c":"AbstractAnimal","l":"getVision()"},{"p":"team.rocket.Entities","c":"Fox","l":"getVision()"},{"p":"team.rocket.Entities","c":"Rabbit","l":"getVision()"},{"p":"team.rocket","c":"Map","l":"getWidth()"},{"p":"team.rocket.Entities","c":"Grass","l":"Grass()","u":"%3Cinit%3E()"},{"p":"team.rocket.IO.Terminal","c":"GridSizeFlagHandler","l":"GridSizeFlagHandler()","u":"%3Cinit%3E()"},{"p":"team.rocket.Entities","c":"AbstractPlant","l":"grow(AbstractOrganism[][], AbstractOrganism[], int, int)","u":"grow(team.rocket.Entities.AbstractOrganism[][],team.rocket.Entities.AbstractOrganism[],int,int)"},{"p":"team.rocket.Entities","c":"Carrot","l":"grow(AbstractOrganism[][], AbstractOrganism[], int, int)","u":"grow(team.rocket.Entities.AbstractOrganism[][],team.rocket.Entities.AbstractOrganism[],int,int)"},{"p":"team.rocket.Entities","c":"Grass","l":"grow(AbstractOrganism[][], AbstractOrganism[], int, int)","u":"grow(team.rocket.Entities.AbstractOrganism[][],team.rocket.Entities.AbstractOrganism[],int,int)"},{"p":"team.rocket.Entities","c":"Carrot","l":"growthStatus()"},{"p":"team.rocket.Entities","c":"Grass","l":"growthStatus()"},{"p":"team.rocket.IO.Terminal","c":"DaysPerRunFlagHandler","l":"handleRequest(TerminalFlagRequest)","u":"handleRequest(team.rocket.IO.Terminal.TerminalFlagRequest)"},{"p":"team.rocket.IO.Terminal","c":"FlagHandler","l":"handleRequest(TerminalFlagRequest)","u":"handleRequest(team.rocket.IO.Terminal.TerminalFlagRequest)"},{"p":"team.rocket.IO.Terminal","c":"GridSizeFlagHandler","l":"handleRequest(TerminalFlagRequest)","u":"handleRequest(team.rocket.IO.Terminal.TerminalFlagRequest)"},{"p":"team.rocket.IO.Terminal","c":"InitialOrganismCountFlagHandler","l":"handleRequest(TerminalFlagRequest)","u":"handleRequest(team.rocket.IO.Terminal.TerminalFlagRequest)"},{"p":"team.rocket.IO.Terminal","c":"TimeStepsPerDayFlagHandler","l":"handleRequest(TerminalFlagRequest)","u":"handleRequest(team.rocket.IO.Terminal.TerminalFlagRequest)"},{"p":"team.rocket.IO.Terminal","c":"InitialOrganismCountFlagHandler","l":"InitialOrganismCountFlagHandler()","u":"%3Cinit%3E()"},{"p":"team.rocket.Entities","c":"AbstractOrganism","l":"instancedToIcon()"},{"p":"team.rocket.Entities","c":"AbstractPlant","l":"instancedToIcon()"},{"p":"team.rocket.Entities","c":"Carrot","l":"instancedToIcon()"},{"p":"team.rocket.Entities","c":"Fox","l":"instancedToIcon()"},{"p":"team.rocket.Entities","c":"Grass","l":"instancedToIcon()"},{"p":"team.rocket.Entities","c":"Rabbit","l":"instancedToIcon()"},{"p":"team.rocket","c":"Map","l":"isEmpty()"},{"p":"team.rocket","c":"Map","l":"isFull()"},{"p":"team.rocket.Entities","c":"Rabbit","l":"isStarving()"},{"p":"team.rocket.Enums","c":"Direction","l":"LEFT"},{"p":"team.rocket.IO.Terminal","c":"FlagHandler","l":"m_successor"},{"p":"team.rocket.IO","c":"UI","l":"main(String[])","u":"main(java.lang.String[])"},{"p":"team.rocket","c":"Map","l":"Map()","u":"%3Cinit%3E()"},{"p":"team.rocket","c":"Map","l":"Map(AbstractOrganism[][])","u":"%3Cinit%3E(team.rocket.Entities.AbstractOrganism[][])"},{"p":"team.rocket","c":"Map","l":"Map(int, int)","u":"%3Cinit%3E(int,int)"},{"p":"team.rocket.Entities","c":"AbstractAnimal","l":"move(Map, int, int)","u":"move(team.rocket.Map,int,int)"},{"p":"team.rocket.Entities","c":"Fox","l":"move(Map, int, int)","u":"move(team.rocket.Map,int,int)"},{"p":"team.rocket.Entities","c":"Rabbit","l":"move(Map, int, int)","u":"move(team.rocket.Map,int,int)"},{"p":"team.rocket","c":"Map","l":"moveOrganism(int, int, int, int)","u":"moveOrganism(int,int,int,int)"},{"p":"team.rocket.IO","c":"UI","l":"outputGrid(int, Map)","u":"outputGrid(int,team.rocket.Map)"},{"p":"team.rocket.IO","c":"UI","l":"outputGridViaMainThread(int, Map)","u":"outputGridViaMainThread(int,team.rocket.Map)"},{"p":"team.rocket.Entities","c":"Rabbit","l":"Rabbit()","u":"%3Cinit%3E()"},{"p":"team.rocket.Enums","c":"Direction","l":"randomDirectionFromBooleanArray(boolean[])"},{"p":"team.rocket.Entities","c":"AbstractOrganism","l":"reduceCount()"},{"p":"team.rocket.Entities","c":"AbstractPlant","l":"reduceCount()"},{"p":"team.rocket.Entities","c":"Carrot","l":"reduceCount()"},{"p":"team.rocket.Entities","c":"Fox","l":"reduceCount()"},{"p":"team.rocket.Entities","c":"Grass","l":"reduceCount()"},{"p":"team.rocket.Entities","c":"Rabbit","l":"reduceCount()"},{"p":"team.rocket.Entities","c":"Fox","l":"reduceHunger()"},{"p":"team.rocket.Entities","c":"Rabbit","l":"reduceHunger()"},{"p":"team.rocket.Entities","c":"OrganismFactory","l":"registerOrganism(String, AbstractOrganism)","u":"registerOrganism(java.lang.String,team.rocket.Entities.AbstractOrganism)"},{"p":"team.rocket","c":"Map","l":"removeOrganism(int, int)","u":"removeOrganism(int,int)"},{"p":"team.rocket.Entities","c":"AbstractAnimal","l":"reproduce()"},{"p":"team.rocket.Entities","c":"Fox","l":"reproduce()"},{"p":"team.rocket.Entities","c":"Rabbit","l":"reproduce()"},{"p":"team.rocket.Entities","c":"Fox","l":"resetBreeding()"},{"p":"team.rocket.Entities","c":"AbstractPlant","l":"resetGrown()"},{"p":"team.rocket.Entities","c":"Carrot","l":"resetGrown()"},{"p":"team.rocket.Entities","c":"Grass","l":"resetGrown()"},{"p":"team.rocket.Entities","c":"AbstractAnimal","l":"resetMove()"},{"p":"team.rocket.Entities","c":"Fox","l":"resetMove()"},{"p":"team.rocket.Entities","c":"Rabbit","l":"resetMove()"},{"p":"team.rocket.Enums","c":"Direction","l":"RIGHT"},{"p":"team.rocket","c":"Simulation","l":"run()"},{"p":"team.rocket.Entities","c":"AbstractOrganism","l":"setCount(int)"},{"p":"team.rocket.Entities","c":"AbstractPlant","l":"setCount(int)"},{"p":"team.rocket.Entities","c":"Carrot","l":"setCount(int)"},{"p":"team.rocket.Entities","c":"Fox","l":"setCount(int)"},{"p":"team.rocket.Entities","c":"Grass","l":"setCount(int)"},{"p":"team.rocket.Entities","c":"Rabbit","l":"setCount(int)"},{"p":"team.rocket","c":"Simulation","l":"setDaysPerRun(int)"},{"p":"team.rocket","c":"Map","l":"setGrid(AbstractOrganism[][])","u":"setGrid(team.rocket.Entities.AbstractOrganism[][])"},{"p":"team.rocket.IO.Terminal","c":"TerminalFlagRequest","l":"setMap(Map)","u":"setMap(team.rocket.Map)"},{"p":"team.rocket","c":"Simulation","l":"setMillisecondsPerTimeStep(int)"},{"p":"team.rocket.IO.Terminal","c":"TerminalFlagRequest","l":"setNumOfDays(int)"},{"p":"team.rocket","c":"Simulation","l":"setPrintOutput(boolean)"},{"p":"team.rocket.IO.Terminal","c":"TerminalFlagRequest","l":"setStepsPerDay(int)"},{"p":"team.rocket.IO.Terminal","c":"FlagHandler","l":"setSuccessor(FlagHandler)","u":"setSuccessor(team.rocket.IO.Terminal.FlagHandler)"},{"p":"team.rocket","c":"Simulation","l":"setTimeStepsPerDay(int)"},{"p":"team.rocket","c":"Simulation","l":"Simulation()","u":"%3Cinit%3E()"},{"p":"team.rocket","c":"Simulation","l":"Simulation(int, int)","u":"%3Cinit%3E(int,int)"},{"p":"team.rocket","c":"Simulation","l":"Simulation(Map)","u":"%3Cinit%3E(team.rocket.Map)"},{"p":"team.rocket.IO.Terminal","c":"TerminalFlagRequest","l":"TerminalFlagRequest(String, Map)","u":"%3Cinit%3E(java.lang.String,team.rocket.Map)"},{"p":"team.rocket.IO.Terminal","c":"TimeStepsPerDayFlagHandler","l":"TimeStepsPerDayFlagHandler()","u":"%3Cinit%3E()"},{"p":"team.rocket.Entities","c":"AbstractAnimal","l":"toIcon()"},{"p":"team.rocket.Entities","c":"AbstractOrganism","l":"toIcon()"},{"p":"team.rocket.Entities","c":"AbstractPlant","l":"toIcon()"},{"p":"team.rocket.Entities","c":"Carrot","l":"toIcon()"},{"p":"team.rocket.Entities","c":"Fox","l":"toIcon()"},{"p":"team.rocket.Entities","c":"Grass","l":"toIcon()"},{"p":"team.rocket.Entities","c":"Rabbit","l":"toIcon()"},{"p":"team.rocket.IO","c":"UI","l":"UI()","u":"%3Cinit%3E()"},{"p":"team.rocket.Enums","c":"Direction","l":"UP"},{"p":"team.rocket.Enums","c":"Direction","l":"valueOf(String)","u":"valueOf(java.lang.String)"},{"p":"team.rocket.Enums","c":"Direction","l":"values()"}];updateSearchResults(); \ No newline at end of file diff --git a/api/module-search-index.js b/api/module-search-index.js new file mode 100644 index 0000000..0d59754 --- /dev/null +++ b/api/module-search-index.js @@ -0,0 +1 @@ +moduleSearchIndex = [];updateSearchResults(); \ No newline at end of file diff --git a/api/overview-summary.html b/api/overview-summary.html new file mode 100644 index 0000000..fd4e321 --- /dev/null +++ b/api/overview-summary.html @@ -0,0 +1,26 @@ + + + + +Generated Documentation (Untitled) + + + + + + + + + + + +
+ +

index.html

+
+ + diff --git a/api/overview-tree.html b/api/overview-tree.html new file mode 100644 index 0000000..c7d5d6c --- /dev/null +++ b/api/overview-tree.html @@ -0,0 +1,120 @@ + + + + +Class Hierarchy + + + + + + + + + + + + + + + +
+ +
+
+
+

Hierarchy For All Packages

+Package Hierarchies: + +
+
+

Class Hierarchy

+ +
+
+

Enum Class Hierarchy

+ +
+
+
+
+ + diff --git a/api/package-search-index.js b/api/package-search-index.js new file mode 100644 index 0000000..dbf7bdb --- /dev/null +++ b/api/package-search-index.js @@ -0,0 +1 @@ +packageSearchIndex = [{"l":"All Packages","u":"allpackages-index.html"},{"l":"team.rocket"},{"l":"team.rocket.Entities"},{"l":"team.rocket.Enums"},{"l":"team.rocket.IO"},{"l":"team.rocket.IO.Terminal"},{"l":"team.rocket.util"}];updateSearchResults(); \ No newline at end of file diff --git a/api/resources/glass.png b/api/resources/glass.png new file mode 100644 index 0000000000000000000000000000000000000000..a7f591f467a1c0c949bbc510156a0c1afb860a6e GIT binary patch literal 499 zcmVJoRsvExf%rEN>jUL}qZ_~k#FbE+Q;{`;0FZwVNX2n-^JoI; zP;4#$8DIy*Yk-P>VN(DUKmPse7mx+ExD4O|;?E5D0Z5($mjO3`*anwQU^s{ZDK#Lz zj>~{qyaIx5K!t%=G&2IJNzg!ChRpyLkO7}Ry!QaotAHAMpbB3AF(}|_f!G-oI|uK6 z`id_dumai5K%C3Y$;tKS_iqMPHg<*|-@e`liWLAggVM!zAP#@l;=c>S03;{#04Z~5 zN_+ss=Yg6*hTr59mzMwZ@+l~q!+?ft!fF66AXT#wWavHt30bZWFCK%!BNk}LN?0Hg z1VF_nfs`Lm^DjYZ1(1uD0u4CSIr)XAaqW6IT{!St5~1{i=i}zAy76p%_|w8rh@@c0Axr!ns=D-X+|*sY6!@wacG9%)Qn*O zl0sa739kT-&_?#oVxXF6tOnqTD)cZ}2vi$`ZU8RLAlo8=_z#*P3xI~i!lEh+Pdu-L zx{d*wgjtXbnGX_Yf@Tc7Q3YhLhPvc8noGJs2DA~1DySiA&6V{5JzFt ojAY1KXm~va;tU{v7C?Xj0BHw!K;2aXV*mgE07*qoM6N<$f;4TDA^-pY literal 0 HcmV?d00001 diff --git a/api/script-dir/jquery-3.6.1.min.js b/api/script-dir/jquery-3.6.1.min.js new file mode 100644 index 0000000..2c69bc9 --- /dev/null +++ b/api/script-dir/jquery-3.6.1.min.js @@ -0,0 +1,2 @@ +/*! jQuery v3.6.1 | (c) OpenJS Foundation and other contributors | jquery.org/license */ +!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(C,e){"use strict";var t=[],r=Object.getPrototypeOf,s=t.slice,g=t.flat?function(e){return t.flat.call(e)}:function(e){return t.concat.apply([],e)},u=t.push,i=t.indexOf,n={},o=n.toString,y=n.hasOwnProperty,a=y.toString,l=a.call(Object),v={},m=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},x=function(e){return null!=e&&e===e.window},E=C.document,c={type:!0,src:!0,nonce:!0,noModule:!0};function b(e,t,n){var r,i,o=(n=n||E).createElement("script");if(o.text=e,t)for(r in c)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function w(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[o.call(e)]||"object":typeof e}var f="3.6.1",S=function(e,t){return new S.fn.init(e,t)};function p(e){var t=!!e&&"length"in e&&e.length,n=w(e);return!m(e)&&!x(e)&&("array"===n||0===t||"number"==typeof t&&0+~]|"+M+")"+M+"*"),U=new RegExp(M+"|>"),X=new RegExp(F),V=new RegExp("^"+I+"$"),G={ID:new RegExp("^#("+I+")"),CLASS:new RegExp("^\\.("+I+")"),TAG:new RegExp("^("+I+"|[*])"),ATTR:new RegExp("^"+W),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},Y=/HTML$/i,Q=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}"+M+"?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){T()},ae=be(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{H.apply(t=O.call(p.childNodes),p.childNodes),t[p.childNodes.length].nodeType}catch(e){H={apply:t.length?function(e,t){L.apply(e,O.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}function se(t,e,n,r){var i,o,a,s,u,l,c,f=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!r&&(T(e),e=e||C,E)){if(11!==p&&(u=Z.exec(t)))if(i=u[1]){if(9===p){if(!(a=e.getElementById(i)))return n;if(a.id===i)return n.push(a),n}else if(f&&(a=f.getElementById(i))&&v(e,a)&&a.id===i)return n.push(a),n}else{if(u[2])return H.apply(n,e.getElementsByTagName(t)),n;if((i=u[3])&&d.getElementsByClassName&&e.getElementsByClassName)return H.apply(n,e.getElementsByClassName(i)),n}if(d.qsa&&!N[t+" "]&&(!y||!y.test(t))&&(1!==p||"object"!==e.nodeName.toLowerCase())){if(c=t,f=e,1===p&&(U.test(t)||z.test(t))){(f=ee.test(t)&&ve(e.parentNode)||e)===e&&d.scope||((s=e.getAttribute("id"))?s=s.replace(re,ie):e.setAttribute("id",s=S)),o=(l=h(t)).length;while(o--)l[o]=(s?"#"+s:":scope")+" "+xe(l[o]);c=l.join(",")}try{return H.apply(n,f.querySelectorAll(c)),n}catch(e){N(t,!0)}finally{s===S&&e.removeAttribute("id")}}}return g(t.replace(B,"$1"),e,n,r)}function ue(){var r=[];return function e(t,n){return r.push(t+" ")>b.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function le(e){return e[S]=!0,e}function ce(e){var t=C.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function fe(e,t){var n=e.split("|"),r=n.length;while(r--)b.attrHandle[n[r]]=t}function pe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function de(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function he(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function ge(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&ae(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function ye(a){return le(function(o){return o=+o,le(function(e,t){var n,r=a([],e.length,o),i=r.length;while(i--)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function ve(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}for(e in d=se.support={},i=se.isXML=function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!Y.test(t||n&&n.nodeName||"HTML")},T=se.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:p;return r!=C&&9===r.nodeType&&r.documentElement&&(a=(C=r).documentElement,E=!i(C),p!=C&&(n=C.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",oe,!1):n.attachEvent&&n.attachEvent("onunload",oe)),d.scope=ce(function(e){return a.appendChild(e).appendChild(C.createElement("div")),"undefined"!=typeof e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),d.attributes=ce(function(e){return e.className="i",!e.getAttribute("className")}),d.getElementsByTagName=ce(function(e){return e.appendChild(C.createComment("")),!e.getElementsByTagName("*").length}),d.getElementsByClassName=K.test(C.getElementsByClassName),d.getById=ce(function(e){return a.appendChild(e).id=S,!C.getElementsByName||!C.getElementsByName(S).length}),d.getById?(b.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&E){var n=t.getElementById(e);return n?[n]:[]}}):(b.filter.ID=function(e){var n=e.replace(te,ne);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&E){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];i=t.getElementsByName(e),r=0;while(o=i[r++])if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),b.find.TAG=d.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):d.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){while(n=o[i++])1===n.nodeType&&r.push(n);return r}return o},b.find.CLASS=d.getElementsByClassName&&function(e,t){if("undefined"!=typeof t.getElementsByClassName&&E)return t.getElementsByClassName(e)},s=[],y=[],(d.qsa=K.test(C.querySelectorAll))&&(ce(function(e){var t;a.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&y.push("[*^$]="+M+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||y.push("\\["+M+"*(?:value|"+R+")"),e.querySelectorAll("[id~="+S+"-]").length||y.push("~="),(t=C.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||y.push("\\["+M+"*name"+M+"*="+M+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||y.push(":checked"),e.querySelectorAll("a#"+S+"+*").length||y.push(".#.+[+~]"),e.querySelectorAll("\\\f"),y.push("[\\r\\n\\f]")}),ce(function(e){e.innerHTML="";var t=C.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&y.push("name"+M+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&y.push(":enabled",":disabled"),a.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&y.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),y.push(",.*:")})),(d.matchesSelector=K.test(c=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||a.msMatchesSelector))&&ce(function(e){d.disconnectedMatch=c.call(e,"*"),c.call(e,"[s!='']:x"),s.push("!=",F)}),y=y.length&&new RegExp(y.join("|")),s=s.length&&new RegExp(s.join("|")),t=K.test(a.compareDocumentPosition),v=t||K.test(a.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},j=t?function(e,t){if(e===t)return l=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!d.sortDetached&&t.compareDocumentPosition(e)===n?e==C||e.ownerDocument==p&&v(p,e)?-1:t==C||t.ownerDocument==p&&v(p,t)?1:u?P(u,e)-P(u,t):0:4&n?-1:1)}:function(e,t){if(e===t)return l=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e==C?-1:t==C?1:i?-1:o?1:u?P(u,e)-P(u,t):0;if(i===o)return pe(e,t);n=e;while(n=n.parentNode)a.unshift(n);n=t;while(n=n.parentNode)s.unshift(n);while(a[r]===s[r])r++;return r?pe(a[r],s[r]):a[r]==p?-1:s[r]==p?1:0}),C},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if(T(e),d.matchesSelector&&E&&!N[t+" "]&&(!s||!s.test(t))&&(!y||!y.test(t)))try{var n=c.call(e,t);if(n||d.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){N(t,!0)}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return G.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&X.test(n)&&(t=h(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=m[e+" "];return t||(t=new RegExp("(^|"+M+")"+e+"("+M+"|$)"))&&m(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(e){var t=se.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function j(e,n,r){return m(n)?S.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?S.grep(e,function(e){return e===n!==r}):"string"!=typeof n?S.grep(e,function(e){return-1)[^>]*|#([\w-]+))$/;(S.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||D,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:q.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof S?t[0]:t,S.merge(this,S.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:E,!0)),N.test(r[1])&&S.isPlainObject(t))for(r in t)m(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=E.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):m(e)?void 0!==n.ready?n.ready(e):e(S):S.makeArray(e,this)}).prototype=S.fn,D=S(E);var L=/^(?:parents|prev(?:Until|All))/,H={children:!0,contents:!0,next:!0,prev:!0};function O(e,t){while((e=e[t])&&1!==e.nodeType);return e}S.fn.extend({has:function(e){var t=S(e,this),n=t.length;return this.filter(function(){for(var e=0;e\x20\t\r\n\f]*)/i,he=/^$|^module$|\/(?:java|ecma)script/i;ce=E.createDocumentFragment().appendChild(E.createElement("div")),(fe=E.createElement("input")).setAttribute("type","radio"),fe.setAttribute("checked","checked"),fe.setAttribute("name","t"),ce.appendChild(fe),v.checkClone=ce.cloneNode(!0).cloneNode(!0).lastChild.checked,ce.innerHTML="",v.noCloneChecked=!!ce.cloneNode(!0).lastChild.defaultValue,ce.innerHTML="",v.option=!!ce.lastChild;var ge={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function ye(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&A(e,t)?S.merge([e],n):n}function ve(e,t){for(var n=0,r=e.length;n",""]);var me=/<|&#?\w+;/;function xe(e,t,n,r,i){for(var o,a,s,u,l,c,f=t.createDocumentFragment(),p=[],d=0,h=e.length;d\s*$/g;function je(e,t){return A(e,"table")&&A(11!==t.nodeType?t:t.firstChild,"tr")&&S(e).children("tbody")[0]||e}function De(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function qe(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Le(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if(Y.hasData(e)&&(s=Y.get(e).events))for(i in Y.remove(t,"handle events"),s)for(n=0,r=s[i].length;n").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",i=function(e){r.remove(),i=null,e&&t("error"===e.type?404:200,e.type)}),E.head.appendChild(r[0])},abort:function(){i&&i()}}});var Ut,Xt=[],Vt=/(=)\?(?=&|$)|\?\?/;S.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Xt.pop()||S.expando+"_"+Ct.guid++;return this[e]=!0,e}}),S.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,o,a=!1!==e.jsonp&&(Vt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Vt.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=m(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Vt,"$1"+r):!1!==e.jsonp&&(e.url+=(Et.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||S.error(r+" was not called"),o[0]},e.dataTypes[0]="json",i=C[r],C[r]=function(){o=arguments},n.always(function(){void 0===i?S(C).removeProp(r):C[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,Xt.push(r)),o&&m(i)&&i(o[0]),o=i=void 0}),"script"}),v.createHTMLDocument=((Ut=E.implementation.createHTMLDocument("").body).innerHTML="
",2===Ut.childNodes.length),S.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(v.createHTMLDocument?((r=(t=E.implementation.createHTMLDocument("")).createElement("base")).href=E.location.href,t.head.appendChild(r)):t=E),o=!n&&[],(i=N.exec(e))?[t.createElement(i[1])]:(i=xe([e],t,o),o&&o.length&&S(o).remove(),S.merge([],i.childNodes)));var r,i,o},S.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return-1").append(S.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},S.expr.pseudos.animated=function(t){return S.grep(S.timers,function(e){return t===e.elem}).length},S.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=S.css(e,"position"),c=S(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=S.css(e,"top"),u=S.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),m(t)&&(t=t.call(e,n,S.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):c.css(f)}},S.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){S.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===S.css(r,"position"))t=r.getBoundingClientRect();else{t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;while(e&&(e===n.body||e===n.documentElement)&&"static"===S.css(e,"position"))e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=S(e).offset()).top+=S.css(e,"borderTopWidth",!0),i.left+=S.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-S.css(r,"marginTop",!0),left:t.left-i.left-S.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent;while(e&&"static"===S.css(e,"position"))e=e.offsetParent;return e||re})}}),S.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;S.fn[t]=function(e){return B(this,function(e,t,n){var r;if(x(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===n)return r?r[i]:e[t];r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):e[t]=n},t,e,arguments.length)}}),S.each(["top","left"],function(e,n){S.cssHooks[n]=_e(v.pixelPosition,function(e,t){if(t)return t=Be(e,n),Pe.test(t)?S(e).position()[n]+"px":t})}),S.each({Height:"height",Width:"width"},function(a,s){S.each({padding:"inner"+a,content:s,"":"outer"+a},function(r,o){S.fn[o]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return B(this,function(e,t,n){var r;return x(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+a],r["scroll"+a],e.body["offset"+a],r["offset"+a],r["client"+a])):void 0===n?S.css(e,t,i):S.style(e,t,n,i)},s,n?e:void 0,n)}})}),S.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){S.fn[t]=function(e){return this.on(t,e)}}),S.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),S.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){S.fn[n]=function(e,t){return 0",options:{classes:{},disabled:!1,create:null},_createWidget:function(t,e){e=x(e||this.defaultElement||this)[0],this.element=x(e),this.uuid=i++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=x(),this.hoverable=x(),this.focusable=x(),this.classesElementLookup={},e!==this&&(x.data(e,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===e&&this.destroy()}}),this.document=x(e.style?e.ownerDocument:e.document||e),this.window=x(this.document[0].defaultView||this.document[0].parentWindow)),this.options=x.widget.extend({},this.options,this._getCreateOptions(),t),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:x.noop,_create:x.noop,_init:x.noop,destroy:function(){var i=this;this._destroy(),x.each(this.classesElementLookup,function(t,e){i._removeClass(e,t)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:x.noop,widget:function(){return this.element},option:function(t,e){var i,s,n,o=t;if(0===arguments.length)return x.widget.extend({},this.options);if("string"==typeof t)if(o={},t=(i=t.split(".")).shift(),i.length){for(s=o[t]=x.widget.extend({},this.options[t]),n=0;n
"),i=e.children()[0];return x("body").append(e),t=i.offsetWidth,e.css("overflow","scroll"),t===(i=i.offsetWidth)&&(i=e[0].clientWidth),e.remove(),s=t-i},getScrollInfo:function(t){var e=t.isWindow||t.isDocument?"":t.element.css("overflow-x"),i=t.isWindow||t.isDocument?"":t.element.css("overflow-y"),e="scroll"===e||"auto"===e&&t.widthC(E(s),E(n))?o.important="horizontal":o.important="vertical",c.using.call(this,t,o)}),l.offset(x.extend(u,{using:t}))})},x.ui.position={fit:{left:function(t,e){var i=e.within,s=i.isWindow?i.scrollLeft:i.offset.left,n=i.width,o=t.left-e.collisionPosition.marginLeft,l=s-o,a=o+e.collisionWidth-n-s;e.collisionWidth>n?0n?0",delay:300,options:{icons:{submenu:"ui-icon-caret-1-e"},items:"> *",menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.lastMousePosition={x:null,y:null},this.element.uniqueId().attr({role:this.options.role,tabIndex:0}),this._addClass("ui-menu","ui-widget ui-widget-content"),this._on({"mousedown .ui-menu-item":function(t){t.preventDefault(),this._activateItem(t)},"click .ui-menu-item":function(t){var e=x(t.target),i=x(x.ui.safeActiveElement(this.document[0]));!this.mouseHandled&&e.not(".ui-state-disabled").length&&(this.select(t),t.isPropagationStopped()||(this.mouseHandled=!0),e.has(".ui-menu").length?this.expand(t):!this.element.is(":focus")&&i.closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":"_activateItem","mousemove .ui-menu-item":"_activateItem",mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(t,e){var i=this.active||this._menuItems().first();e||this.focus(t,i)},blur:function(t){this._delay(function(){x.contains(this.element[0],x.ui.safeActiveElement(this.document[0]))||this.collapseAll(t)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(t){this._closeOnDocumentClick(t)&&this.collapseAll(t,!0),this.mouseHandled=!1}})},_activateItem:function(t){var e,i;this.previousFilter||t.clientX===this.lastMousePosition.x&&t.clientY===this.lastMousePosition.y||(this.lastMousePosition={x:t.clientX,y:t.clientY},e=x(t.target).closest(".ui-menu-item"),i=x(t.currentTarget),e[0]===i[0]&&(i.is(".ui-state-active")||(this._removeClass(i.siblings().children(".ui-state-active"),null,"ui-state-active"),this.focus(t,i))))},_destroy:function(){var t=this.element.find(".ui-menu-item").removeAttr("role aria-disabled").children(".ui-menu-item-wrapper").removeUniqueId().removeAttr("tabIndex role aria-haspopup");this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeAttr("role aria-labelledby aria-expanded aria-hidden aria-disabled tabIndex").removeUniqueId().show(),t.children().each(function(){var t=x(this);t.data("ui-menu-submenu-caret")&&t.remove()})},_keydown:function(t){var e,i,s,n=!0;switch(t.keyCode){case x.ui.keyCode.PAGE_UP:this.previousPage(t);break;case x.ui.keyCode.PAGE_DOWN:this.nextPage(t);break;case x.ui.keyCode.HOME:this._move("first","first",t);break;case x.ui.keyCode.END:this._move("last","last",t);break;case x.ui.keyCode.UP:this.previous(t);break;case x.ui.keyCode.DOWN:this.next(t);break;case x.ui.keyCode.LEFT:this.collapse(t);break;case x.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(t);break;case x.ui.keyCode.ENTER:case x.ui.keyCode.SPACE:this._activate(t);break;case x.ui.keyCode.ESCAPE:this.collapse(t);break;default:e=this.previousFilter||"",s=n=!1,i=96<=t.keyCode&&t.keyCode<=105?(t.keyCode-96).toString():String.fromCharCode(t.keyCode),clearTimeout(this.filterTimer),i===e?s=!0:i=e+i,e=this._filterMenuItems(i),(e=s&&-1!==e.index(this.active.next())?this.active.nextAll(".ui-menu-item"):e).length||(i=String.fromCharCode(t.keyCode),e=this._filterMenuItems(i)),e.length?(this.focus(t,e),this.previousFilter=i,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter}n&&t.preventDefault()},_activate:function(t){this.active&&!this.active.is(".ui-state-disabled")&&(this.active.children("[aria-haspopup='true']").length?this.expand(t):this.select(t))},refresh:function(){var t,e,s=this,n=this.options.icons.submenu,i=this.element.find(this.options.menus);this._toggleClass("ui-menu-icons",null,!!this.element.find(".ui-icon").length),e=i.filter(":not(.ui-menu)").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var t=x(this),e=t.prev(),i=x("").data("ui-menu-submenu-caret",!0);s._addClass(i,"ui-menu-icon","ui-icon "+n),e.attr("aria-haspopup","true").prepend(i),t.attr("aria-labelledby",e.attr("id"))}),this._addClass(e,"ui-menu","ui-widget ui-widget-content ui-front"),(t=i.add(this.element).find(this.options.items)).not(".ui-menu-item").each(function(){var t=x(this);s._isDivider(t)&&s._addClass(t,"ui-menu-divider","ui-widget-content")}),i=(e=t.not(".ui-menu-item, .ui-menu-divider")).children().not(".ui-menu").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),this._addClass(e,"ui-menu-item")._addClass(i,"ui-menu-item-wrapper"),t.filter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!x.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(t,e){var i;"icons"===t&&(i=this.element.find(".ui-menu-icon"),this._removeClass(i,null,this.options.icons.submenu)._addClass(i,null,e.submenu)),this._super(t,e)},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",String(t)),this._toggleClass(null,"ui-state-disabled",!!t)},focus:function(t,e){var i;this.blur(t,t&&"focus"===t.type),this._scrollIntoView(e),this.active=e.first(),i=this.active.children(".ui-menu-item-wrapper"),this._addClass(i,null,"ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",i.attr("id")),i=this.active.parent().closest(".ui-menu-item").children(".ui-menu-item-wrapper"),this._addClass(i,null,"ui-state-active"),t&&"keydown"===t.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),(i=e.children(".ui-menu")).length&&t&&/^mouse/.test(t.type)&&this._startOpening(i),this.activeMenu=e.parent(),this._trigger("focus",t,{item:e})},_scrollIntoView:function(t){var e,i,s;this._hasScroll()&&(i=parseFloat(x.css(this.activeMenu[0],"borderTopWidth"))||0,s=parseFloat(x.css(this.activeMenu[0],"paddingTop"))||0,e=t.offset().top-this.activeMenu.offset().top-i-s,i=this.activeMenu.scrollTop(),s=this.activeMenu.height(),t=t.outerHeight(),e<0?this.activeMenu.scrollTop(i+e):s",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,liveRegionTimer:null,_create:function(){var i,s,n,t=this.element[0].nodeName.toLowerCase(),e="textarea"===t,t="input"===t;this.isMultiLine=e||!t&&this._isContentEditable(this.element),this.valueMethod=this.element[e||t?"val":"text"],this.isNewMenu=!0,this._addClass("ui-autocomplete-input"),this.element.attr("autocomplete","off"),this._on(this.element,{keydown:function(t){if(this.element.prop("readOnly"))s=n=i=!0;else{s=n=i=!1;var e=x.ui.keyCode;switch(t.keyCode){case e.PAGE_UP:i=!0,this._move("previousPage",t);break;case e.PAGE_DOWN:i=!0,this._move("nextPage",t);break;case e.UP:i=!0,this._keyEvent("previous",t);break;case e.DOWN:i=!0,this._keyEvent("next",t);break;case e.ENTER:this.menu.active&&(i=!0,t.preventDefault(),this.menu.select(t));break;case e.TAB:this.menu.active&&this.menu.select(t);break;case e.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(t),t.preventDefault());break;default:s=!0,this._searchTimeout(t)}}},keypress:function(t){if(i)return i=!1,void(this.isMultiLine&&!this.menu.element.is(":visible")||t.preventDefault());if(!s){var e=x.ui.keyCode;switch(t.keyCode){case e.PAGE_UP:this._move("previousPage",t);break;case e.PAGE_DOWN:this._move("nextPage",t);break;case e.UP:this._keyEvent("previous",t);break;case e.DOWN:this._keyEvent("next",t)}}},input:function(t){if(n)return n=!1,void t.preventDefault();this._searchTimeout(t)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(t){clearTimeout(this.searching),this.close(t),this._change(t)}}),this._initSource(),this.menu=x("
    ").appendTo(this._appendTo()).menu({role:null}).hide().attr({unselectable:"on"}).menu("instance"),this._addClass(this.menu.element,"ui-autocomplete","ui-front"),this._on(this.menu.element,{mousedown:function(t){t.preventDefault()},menufocus:function(t,e){var i,s;if(this.isNewMenu&&(this.isNewMenu=!1,t.originalEvent&&/^mouse/.test(t.originalEvent.type)))return this.menu.blur(),void this.document.one("mousemove",function(){x(t.target).trigger(t.originalEvent)});s=e.item.data("ui-autocomplete-item"),!1!==this._trigger("focus",t,{item:s})&&t.originalEvent&&/^key/.test(t.originalEvent.type)&&this._value(s.value),(i=e.item.attr("aria-label")||s.value)&&String.prototype.trim.call(i).length&&(clearTimeout(this.liveRegionTimer),this.liveRegionTimer=this._delay(function(){this.liveRegion.html(x("
    ").text(i))},100))},menuselect:function(t,e){var i=e.item.data("ui-autocomplete-item"),s=this.previous;this.element[0]!==x.ui.safeActiveElement(this.document[0])&&(this.element.trigger("focus"),this.previous=s,this._delay(function(){this.previous=s,this.selectedItem=i})),!1!==this._trigger("select",t,{item:i})&&this._value(i.value),this.term=this._value(),this.close(t),this.selectedItem=i}}),this.liveRegion=x("
    ",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(t,e){this._super(t,e),"source"===t&&this._initSource(),"appendTo"===t&&this.menu.element.appendTo(this._appendTo()),"disabled"===t&&e&&this.xhr&&this.xhr.abort()},_isEventTargetInWidget:function(t){var e=this.menu.element[0];return t.target===this.element[0]||t.target===e||x.contains(e,t.target)},_closeOnClickOutside:function(t){this._isEventTargetInWidget(t)||this.close()},_appendTo:function(){var t=this.options.appendTo;return t=!(t=!(t=t&&(t.jquery||t.nodeType?x(t):this.document.find(t).eq(0)))||!t[0]?this.element.closest(".ui-front, dialog"):t).length?this.document[0].body:t},_initSource:function(){var i,s,n=this;Array.isArray(this.options.source)?(i=this.options.source,this.source=function(t,e){e(x.ui.autocomplete.filter(i,t.term))}):"string"==typeof this.options.source?(s=this.options.source,this.source=function(t,e){n.xhr&&n.xhr.abort(),n.xhr=x.ajax({url:s,data:t,dataType:"json",success:function(t){e(t)},error:function(){e([])}})}):this.source=this.options.source},_searchTimeout:function(s){clearTimeout(this.searching),this.searching=this._delay(function(){var t=this.term===this._value(),e=this.menu.element.is(":visible"),i=s.altKey||s.ctrlKey||s.metaKey||s.shiftKey;t&&(e||i)||(this.selectedItem=null,this.search(null,s))},this.options.delay)},search:function(t,e){return t=null!=t?t:this._value(),this.term=this._value(),t.length").append(x("
    ").text(e.label)).appendTo(t)},_move:function(t,e){if(this.menu.element.is(":visible"))return this.menu.isFirstItem()&&/^previous/.test(t)||this.menu.isLastItem()&&/^next/.test(t)?(this.isMultiLine||this._value(this.term),void this.menu.blur()):void this.menu[t](e);this.search(null,e)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(t,e){this.isMultiLine&&!this.menu.element.is(":visible")||(this._move(t,e),e.preventDefault())},_isContentEditable:function(t){if(!t.length)return!1;var e=t.prop("contentEditable");return"inherit"===e?this._isContentEditable(t.parent()):"true"===e}}),x.extend(x.ui.autocomplete,{escapeRegex:function(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(t,e){var i=new RegExp(x.ui.autocomplete.escapeRegex(e),"i");return x.grep(t,function(t){return i.test(t.label||t.value||t)})}}),x.widget("ui.autocomplete",x.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(t){return t+(1").text(e))},100))}});x.ui.autocomplete}); \ No newline at end of file diff --git a/api/script.js b/api/script.js new file mode 100644 index 0000000..0765364 --- /dev/null +++ b/api/script.js @@ -0,0 +1,132 @@ +/* + * Copyright (c) 2013, 2020, Oracle and/or its affiliates. All rights reserved. + * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + */ + +var moduleSearchIndex; +var packageSearchIndex; +var typeSearchIndex; +var memberSearchIndex; +var tagSearchIndex; +function loadScripts(doc, tag) { + createElem(doc, tag, 'search.js'); + + createElem(doc, tag, 'module-search-index.js'); + createElem(doc, tag, 'package-search-index.js'); + createElem(doc, tag, 'type-search-index.js'); + createElem(doc, tag, 'member-search-index.js'); + createElem(doc, tag, 'tag-search-index.js'); +} + +function createElem(doc, tag, path) { + var script = doc.createElement(tag); + var scriptElement = doc.getElementsByTagName(tag)[0]; + script.src = pathtoroot + path; + scriptElement.parentNode.insertBefore(script, scriptElement); +} + +function show(tableId, selected, columns) { + if (tableId !== selected) { + document.querySelectorAll('div.' + tableId + ':not(.' + selected + ')') + .forEach(function(elem) { + elem.style.display = 'none'; + }); + } + document.querySelectorAll('div.' + selected) + .forEach(function(elem, index) { + elem.style.display = ''; + var isEvenRow = index % (columns * 2) < columns; + elem.classList.remove(isEvenRow ? oddRowColor : evenRowColor); + elem.classList.add(isEvenRow ? evenRowColor : oddRowColor); + }); + updateTabs(tableId, selected); +} + +function updateTabs(tableId, selected) { + document.querySelector('div#' + tableId +' .summary-table') + .setAttribute('aria-labelledby', selected); + document.querySelectorAll('button[id^="' + tableId + '"]') + .forEach(function(tab, index) { + if (selected === tab.id || (tableId === selected && index === 0)) { + tab.className = activeTableTab; + tab.setAttribute('aria-selected', true); + tab.setAttribute('tabindex',0); + } else { + tab.className = tableTab; + tab.setAttribute('aria-selected', false); + tab.setAttribute('tabindex',-1); + } + }); +} + +function switchTab(e) { + var selected = document.querySelector('[aria-selected=true]'); + if (selected) { + if ((e.keyCode === 37 || e.keyCode === 38) && selected.previousSibling) { + // left or up arrow key pressed: move focus to previous tab + selected.previousSibling.click(); + selected.previousSibling.focus(); + e.preventDefault(); + } else if ((e.keyCode === 39 || e.keyCode === 40) && selected.nextSibling) { + // right or down arrow key pressed: move focus to next tab + selected.nextSibling.click(); + selected.nextSibling.focus(); + e.preventDefault(); + } + } +} + +var updateSearchResults = function() {}; + +function indexFilesLoaded() { + return moduleSearchIndex + && packageSearchIndex + && typeSearchIndex + && memberSearchIndex + && tagSearchIndex; +} + +// Workaround for scroll position not being included in browser history (8249133) +document.addEventListener("DOMContentLoaded", function(e) { + var contentDiv = document.querySelector("div.flex-content"); + window.addEventListener("popstate", function(e) { + if (e.state !== null) { + contentDiv.scrollTop = e.state; + } + }); + window.addEventListener("hashchange", function(e) { + history.replaceState(contentDiv.scrollTop, document.title); + }); + contentDiv.addEventListener("scroll", function(e) { + var timeoutID; + if (!timeoutID) { + timeoutID = setTimeout(function() { + history.replaceState(contentDiv.scrollTop, document.title); + timeoutID = null; + }, 100); + } + }); + if (!location.hash) { + history.replaceState(contentDiv.scrollTop, document.title); + } +}); diff --git a/api/search.js b/api/search.js new file mode 100644 index 0000000..13aba85 --- /dev/null +++ b/api/search.js @@ -0,0 +1,354 @@ +/* + * Copyright (c) 2015, 2020, Oracle and/or its affiliates. All rights reserved. + * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + */ + +var noResult = {l: "No results found"}; +var loading = {l: "Loading search index..."}; +var catModules = "Modules"; +var catPackages = "Packages"; +var catTypes = "Classes and Interfaces"; +var catMembers = "Members"; +var catSearchTags = "Search Tags"; +var highlight = "$&"; +var searchPattern = ""; +var fallbackPattern = ""; +var RANKING_THRESHOLD = 2; +var NO_MATCH = 0xffff; +var MIN_RESULTS = 3; +var MAX_RESULTS = 500; +var UNNAMED = ""; +function escapeHtml(str) { + return str.replace(//g, ">"); +} +function getHighlightedText(item, matcher, fallbackMatcher) { + var escapedItem = escapeHtml(item); + var highlighted = escapedItem.replace(matcher, highlight); + if (highlighted === escapedItem) { + highlighted = escapedItem.replace(fallbackMatcher, highlight) + } + return highlighted; +} +function getURLPrefix(ui) { + var urlPrefix=""; + var slash = "/"; + if (ui.item.category === catModules) { + return ui.item.l + slash; + } else if (ui.item.category === catPackages && ui.item.m) { + return ui.item.m + slash; + } else if (ui.item.category === catTypes || ui.item.category === catMembers) { + if (ui.item.m) { + urlPrefix = ui.item.m + slash; + } else { + $.each(packageSearchIndex, function(index, item) { + if (item.m && ui.item.p === item.l) { + urlPrefix = item.m + slash; + } + }); + } + } + return urlPrefix; +} +function createSearchPattern(term) { + var pattern = ""; + var isWordToken = false; + term.replace(/,\s*/g, ", ").trim().split(/\s+/).forEach(function(w, index) { + if (index > 0) { + // whitespace between identifiers is significant + pattern += (isWordToken && /^\w/.test(w)) ? "\\s+" : "\\s*"; + } + var tokens = w.split(/(?=[A-Z,.()<>[\/])/); + for (var i = 0; i < tokens.length; i++) { + var s = tokens[i]; + if (s === "") { + continue; + } + pattern += $.ui.autocomplete.escapeRegex(s); + isWordToken = /\w$/.test(s); + if (isWordToken) { + pattern += "([a-z0-9_$<>\\[\\]]*?)"; + } + } + }); + return pattern; +} +function createMatcher(pattern, flags) { + var isCamelCase = /[A-Z]/.test(pattern); + return new RegExp(pattern, flags + (isCamelCase ? "" : "i")); +} +var watermark = 'Search'; +$(function() { + var search = $("#search-input"); + var reset = $("#reset-button"); + search.val(''); + search.prop("disabled", false); + reset.prop("disabled", false); + search.val(watermark).addClass('watermark'); + search.blur(function() { + if ($(this).val().length === 0) { + $(this).val(watermark).addClass('watermark'); + } + }); + search.on('click keydown paste', function() { + if ($(this).val() === watermark) { + $(this).val('').removeClass('watermark'); + } + }); + reset.click(function() { + search.val('').focus(); + }); + search.focus()[0].setSelectionRange(0, 0); +}); +$.widget("custom.catcomplete", $.ui.autocomplete, { + _create: function() { + this._super(); + this.widget().menu("option", "items", "> :not(.ui-autocomplete-category)"); + }, + _renderMenu: function(ul, items) { + var rMenu = this; + var currentCategory = ""; + rMenu.menu.bindings = $(); + $.each(items, function(index, item) { + var li; + if (item.category && item.category !== currentCategory) { + ul.append("
  • " + item.category + "
  • "); + currentCategory = item.category; + } + li = rMenu._renderItemData(ul, item); + if (item.category) { + li.attr("aria-label", item.category + " : " + item.l); + li.attr("class", "result-item"); + } else { + li.attr("aria-label", item.l); + li.attr("class", "result-item"); + } + }); + }, + _renderItem: function(ul, item) { + var label = ""; + var matcher = createMatcher(escapeHtml(searchPattern), "g"); + var fallbackMatcher = new RegExp(fallbackPattern, "gi") + if (item.category === catModules) { + label = getHighlightedText(item.l, matcher, fallbackMatcher); + } else if (item.category === catPackages) { + label = getHighlightedText(item.l, matcher, fallbackMatcher); + } else if (item.category === catTypes) { + label = (item.p && item.p !== UNNAMED) + ? getHighlightedText(item.p + "." + item.l, matcher, fallbackMatcher) + : getHighlightedText(item.l, matcher, fallbackMatcher); + } else if (item.category === catMembers) { + label = (item.p && item.p !== UNNAMED) + ? getHighlightedText(item.p + "." + item.c + "." + item.l, matcher, fallbackMatcher) + : getHighlightedText(item.c + "." + item.l, matcher, fallbackMatcher); + } else if (item.category === catSearchTags) { + label = getHighlightedText(item.l, matcher, fallbackMatcher); + } else { + label = item.l; + } + var li = $("
  • ").appendTo(ul); + var div = $("
    ").appendTo(li); + if (item.category === catSearchTags && item.h) { + if (item.d) { + div.html(label + " (" + item.h + ")
    " + + item.d + "
    "); + } else { + div.html(label + " (" + item.h + ")"); + } + } else { + if (item.m) { + div.html(item.m + "/" + label); + } else { + div.html(label); + } + } + return li; + } +}); +function rankMatch(match, category) { + if (!match) { + return NO_MATCH; + } + var index = match.index; + var input = match.input; + var leftBoundaryMatch = 2; + var periferalMatch = 0; + // make sure match is anchored on a left word boundary + if (index === 0 || /\W/.test(input[index - 1]) || "_" === input[index]) { + leftBoundaryMatch = 0; + } else if ("_" === input[index - 1] || (input[index] === input[index].toUpperCase() && !/^[A-Z0-9_$]+$/.test(input))) { + leftBoundaryMatch = 1; + } + var matchEnd = index + match[0].length; + var leftParen = input.indexOf("("); + var endOfName = leftParen > -1 ? leftParen : input.length; + // exclude peripheral matches + if (category !== catModules && category !== catSearchTags) { + var delim = category === catPackages ? "/" : "."; + if (leftParen > -1 && leftParen < index) { + periferalMatch += 2; + } else if (input.lastIndexOf(delim, endOfName) >= matchEnd) { + periferalMatch += 2; + } + } + var delta = match[0].length === endOfName ? 0 : 1; // rank full match higher than partial match + for (var i = 1; i < match.length; i++) { + // lower ranking if parts of the name are missing + if (match[i]) + delta += match[i].length; + } + if (category === catTypes) { + // lower ranking if a type name contains unmatched camel-case parts + if (/[A-Z]/.test(input.substring(matchEnd))) + delta += 5; + if (/[A-Z]/.test(input.substring(0, index))) + delta += 5; + } + return leftBoundaryMatch + periferalMatch + (delta / 200); + +} +function doSearch(request, response) { + var result = []; + searchPattern = createSearchPattern(request.term); + fallbackPattern = createSearchPattern(request.term.toLowerCase()); + if (searchPattern === "") { + return this.close(); + } + var camelCaseMatcher = createMatcher(searchPattern, ""); + var fallbackMatcher = new RegExp(fallbackPattern, "i"); + + function searchIndexWithMatcher(indexArray, matcher, category, nameFunc) { + if (indexArray) { + var newResults = []; + $.each(indexArray, function (i, item) { + item.category = category; + var ranking = rankMatch(matcher.exec(nameFunc(item)), category); + if (ranking < RANKING_THRESHOLD) { + newResults.push({ranking: ranking, item: item}); + } + return newResults.length <= MAX_RESULTS; + }); + return newResults.sort(function(e1, e2) { + return e1.ranking - e2.ranking; + }).map(function(e) { + return e.item; + }); + } + return []; + } + function searchIndex(indexArray, category, nameFunc) { + var primaryResults = searchIndexWithMatcher(indexArray, camelCaseMatcher, category, nameFunc); + result = result.concat(primaryResults); + if (primaryResults.length <= MIN_RESULTS && !camelCaseMatcher.ignoreCase) { + var secondaryResults = searchIndexWithMatcher(indexArray, fallbackMatcher, category, nameFunc); + result = result.concat(secondaryResults.filter(function (item) { + return primaryResults.indexOf(item) === -1; + })); + } + } + + searchIndex(moduleSearchIndex, catModules, function(item) { return item.l; }); + searchIndex(packageSearchIndex, catPackages, function(item) { + return (item.m && request.term.indexOf("/") > -1) + ? (item.m + "/" + item.l) : item.l; + }); + searchIndex(typeSearchIndex, catTypes, function(item) { + return request.term.indexOf(".") > -1 ? item.p + "." + item.l : item.l; + }); + searchIndex(memberSearchIndex, catMembers, function(item) { + return request.term.indexOf(".") > -1 + ? item.p + "." + item.c + "." + item.l : item.l; + }); + searchIndex(tagSearchIndex, catSearchTags, function(item) { return item.l; }); + + if (!indexFilesLoaded()) { + updateSearchResults = function() { + doSearch(request, response); + } + result.unshift(loading); + } else { + updateSearchResults = function() {}; + } + response(result); +} +$(function() { + $("#search-input").catcomplete({ + minLength: 1, + delay: 300, + source: doSearch, + response: function(event, ui) { + if (!ui.content.length) { + ui.content.push(noResult); + } else { + $("#search-input").empty(); + } + }, + autoFocus: true, + focus: function(event, ui) { + return false; + }, + position: { + collision: "flip" + }, + select: function(event, ui) { + if (ui.item.category) { + var url = getURLPrefix(ui); + if (ui.item.category === catModules) { + url += "module-summary.html"; + } else if (ui.item.category === catPackages) { + if (ui.item.u) { + url = ui.item.u; + } else { + url += ui.item.l.replace(/\./g, '/') + "/package-summary.html"; + } + } else if (ui.item.category === catTypes) { + if (ui.item.u) { + url = ui.item.u; + } else if (ui.item.p === UNNAMED) { + url += ui.item.l + ".html"; + } else { + url += ui.item.p.replace(/\./g, '/') + "/" + ui.item.l + ".html"; + } + } else if (ui.item.category === catMembers) { + if (ui.item.p === UNNAMED) { + url += ui.item.c + ".html" + "#"; + } else { + url += ui.item.p.replace(/\./g, '/') + "/" + ui.item.c + ".html" + "#"; + } + if (ui.item.u) { + url += ui.item.u; + } else { + url += ui.item.l; + } + } else if (ui.item.category === catSearchTags) { + url += ui.item.u; + } + if (top !== window) { + parent.classFrame.location = pathtoroot + url; + } else { + window.location.href = pathtoroot + url; + } + $("#search-input").focus(); + } + } + }); +}); diff --git a/api/stylesheet.css b/api/stylesheet.css new file mode 100644 index 0000000..6dc5b36 --- /dev/null +++ b/api/stylesheet.css @@ -0,0 +1,866 @@ +/* + * Javadoc style sheet + */ + +@import url('resources/fonts/dejavu.css'); + +/* + * Styles for individual HTML elements. + * + * These are styles that are specific to individual HTML elements. Changing them affects the style of a particular + * HTML element throughout the page. + */ + +body { + background-color:#ffffff; + color:#353833; + font-family:'DejaVu Sans', Arial, Helvetica, sans-serif; + font-size:14px; + margin:0; + padding:0; + height:100%; + width:100%; +} +iframe { + margin:0; + padding:0; + height:100%; + width:100%; + overflow-y:scroll; + border:none; +} +a:link, a:visited { + text-decoration:none; + color:#4A6782; +} +a[href]:hover, a[href]:focus { + text-decoration:none; + color:#bb7a2a; +} +a[name] { + color:#353833; +} +pre { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; +} +h1 { + font-size:20px; +} +h2 { + font-size:18px; +} +h3 { + font-size:16px; +} +h4 { + font-size:15px; +} +h5 { + font-size:14px; +} +h6 { + font-size:13px; +} +ul { + list-style-type:disc; +} +code, tt { + font-family:'DejaVu Sans Mono', monospace; +} +:not(h1, h2, h3, h4, h5, h6) > code, +:not(h1, h2, h3, h4, h5, h6) > tt { + font-size:14px; + padding-top:4px; + margin-top:8px; + line-height:1.4em; +} +dt code { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + padding-top:4px; +} +.summary-table dt code { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + vertical-align:top; + padding-top:4px; +} +sup { + font-size:8px; +} +button { + font-family: 'DejaVu Sans', Arial, Helvetica, sans-serif; + font-size: 14px; +} +/* + * Styles for HTML generated by javadoc. + * + * These are style classes that are used by the standard doclet to generate HTML documentation. + */ + +/* + * Styles for document title and copyright. + */ +.clear { + clear:both; + height:0; + overflow:hidden; +} +.about-language { + float:right; + padding:0 21px 8px 8px; + font-size:11px; + margin-top:-9px; + height:2.9em; +} +.legal-copy { + margin-left:.5em; +} +.tab { + background-color:#0066FF; + color:#ffffff; + padding:8px; + width:5em; + font-weight:bold; +} +/* + * Styles for navigation bar. + */ +@media screen { + .flex-box { + position:fixed; + display:flex; + flex-direction:column; + height: 100%; + width: 100%; + } + .flex-header { + flex: 0 0 auto; + } + .flex-content { + flex: 1 1 auto; + overflow-y: auto; + } +} +.top-nav { + background-color:#4D7A97; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + min-height:2.8em; + padding-top:10px; + overflow:hidden; + font-size:12px; +} +.sub-nav { + background-color:#dee3e9; + float:left; + width:100%; + overflow:hidden; + font-size:12px; +} +.sub-nav div { + clear:left; + float:left; + padding:0 0 5px 6px; + text-transform:uppercase; +} +.sub-nav .nav-list { + padding-top:5px; +} +ul.nav-list { + display:block; + margin:0 25px 0 0; + padding:0; +} +ul.sub-nav-list { + float:left; + margin:0 25px 0 0; + padding:0; +} +ul.nav-list li { + list-style:none; + float:left; + padding: 5px 6px; + text-transform:uppercase; +} +.sub-nav .nav-list-search { + float:right; + margin:0 0 0 0; + padding:5px 6px; + clear:none; +} +.nav-list-search label { + position:relative; + right:-16px; +} +ul.sub-nav-list li { + list-style:none; + float:left; + padding-top:10px; +} +.top-nav a:link, .top-nav a:active, .top-nav a:visited { + color:#FFFFFF; + text-decoration:none; + text-transform:uppercase; +} +.top-nav a:hover { + text-decoration:none; + color:#bb7a2a; + text-transform:uppercase; +} +.nav-bar-cell1-rev { + background-color:#F8981D; + color:#253441; + margin: auto 5px; +} +.skip-nav { + position:absolute; + top:auto; + left:-9999px; + overflow:hidden; +} +/* + * Hide navigation links and search box in print layout + */ +@media print { + ul.nav-list, div.sub-nav { + display:none; + } +} +/* + * Styles for page header and footer. + */ +.title { + color:#2c4557; + margin:10px 0; +} +.sub-title { + margin:5px 0 0 0; +} +.header ul { + margin:0 0 15px 0; + padding:0; +} +.header ul li, .footer ul li { + list-style:none; + font-size:13px; +} +/* + * Styles for headings. + */ +body.class-declaration-page .summary h2, +body.class-declaration-page .details h2, +body.class-use-page h2, +body.module-declaration-page .block-list h2 { + font-style: italic; + padding:0; + margin:15px 0; +} +body.class-declaration-page .summary h3, +body.class-declaration-page .details h3, +body.class-declaration-page .summary .inherited-list h2 { + background-color:#dee3e9; + border:1px solid #d0d9e0; + margin:0 0 6px -8px; + padding:7px 5px; +} +/* + * Styles for page layout containers. + */ +main { + clear:both; + padding:10px 20px; + position:relative; +} +dl.notes > dt { + font-family: 'DejaVu Sans', Arial, Helvetica, sans-serif; + font-size:12px; + font-weight:bold; + margin:10px 0 0 0; + color:#4E4E4E; +} +dl.notes > dd { + margin:5px 10px 10px 0; + font-size:14px; + font-family:'DejaVu Serif', Georgia, "Times New Roman", Times, serif; +} +dl.name-value > dt { + margin-left:1px; + font-size:1.1em; + display:inline; + font-weight:bold; +} +dl.name-value > dd { + margin:0 0 0 1px; + font-size:1.1em; + display:inline; +} +/* + * Styles for lists. + */ +li.circle { + list-style:circle; +} +ul.horizontal li { + display:inline; + font-size:0.9em; +} +div.inheritance { + margin:0; + padding:0; +} +div.inheritance div.inheritance { + margin-left:2em; +} +ul.block-list, +ul.details-list, +ul.member-list, +ul.summary-list { + margin:10px 0 10px 0; + padding:0; +} +ul.block-list > li, +ul.details-list > li, +ul.member-list > li, +ul.summary-list > li { + list-style:none; + margin-bottom:15px; + line-height:1.4; +} +.summary-table dl, .summary-table dl dt, .summary-table dl dd { + margin-top:0; + margin-bottom:1px; +} +ul.see-list, ul.see-list-long { + padding-left: 0; + list-style: none; +} +ul.see-list li { + display: inline; +} +ul.see-list li:not(:last-child):after, +ul.see-list-long li:not(:last-child):after { + content: ", "; + white-space: pre-wrap; +} +/* + * Styles for tables. + */ +.summary-table, .details-table { + width:100%; + border-spacing:0; + border-left:1px solid #EEE; + border-right:1px solid #EEE; + border-bottom:1px solid #EEE; + padding:0; +} +.caption { + position:relative; + text-align:left; + background-repeat:no-repeat; + color:#253441; + font-weight:bold; + clear:none; + overflow:hidden; + padding:0; + padding-top:10px; + padding-left:1px; + margin:0; + white-space:pre; +} +.caption a:link, .caption a:visited { + color:#1f389c; +} +.caption a:hover, +.caption a:active { + color:#FFFFFF; +} +.caption span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + padding-bottom:7px; + display:inline-block; + float:left; + background-color:#F8981D; + border: none; + height:16px; +} +div.table-tabs { + padding:10px 0 0 1px; + margin:0; +} +div.table-tabs > button { + border: none; + cursor: pointer; + padding: 5px 12px 7px 12px; + font-weight: bold; + margin-right: 3px; +} +div.table-tabs > button.active-table-tab { + background: #F8981D; + color: #253441; +} +div.table-tabs > button.table-tab { + background: #4D7A97; + color: #FFFFFF; +} +.two-column-summary { + display: grid; + grid-template-columns: minmax(15%, max-content) minmax(15%, auto); +} +.three-column-summary { + display: grid; + grid-template-columns: minmax(10%, max-content) minmax(15%, max-content) minmax(15%, auto); +} +.four-column-summary { + display: grid; + grid-template-columns: minmax(10%, max-content) minmax(10%, max-content) minmax(10%, max-content) minmax(10%, auto); +} +@media screen and (max-width: 600px) { + .two-column-summary { + display: grid; + grid-template-columns: 1fr; + } +} +@media screen and (max-width: 800px) { + .three-column-summary { + display: grid; + grid-template-columns: minmax(10%, max-content) minmax(25%, auto); + } + .three-column-summary .col-last { + grid-column-end: span 2; + } +} +@media screen and (max-width: 1000px) { + .four-column-summary { + display: grid; + grid-template-columns: minmax(15%, max-content) minmax(15%, auto); + } +} +.summary-table > div, .details-table > div { + text-align:left; + padding: 8px 3px 3px 7px; +} +.col-first, .col-second, .col-last, .col-constructor-name, .col-summary-item-name { + vertical-align:top; + padding-right:0; + padding-top:8px; + padding-bottom:3px; +} +.table-header { + background:#dee3e9; + font-weight: bold; +} +.col-first, .col-first { + font-size:13px; +} +.col-second, .col-second, .col-last, .col-constructor-name, .col-summary-item-name, .col-last { + font-size:13px; +} +.col-first, .col-second, .col-constructor-name { + vertical-align:top; + overflow: auto; +} +.col-last { + white-space:normal; +} +.col-first a:link, .col-first a:visited, +.col-second a:link, .col-second a:visited, +.col-first a:link, .col-first a:visited, +.col-second a:link, .col-second a:visited, +.col-constructor-name a:link, .col-constructor-name a:visited, +.col-summary-item-name a:link, .col-summary-item-name a:visited, +.constant-values-container a:link, .constant-values-container a:visited, +.all-classes-container a:link, .all-classes-container a:visited, +.all-packages-container a:link, .all-packages-container a:visited { + font-weight:bold; +} +.table-sub-heading-color { + background-color:#EEEEFF; +} +.even-row-color, .even-row-color .table-header { + background-color:#FFFFFF; +} +.odd-row-color, .odd-row-color .table-header { + background-color:#EEEEEF; +} +/* + * Styles for contents. + */ +.deprecated-content { + margin:0; + padding:10px 0; +} +div.block { + font-size:14px; + font-family:'DejaVu Serif', Georgia, "Times New Roman", Times, serif; +} +.col-last div { + padding-top:0; +} +.col-last a { + padding-bottom:3px; +} +.module-signature, +.package-signature, +.type-signature, +.member-signature { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + margin:14px 0; + white-space: pre-wrap; +} +.module-signature, +.package-signature, +.type-signature { + margin-top: 0; +} +.member-signature .type-parameters-long, +.member-signature .parameters, +.member-signature .exceptions { + display: inline-block; + vertical-align: top; + white-space: pre; +} +.member-signature .type-parameters { + white-space: normal; +} +/* + * Styles for formatting effect. + */ +.source-line-no { + color:green; + padding:0 30px 0 0; +} +h1.hidden { + visibility:hidden; + overflow:hidden; + font-size:10px; +} +.block { + display:block; + margin:0 10px 5px 0; + color:#474747; +} +.deprecated-label, .descfrm-type-label, .implementation-label, .member-name-label, .member-name-link, +.module-label-in-package, .module-label-in-type, .override-specify-label, .package-label-in-type, +.package-hierarchy-label, .type-name-label, .type-name-link, .search-tag-link, .preview-label { + font-weight:bold; +} +.deprecation-comment, .help-footnote, .preview-comment { + font-style:italic; +} +.deprecation-block { + font-size:14px; + font-family:'DejaVu Serif', Georgia, "Times New Roman", Times, serif; + border-style:solid; + border-width:thin; + border-radius:10px; + padding:10px; + margin-bottom:10px; + margin-right:10px; + display:inline-block; +} +.preview-block { + font-size:14px; + font-family:'DejaVu Serif', Georgia, "Times New Roman", Times, serif; + border-style:solid; + border-width:thin; + border-radius:10px; + padding:10px; + margin-bottom:10px; + margin-right:10px; + display:inline-block; +} +div.block div.deprecation-comment { + font-style:normal; +} +/* + * Styles specific to HTML5 elements. + */ +main, nav, header, footer, section { + display:block; +} +/* + * Styles for javadoc search. + */ +.ui-autocomplete-category { + font-weight:bold; + font-size:15px; + padding:7px 0 7px 3px; + background-color:#4D7A97; + color:#FFFFFF; +} +.ui-autocomplete { + max-height:85%; + max-width:65%; + overflow-y:scroll; + overflow-x:scroll; + white-space:nowrap; + box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23); +} +ul.ui-autocomplete { + position:fixed; + z-index:999999; + background-color: #FFFFFF; +} +ul.ui-autocomplete li { + float:left; + clear:both; + width:100%; +} +.ui-autocomplete .result-item { + font-size: inherit; +} +.ui-autocomplete .result-highlight { + font-weight:bold; +} +#search-input { + background-image:url('resources/glass.png'); + background-size:13px; + background-repeat:no-repeat; + background-position:2px 3px; + padding-left:20px; + position:relative; + right:-18px; + width:400px; +} +#reset-button { + background-color: rgb(255,255,255); + background-image:url('resources/x.png'); + background-position:center; + background-repeat:no-repeat; + background-size:12px; + border:0 none; + width:16px; + height:16px; + position:relative; + left:-4px; + top:-4px; + font-size:0px; +} +.watermark { + color:#545454; +} +.search-tag-desc-result { + font-style:italic; + font-size:11px; +} +.search-tag-holder-result { + font-style:italic; + font-size:12px; +} +.search-tag-result:target { + background-color:yellow; +} +.module-graph span { + display:none; + position:absolute; +} +.module-graph:hover span { + display:block; + margin: -100px 0 0 100px; + z-index: 1; +} +.inherited-list { + margin: 10px 0 10px 0; +} +section.class-description { + line-height: 1.4; +} +.summary section[class$="-summary"], .details section[class$="-details"], +.class-uses .detail, .serialized-class-details { + padding: 0px 20px 5px 10px; + border: 1px solid #ededed; + background-color: #f8f8f8; +} +.inherited-list, section[class$="-details"] .detail { + padding:0 0 5px 8px; + background-color:#ffffff; + border:none; +} +.vertical-separator { + padding: 0 5px; +} +ul.help-section-list { + margin: 0; +} +ul.help-subtoc > li { + display: inline-block; + padding-right: 5px; + font-size: smaller; +} +ul.help-subtoc > li::before { + content: "\2022" ; + padding-right:2px; +} +span.help-note { + font-style: italic; +} +/* + * Indicator icon for external links. + */ +main a[href*="://"]::after { + content:""; + display:inline-block; + background-image:url('data:image/svg+xml; utf8, \ + \ + \ + '); + background-size:100% 100%; + width:7px; + height:7px; + margin-left:2px; + margin-bottom:4px; +} +main a[href*="://"]:hover::after, +main a[href*="://"]:focus::after { + background-image:url('data:image/svg+xml; utf8, \ + \ + \ + '); +} + +/* + * Styles for user-provided tables. + * + * borderless: + * No borders, vertical margins, styled caption. + * This style is provided for use with existing doc comments. + * In general, borderless tables should not be used for layout purposes. + * + * plain: + * Plain borders around table and cells, vertical margins, styled caption. + * Best for small tables or for complex tables for tables with cells that span + * rows and columns, when the "striped" style does not work well. + * + * striped: + * Borders around the table and vertical borders between cells, striped rows, + * vertical margins, styled caption. + * Best for tables that have a header row, and a body containing a series of simple rows. + */ + +table.borderless, +table.plain, +table.striped { + margin-top: 10px; + margin-bottom: 10px; +} +table.borderless > caption, +table.plain > caption, +table.striped > caption { + font-weight: bold; + font-size: smaller; +} +table.borderless th, table.borderless td, +table.plain th, table.plain td, +table.striped th, table.striped td { + padding: 2px 5px; +} +table.borderless, +table.borderless > thead > tr > th, table.borderless > tbody > tr > th, table.borderless > tr > th, +table.borderless > thead > tr > td, table.borderless > tbody > tr > td, table.borderless > tr > td { + border: none; +} +table.borderless > thead > tr, table.borderless > tbody > tr, table.borderless > tr { + background-color: transparent; +} +table.plain { + border-collapse: collapse; + border: 1px solid black; +} +table.plain > thead > tr, table.plain > tbody tr, table.plain > tr { + background-color: transparent; +} +table.plain > thead > tr > th, table.plain > tbody > tr > th, table.plain > tr > th, +table.plain > thead > tr > td, table.plain > tbody > tr > td, table.plain > tr > td { + border: 1px solid black; +} +table.striped { + border-collapse: collapse; + border: 1px solid black; +} +table.striped > thead { + background-color: #E3E3E3; +} +table.striped > thead > tr > th, table.striped > thead > tr > td { + border: 1px solid black; +} +table.striped > tbody > tr:nth-child(even) { + background-color: #EEE +} +table.striped > tbody > tr:nth-child(odd) { + background-color: #FFF +} +table.striped > tbody > tr > th, table.striped > tbody > tr > td { + border-left: 1px solid black; + border-right: 1px solid black; +} +table.striped > tbody > tr > th { + font-weight: normal; +} +/** + * Tweak font sizes and paddings for small screens. + */ +@media screen and (max-width: 1050px) { + #search-input { + width: 300px; + } +} +@media screen and (max-width: 800px) { + #search-input { + width: 200px; + } + .top-nav, + .bottom-nav { + font-size: 11px; + padding-top: 6px; + } + .sub-nav { + font-size: 11px; + } + .about-language { + padding-right: 16px; + } + ul.nav-list li, + .sub-nav .nav-list-search { + padding: 6px; + } + ul.sub-nav-list li { + padding-top: 5px; + } + main { + padding: 10px; + } + .summary section[class$="-summary"], .details section[class$="-details"], + .class-uses .detail, .serialized-class-details { + padding: 0 8px 5px 8px; + } + body { + -webkit-text-size-adjust: none; + } +} +@media screen and (max-width: 500px) { + #search-input { + width: 150px; + } + .top-nav, + .bottom-nav { + font-size: 10px; + } + .sub-nav { + font-size: 10px; + } + .about-language { + font-size: 10px; + padding-right: 12px; + } +} diff --git a/api/tag-search-index.js b/api/tag-search-index.js new file mode 100644 index 0000000..f2a440c --- /dev/null +++ b/api/tag-search-index.js @@ -0,0 +1 @@ +tagSearchIndex = [{"l":"Constant Field Values","h":"","u":"constant-values.html"}];updateSearchResults(); \ No newline at end of file diff --git a/api/team/rocket/Entities/AbstractAnimal.html b/api/team/rocket/Entities/AbstractAnimal.html new file mode 100644 index 0000000..f6d1da5 --- /dev/null +++ b/api/team/rocket/Entities/AbstractAnimal.html @@ -0,0 +1,285 @@ + + + + +AbstractAnimal + + + + + + + + + + + + + + + +
    + +
    +
    + +
    + +

    Class AbstractAnimal

    +
    +
    java.lang.Object +
    team.rocket.Entities.AbstractOrganism +
    team.rocket.Entities.AbstractAnimal
    +
    +
    +
    +
    +
    Direct Known Subclasses:
    +
    Fox, Rabbit
    +
    +
    +
    public abstract class AbstractAnimal +extends AbstractOrganism
    +
    +
    Since:
    +
    0.1.0
    +
    Version:
    +
    0.6.0
    +
    +
    +
    + +
    +
    +
      + +
    • +
      +

      Constructor Details

      +
        +
      • +
        +

        AbstractAnimal

        +
        public AbstractAnimal()
        +
        +
      • +
      +
      +
    • + +
    • +
      +

      Method Details

      +
        +
      • +
        +

        toIcon

        +
        public static char toIcon()
        +
        +
        Returns:
        +
        Animal's icon as a character
        +
        +
        +
      • +
      • +
        +

        getCount

        +
        public static int getCount()
        +
        +
        Returns:
        +
        current Animal count
        +
        +
        +
      • +
      • +
        +

        resetMove

        +
        public void resetMove()
        +
        Resets hasMoved to false, meant to be used to reset movement each day
        +
        +
      • +
      • +
        +

        reproduce

        +
        public abstract void reproduce()
        +
        Creates new Animal
        +
        +
      • +
      • +
        +

        availableMovementSpace

        +
        public abstract Direction availableMovementSpace(AbstractOrganism[] neighbors)
        +
        Takes array of an Animal's neighbors, randomly chooses an available space, and returns corresponding direction
        +
        +
        Parameters:
        +
        neighbors - array of animals in adjacent tiles, 0-3 representing UP, DOWN, LEFT, or RIGHT respectively
        +
        Returns:
        +
        randomly determined direction based on available spaces
        +
        +
        +
      • +
      • +
        +

        move

        +
        public abstract void move(Map map, + int y, + int x)
        +
        Moves Animal in grid based on current position, available movement space, and past movement
        +
        +
        Parameters:
        +
        map - map of simulation
        +
        y - - y position of Rabbit in grid
        +
        x - - x position of Rabbit in grid
        +
        +
        +
      • +
      • +
        +

        getNutrition

        +
        public abstract int getNutrition()
        +
        +
        Specified by:
        +
        getNutrition in class AbstractOrganism
        +
        Returns:
        +
        nutrition
        +
        +
        +
      • +
      • +
        +

        getVision

        +
        public static int getVision()
        +
        Gets the vision of the organism, representing how far it can 'see'
        +
        +
        Returns:
        +
        the vision value of the organism
        +
        +
        +
      • +
      +
      +
    • +
    +
    + +
    +
    +
    + + diff --git a/api/team/rocket/Entities/AbstractOrganism.html b/api/team/rocket/Entities/AbstractOrganism.html new file mode 100644 index 0000000..0e278d1 --- /dev/null +++ b/api/team/rocket/Entities/AbstractOrganism.html @@ -0,0 +1,258 @@ + + + + +AbstractOrganism + + + + + + + + + + + + + + + +
    + +
    +
    + +
    + +

    Class AbstractOrganism

    +
    +
    java.lang.Object +
    team.rocket.Entities.AbstractOrganism
    +
    +
    +
    +
    Direct Known Subclasses:
    +
    AbstractAnimal, AbstractPlant
    +
    +
    +
    public abstract class AbstractOrganism +extends Object
    +
    +
    Since:
    +
    0.1.0
    +
    Version:
    +
    0.4.0
    +
    +
    +
    + +
    +
    +
      + +
    • +
      +

      Constructor Details

      +
        +
      • +
        +

        AbstractOrganism

        +
        public AbstractOrganism()
        +
        +
      • +
      +
      +
    • + +
    • +
      +

      Method Details

      +
        +
      • +
        +

        toIcon

        +
        public static char toIcon()
        +
        +
        Returns:
        +
        Organism's icon as a character
        +
        +
        +
      • +
      • +
        +

        instancedToIcon

        +
        public abstract char instancedToIcon()
        +
        gets the icon from an instance
        +
        +
        Returns:
        +
        the icon of the organism
        +
        +
        +
      • +
      • +
        +

        getCount

        +
        public static int getCount()
        +
        +
        Returns:
        +
        current Organism count
        +
        +
        +
      • +
      • +
        +

        setCount

        +
        public abstract void setCount(int i)
        +
        Sets the count of animals
        +
        +
        Parameters:
        +
        i - the number count is being set too
        +
        +
        +
      • +
      • +
        +

        reduceCount

        +
        public abstract void reduceCount()
        +
        Needed for very specific instance with OrganismEnum so that the instance in the enum doesn't count towards the total number of Organisms
        +
        +
      • +
      • +
        +

        getNewObjectFromExistingObject

        +
        public abstract AbstractOrganism getNewObjectFromExistingObject()
        +
        Takes the instance of an object and creates a brand new one and returns that new object
        +
        +
        Returns:
        +
        a fresh new not-copied AbstractOrganism
        +
        +
        +
      • +
      • +
        +

        getNutrition

        +
        public abstract int getNutrition()
        +
        +
        Returns:
        +
        nutrition
        +
        +
        +
      • +
      +
      +
    • +
    +
    + +
    +
    +
    + + diff --git a/api/team/rocket/Entities/AbstractPlant.html b/api/team/rocket/Entities/AbstractPlant.html new file mode 100644 index 0000000..a5d3aee --- /dev/null +++ b/api/team/rocket/Entities/AbstractPlant.html @@ -0,0 +1,309 @@ + + + + +AbstractPlant + + + + + + + + + + + + + + + +
    + +
    +
    + +
    + +

    Class AbstractPlant

    +
    +
    java.lang.Object +
    team.rocket.Entities.AbstractOrganism +
    team.rocket.Entities.AbstractPlant
    +
    +
    +
    +
    +
    Direct Known Subclasses:
    +
    Carrot, Grass
    +
    +
    +
    public abstract class AbstractPlant +extends AbstractOrganism
    +
    +
    Since:
    +
    0.3.0
    +
    Version:
    +
    0.4.0
    +
    +
    +
    + +
    +
    +
      + +
    • +
      +

      Constructor Details

      +
        +
      • +
        +

        AbstractPlant

        +
        public AbstractPlant()
        +
        +
      • +
      +
      +
    • + +
    • +
      +

      Method Details

      +
        +
      • +
        +

        toIcon

        +
        public static char toIcon()
        +
        +
        Returns:
        +
        Plant's icon as a character
        +
        +
        +
      • +
      • +
        +

        instancedToIcon

        +
        public char instancedToIcon()
        +
        gets the icon from an instance
        +
        +
        Specified by:
        +
        instancedToIcon in class AbstractOrganism
        +
        Returns:
        +
        the icon of the organism
        +
        +
        +
      • +
      • +
        +

        getCount

        +
        public static int getCount()
        +
        +
        Returns:
        +
        current Plant count
        +
        +
        +
      • +
      • +
        +

        setCount

        +
        public abstract void setCount(int i)
        +
        Sets the count of Plants
        +
        +
        Specified by:
        +
        setCount in class AbstractOrganism
        +
        Parameters:
        +
        i - the number count is being set too
        +
        +
        +
      • +
      • +
        +

        reduceCount

        +
        public abstract void reduceCount()
        +
        Needed for very specific instance with OrganismEnum so that the instance in the enum doesn't count towards the total number of Organisms
        +
        +
        Specified by:
        +
        reduceCount in class AbstractOrganism
        +
        +
        +
      • +
      • +
        +

        getNewObjectFromExistingObject

        +
        public abstract AbstractOrganism getNewObjectFromExistingObject()
        +
        Takes the instance of an object and creates a brand new one and returns that new object
        +
        +
        Specified by:
        +
        getNewObjectFromExistingObject in class AbstractOrganism
        +
        Returns:
        +
        a fresh new not-copied AbstractOrganism
        +
        +
        +
      • +
      • +
        +

        resetGrown

        +
        public void resetGrown()
        +
        Resets hasGrown to false, meant to be used to reset growth each day
        +
        +
      • +
      • +
        +

        grow

        +
        public abstract void grow(AbstractOrganism[][] grid, + AbstractOrganism[] neighbors, + int y, + int x)
        +
        Creates new Organism
        +
        +
        Parameters:
        +
        grid - the map of the abstractOrganisms for the simulation
        +
        neighbors - the nearby orthogonal abstractOrganisms or null in a 4-length array representing directions [up, down, left, right] respectively
        +
        x - the x position to try and create a new organism
        +
        y - the y position to try and create a new organism
        +
        +
        +
      • +
      • +
        +

        getNutrition

        +
        public abstract int getNutrition()
        +
        +
        Specified by:
        +
        getNutrition in class AbstractOrganism
        +
        Returns:
        +
        nutrition
        +
        +
        +
      • +
      +
      +
    • +
    +
    + +
    +
    +
    + + diff --git a/api/team/rocket/Entities/Carrot.html b/api/team/rocket/Entities/Carrot.html new file mode 100644 index 0000000..e09ab6b --- /dev/null +++ b/api/team/rocket/Entities/Carrot.html @@ -0,0 +1,348 @@ + + + + +Carrot + + + + + + + + + + + + + + + +
    + +
    +
    + +
    + +

    Class Carrot

    +
    + +
    +
    +
    public class Carrot +extends AbstractPlant
    +
    +
    Since:
    +
    0.5.0
    +
    Version:
    +
    0.6.0
    +
    +
    +
    +
      + +
    • +
      +

      Constructor Summary

      +
      Constructors
      +
      +
      Constructor
      +
      Description
      + +
      +
      The constructor method for creating a new Carrot object, please avoid using this and use the Organism Factory instead.
      +
      +
      +
      +
    • + +
    • +
      +

      Method Summary

      +
      +
      +
      +
      +
      Modifier and Type
      +
      Method
      +
      Description
      + + +
      +
      Takes array of a team.rocket.Entities.Rabbit's neighbors, randomly chooses an available space, and returns corresponding direction
      +
      +
      static int
      + +
       
      + + +
      +
      Takes the instance of an object and creates a brand new one and returns that new object
      +
      +
      int
      + +
       
      +
      void
      +
      grow(AbstractOrganism[][] grid, + AbstractOrganism[] neighbors, + int y, + int x)
      +
      +
      Creates new Carrot in free adjacent slot
      +
      +
      boolean
      + +
       
      +
      char
      + +
      +
      gets the icon from an instance
      +
      +
      void
      + +
      +
      Needed for very specific instance with OrganismEnum so that the instance in the enum doesn't count towards the total number of Organisms
      +
      +
      void
      + +
      +
      Resets hasGrown to false, meant to be used to reset growth each day
      +
      +
      void
      +
      setCount(int i)
      +
      +
      Sets the count of Carrot
      +
      +
      static char
      + +
       
      +
      +
      +
      +
      +

      Methods inherited from class java.lang.Object

      +clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      +
      +
    • +
    +
    +
    +
      + +
    • +
      +

      Constructor Details

      +
        +
      • +
        +

        Carrot

        +
        public Carrot()
        +
        The constructor method for creating a new Carrot object, please avoid using this and use the Organism Factory instead. + The carrot is not ready to grow.
        +
        +
      • +
      +
      +
    • + +
    • +
      +

      Method Details

      +
        +
      • +
        +

        growthStatus

        +
        public boolean growthStatus()
        +
        +
        Returns:
        +
        boolean indication if Carrot has grown this cycle
        +
        +
        +
      • +
      • +
        +

        toIcon

        +
        public static char toIcon()
        +
        +
        Returns:
        +
        Carrot's icon as a character
        +
        +
        +
      • +
      • +
        +

        instancedToIcon

        +
        public char instancedToIcon()
        +
        gets the icon from an instance
        +
        +
        Overrides:
        +
        instancedToIcon in class AbstractPlant
        +
        Returns:
        +
        the icon of the organism
        +
        +
        +
      • +
      • +
        +

        getCount

        +
        public static int getCount()
        +
        +
        Returns:
        +
        current Carrot count
        +
        +
        +
      • +
      • +
        +

        getNutrition

        +
        public int getNutrition()
        +
        +
        Specified by:
        +
        getNutrition in class AbstractPlant
        +
        Returns:
        +
        Carrot nutrition
        +
        +
        +
      • +
      • +
        +

        setCount

        +
        public void setCount(int i)
        +
        Sets the count of Carrot
        +
        +
        Specified by:
        +
        setCount in class AbstractPlant
        +
        Parameters:
        +
        i - the number count is being set too
        +
        +
        +
      • +
      • +
        +

        reduceCount

        +
        public void reduceCount()
        +
        Needed for very specific instance with OrganismEnum so that the instance in the enum doesn't count towards the total number of Organisms
        +
        +
        Specified by:
        +
        reduceCount in class AbstractPlant
        +
        +
        +
      • +
      • +
        +

        getNewObjectFromExistingObject

        +
        public AbstractOrganism getNewObjectFromExistingObject()
        +
        Takes the instance of an object and creates a brand new one and returns that new object
        +
        +
        Specified by:
        +
        getNewObjectFromExistingObject in class AbstractPlant
        +
        Returns:
        +
        a fresh new not-copied AbstractOrganism
        +
        +
        +
      • +
      • +
        +

        resetGrown

        +
        public void resetGrown()
        +
        Resets hasGrown to false, meant to be used to reset growth each day
        +
        +
        Overrides:
        +
        resetGrown in class AbstractPlant
        +
        +
        +
      • +
      • +
        +

        availableSpace

        +
        public Direction availableSpace(AbstractOrganism[] neighbors)
        +
        Takes array of a team.rocket.Entities.Rabbit's neighbors, randomly chooses an available space, and returns corresponding direction
        +
        +
        Parameters:
        +
        neighbors - array of animals in adjacent tiles, 0-3 representing UP, DOWN, LEFT, or RIGHT respectively
        +
        Returns:
        +
        randomly determined direction based on available spaces
        +
        +
        +
      • +
      • +
        +

        grow

        +
        public void grow(AbstractOrganism[][] grid, + AbstractOrganism[] neighbors, + int y, + int x)
        +
        Creates new Carrot in free adjacent slot
        +
        +
        Specified by:
        +
        grow in class AbstractPlant
        +
        Parameters:
        +
        grid - 2D array holding all Organisms in simulation
        +
        neighbors - array of animals in adjacent tiles, 0-3 representing UP, DOWN, LEFT, or RIGHT respectively
        +
        y - - y position of Carrot in grid
        +
        x - - x position of Carrot in grid
        +
        +
        +
      • +
      +
      +
    • +
    +
    + +
    +
    +
    + + diff --git a/api/team/rocket/Entities/Fox.html b/api/team/rocket/Entities/Fox.html new file mode 100644 index 0000000..b05f2f6 --- /dev/null +++ b/api/team/rocket/Entities/Fox.html @@ -0,0 +1,464 @@ + + + + +Fox + + + + + + + + + + + + + + + +
    + +
    +
    + +
    + +

    Class Fox

    +
    + +
    +
    +
    public class Fox +extends AbstractAnimal
    +
    +
    Since:
    +
    0.4.0
    +
    Version:
    +
    0.6.0
    +
    +
    +
    +
      + +
    • +
      +

      Constructor Summary

      +
      Constructors
      +
      +
      Constructor
      +
      Description
      +
      Fox()
      +
      +
      The constructor method for creating a new Fox object, please avoid using this and use the Organism Factory instead.
      +
      +
      +
      +
    • + +
    • +
      +

      Method Summary

      +
      +
      +
      +
      +
      Modifier and Type
      +
      Method
      +
      Description
      + + +
      +
      Takes array of a team.rocket.Entities.Fox's neighbors, randomly chooses an available space, and returns corresponding direction
      +
      +
      void
      + +
      +
      Creates new Fox
      +
      +
      void
      +
      eat(Map map, + int row, + int column)
      +
      +
      eats the organism positioned at {row, column}
      +
      + +
      findNeighbors(Map map, + int y, + int x)
      +
      +
      Gets the neighbors of an organisms position
      +
      +
      static int
      + +
       
      +
      int
      + +
       
      + + +
      +
      Takes the instance of an object and creates a brand new one and returns that new object
      +
      +
      int
      + +
       
      +
      static int
      + +
      +
      Gets the vision value of the Fox, representing how far it can 'see'
      +
      +
      char
      + +
      +
      gets the icon from an instance
      +
      +
      void
      +
      move(Map map, + int y, + int x)
      +
      +
      Moves Fox in grid based on current position, available movement space, and past movement
      +
      +
      void
      + +
      +
      Needed for very specific instance with OrganismEnum so that the instance in the enum doesn't count towards the total number of Organisms
      +
      +
      void
      + +
      +
      decreases Fox's hunger meter
      +
      +
      void
      + +
      +
      Creates new Animal
      +
      +
      void
      + +
      +
      Resets hasBred to false, meant to be used to reset breeding each day
      +
      +
      void
      + +
      +
      Resets hasMoved to false, meant to be used to reset movement each day
      +
      +
      void
      +
      setCount(int i)
      +
      +
      Sets the count of animals
      +
      +
      static char
      + +
       
      +
      +
      +
      +
      +

      Methods inherited from class java.lang.Object

      +clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      +
      +
    • +
    +
    +
    +
      + +
    • +
      +

      Constructor Details

      +
        +
      • +
        +

        Fox

        +
        public Fox()
        +
        The constructor method for creating a new Fox object, please avoid using this and use the Organism Factory instead.
        +
        +
      • +
      +
      +
    • + +
    • +
      +

      Method Details

      +
        +
      • +
        +

        instancedToIcon

        +
        public char instancedToIcon()
        +
        gets the icon from an instance
        +
        +
        Specified by:
        +
        instancedToIcon in class AbstractOrganism
        +
        Returns:
        +
        the icon of the organism
        +
        +
        +
      • +
      • +
        +

        toIcon

        +
        public static char toIcon()
        +
        +
        Returns:
        +
        team.rocket.Entities.Fox's icon as a character
        +
        +
        +
      • +
      • +
        +

        getCount

        +
        public static int getCount()
        +
        +
        Returns:
        +
        current Fox count
        +
        +
        +
      • +
      • +
        +

        getHunger

        +
        public int getHunger()
        +
        +
        Returns:
        +
        Fox's current hunger
        +
        +
        +
      • +
      • +
        +

        getNutrition

        +
        public int getNutrition()
        +
        +
        Specified by:
        +
        getNutrition in class AbstractAnimal
        +
        Returns:
        +
        Fox nutrition
        +
        +
        +
      • +
      • +
        +

        reduceHunger

        +
        public void reduceHunger()
        +
        decreases Fox's hunger meter
        +
        +
      • +
      • +
        +

        setCount

        +
        public void setCount(int i)
        +
        Description copied from class: AbstractOrganism
        +
        Sets the count of animals
        +
        +
        Specified by:
        +
        setCount in class AbstractOrganism
        +
        Parameters:
        +
        i - the number count is being set too
        +
        +
        +
      • +
      • +
        +

        reduceCount

        +
        public void reduceCount()
        +
        Description copied from class: AbstractOrganism
        +
        Needed for very specific instance with OrganismEnum so that the instance in the enum doesn't count towards the total number of Organisms
        +
        +
        Specified by:
        +
        reduceCount in class AbstractOrganism
        +
        +
        +
      • +
      • +
        +

        getNewObjectFromExistingObject

        +
        public AbstractOrganism getNewObjectFromExistingObject()
        +
        Description copied from class: AbstractOrganism
        +
        Takes the instance of an object and creates a brand new one and returns that new object
        +
        +
        Specified by:
        +
        getNewObjectFromExistingObject in class AbstractOrganism
        +
        Returns:
        +
        a fresh new not-copied AbstractOrganism
        +
        +
        +
      • +
      • +
        +

        breed

        +
        public void breed()
        +
        Creates new Fox
        +
        +
      • +
      • +
        +

        resetMove

        +
        public void resetMove()
        +
        Resets hasMoved to false, meant to be used to reset movement each day
        +
        +
        Overrides:
        +
        resetMove in class AbstractAnimal
        +
        +
        +
      • +
      • +
        +

        reproduce

        +
        public void reproduce()
        +
        Description copied from class: AbstractAnimal
        +
        Creates new Animal
        +
        +
        Specified by:
        +
        reproduce in class AbstractAnimal
        +
        +
        +
      • +
      • +
        +

        resetBreeding

        +
        public void resetBreeding()
        +
        Resets hasBred to false, meant to be used to reset breeding each day
        +
        +
      • +
      • +
        +

        availableMovementSpace

        +
        public Direction availableMovementSpace(AbstractOrganism[] neighbors)
        +
        Takes array of a team.rocket.Entities.Fox's neighbors, randomly chooses an available space, and returns corresponding direction
        +
        +
        Specified by:
        +
        availableMovementSpace in class AbstractAnimal
        +
        Parameters:
        +
        neighbors - array of organisms in adjacent tiles, 0-3 representing UP, DOWN, LEFT, or RIGHT respectively
        +
        Returns:
        +
        randomly determined direction based on available spaces
        +
        +
        +
      • +
      • +
        +

        move

        +
        public void move(Map map, + int y, + int x)
        +
        Moves Fox in grid based on current position, available movement space, and past movement
        +
        +
        Specified by:
        +
        move in class AbstractAnimal
        +
        Parameters:
        +
        map - map of simulation
        +
        y - - y position of Fox in grid
        +
        x - - x position of Fox in grid
        +
        +
        +
      • +
      • +
        +

        getVision

        +
        public static int getVision()
        +
        Gets the vision value of the Fox, representing how far it can 'see'
        +
        +
        Returns:
        +
        the int representing vision distance
        +
        +
        +
      • +
      • +
        +

        eat

        +
        public void eat(Map map, + int row, + int column)
        +
        eats the organism positioned at {row, column}
        +
        +
        Parameters:
        +
        map - the map of the simulation
        +
        row - the row of the organism to be eaten
        +
        column - the column of the organism to be eaten
        +
        +
        +
      • +
      • +
        +

        findNeighbors

        +
        public AbstractOrganism[] findNeighbors(Map map, + int y, + int x)
        +
        Gets the neighbors of an organisms position
        +
        +
        Parameters:
        +
        map - the map to check
        +
        y - the y position to check
        +
        x - the x position to check
        +
        Returns:
        +
        an array of AbstractOrganisms that represents the neighbors in the order {up, down, left, right}
        +
        +
        +
      • +
      +
      +
    • +
    +
    + +
    +
    +
    + + diff --git a/api/team/rocket/Entities/Grass.html b/api/team/rocket/Entities/Grass.html new file mode 100644 index 0000000..4860161 --- /dev/null +++ b/api/team/rocket/Entities/Grass.html @@ -0,0 +1,348 @@ + + + + +Grass + + + + + + + + + + + + + + + +
    + +
    +
    + +
    + +

    Class Grass

    +
    + +
    +
    +
    public class Grass +extends AbstractPlant
    +
    +
    Since:
    +
    0.3.0
    +
    Version:
    +
    0.6.0
    +
    +
    +
    +
      + +
    • +
      +

      Constructor Summary

      +
      Constructors
      +
      +
      Constructor
      +
      Description
      + +
      +
      The constructor method for creating a new Grass object, please avoid using this and use the Organism Factory instead.
      +
      +
      +
      +
    • + +
    • +
      +

      Method Summary

      +
      +
      +
      +
      +
      Modifier and Type
      +
      Method
      +
      Description
      + + +
      +
      Takes array of a team.rocket.Entities.Rabbit's neighbors, randomly chooses an available space, and returns corresponding direction
      +
      +
      static int
      + +
       
      + + +
      +
      Takes the instance of an object and creates a brand new one and returns that new object
      +
      +
      int
      + +
       
      +
      void
      +
      grow(AbstractOrganism[][] grid, + AbstractOrganism[] neighbors, + int y, + int x)
      +
      +
      Creates new Grass in free adjacent slot
      +
      +
      boolean
      + +
       
      +
      char
      + +
      +
      gets the icon from an instance
      +
      +
      void
      + +
      +
      Needed for very specific instance with OrganismEnum so that the instance in the enum doesn't count towards the total number of Organisms
      +
      +
      void
      + +
      +
      Resets hasGrown to false, meant to be used to reset growth each day
      +
      +
      void
      +
      setCount(int i)
      +
      +
      Sets the count of Grass
      +
      +
      static char
      + +
       
      +
      +
      +
      +
      +

      Methods inherited from class java.lang.Object

      +clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      +
      +
    • +
    +
    +
    +
      + +
    • +
      +

      Constructor Details

      +
        +
      • +
        +

        Grass

        +
        public Grass()
        +
        The constructor method for creating a new Grass object, please avoid using this and use the Organism Factory instead. + The grass is not ready to grow.
        +
        +
      • +
      +
      +
    • + +
    • +
      +

      Method Details

      +
        +
      • +
        +

        growthStatus

        +
        public boolean growthStatus()
        +
        +
        Returns:
        +
        boolean indication if grass has grown this cycle
        +
        +
        +
      • +
      • +
        +

        toIcon

        +
        public static char toIcon()
        +
        +
        Returns:
        +
        Grass's icon as a character
        +
        +
        +
      • +
      • +
        +

        instancedToIcon

        +
        public char instancedToIcon()
        +
        gets the icon from an instance
        +
        +
        Overrides:
        +
        instancedToIcon in class AbstractPlant
        +
        Returns:
        +
        the icon of the organism
        +
        +
        +
      • +
      • +
        +

        getCount

        +
        public static int getCount()
        +
        +
        Returns:
        +
        current Grass count
        +
        +
        +
      • +
      • +
        +

        getNutrition

        +
        public int getNutrition()
        +
        +
        Specified by:
        +
        getNutrition in class AbstractPlant
        +
        Returns:
        +
        Grass nutrition
        +
        +
        +
      • +
      • +
        +

        setCount

        +
        public void setCount(int i)
        +
        Sets the count of Grass
        +
        +
        Specified by:
        +
        setCount in class AbstractPlant
        +
        Parameters:
        +
        i - the number count is being set too
        +
        +
        +
      • +
      • +
        +

        reduceCount

        +
        public void reduceCount()
        +
        Needed for very specific instance with OrganismEnum so that the instance in the enum doesn't count towards the total number of Organisms
        +
        +
        Specified by:
        +
        reduceCount in class AbstractPlant
        +
        +
        +
      • +
      • +
        +

        getNewObjectFromExistingObject

        +
        public AbstractOrganism getNewObjectFromExistingObject()
        +
        Takes the instance of an object and creates a brand new one and returns that new object
        +
        +
        Specified by:
        +
        getNewObjectFromExistingObject in class AbstractPlant
        +
        Returns:
        +
        a fresh new not-copied AbstractOrganism
        +
        +
        +
      • +
      • +
        +

        resetGrown

        +
        public void resetGrown()
        +
        Resets hasGrown to false, meant to be used to reset growth each day
        +
        +
        Overrides:
        +
        resetGrown in class AbstractPlant
        +
        +
        +
      • +
      • +
        +

        availableSpace

        +
        public Direction availableSpace(AbstractOrganism[] neighbors)
        +
        Takes array of a team.rocket.Entities.Rabbit's neighbors, randomly chooses an available space, and returns corresponding direction
        +
        +
        Parameters:
        +
        neighbors - array of animals in adjacent tiles, 0-3 representing UP, DOWN, LEFT, or RIGHT respectively
        +
        Returns:
        +
        randomly determined direction based on available spaces
        +
        +
        +
      • +
      • +
        +

        grow

        +
        public void grow(AbstractOrganism[][] grid, + AbstractOrganism[] neighbors, + int y, + int x)
        +
        Creates new Grass in free adjacent slot
        +
        +
        Specified by:
        +
        grow in class AbstractPlant
        +
        Parameters:
        +
        grid - 2D array holding all Organisms in simulation
        +
        neighbors - array of animals in adjacent tiles, 0-3 representing UP, DOWN, LEFT, or RIGHT respectively
        +
        y - - y position of Grass in grid
        +
        x - - x position of Grass in grid
        +
        +
        +
      • +
      +
      +
    • +
    +
    + +
    +
    +
    + + diff --git a/api/team/rocket/Entities/OrganismFactory.html b/api/team/rocket/Entities/OrganismFactory.html new file mode 100644 index 0000000..02a390b --- /dev/null +++ b/api/team/rocket/Entities/OrganismFactory.html @@ -0,0 +1,185 @@ + + + + +OrganismFactory + + + + + + + + + + + + + + + +
    + +
    +
    + +
    + +

    Class OrganismFactory

    +
    +
    java.lang.Object +
    team.rocket.Entities.OrganismFactory
    +
    +
    +
    +
    public class OrganismFactory +extends Object
    +
    Imitating Singleton + Creates new objects of organisms after they've been registered
    +
    +
    Since:
    +
    0.3.0
    +
    Version:
    +
    0.3.0
    +
    +
    +
    + +
    +
    +
      + +
    • +
      +

      Method Details

      +
        +
      • +
        +

        getInstance

        +
        public static OrganismFactory getInstance()
        +
        Singleton creator
        +
        +
        Returns:
        +
        The single instance of the factory
        +
        +
        +
      • +
      • +
        +

        registerOrganism

        +
        public void registerOrganism(String OrganismName, + AbstractOrganism organism)
        +
        Registers an organism to the internal Hashmap + reduces organism count to 0
        +
        +
        Parameters:
        +
        OrganismName - String name of the organism
        +
        organism - A new object of the organism
        +
        +
        +
      • +
      • +
        +

        createOrganism

        +
        public AbstractOrganism createOrganism(String OrganismName)
        +
        Creates a new instance of the organism with the id
        +
        +
        Parameters:
        +
        OrganismName - Organism to get the instance of
        +
        Returns:
        +
        null if organism doesn't exist/wasn't registered, otherwise an object of AbstractOrganism type
        +
        +
        +
      • +
      +
      +
    • +
    +
    + +
    +
    +
    + + diff --git a/api/team/rocket/Entities/Rabbit.html b/api/team/rocket/Entities/Rabbit.html new file mode 100644 index 0000000..f0bd226 --- /dev/null +++ b/api/team/rocket/Entities/Rabbit.html @@ -0,0 +1,455 @@ + + + + +Rabbit + + + + + + + + + + + + + + + +
    + +
    +
    + +
    + +

    Class Rabbit

    +
    + +
    +
    +
    public class Rabbit +extends AbstractAnimal
    +
    +
    Since:
    +
    0.1.0
    +
    Version:
    +
    0.6.0
    +
    +
    +
    +
      + +
    • +
      +

      Constructor Summary

      +
      Constructors
      +
      +
      Constructor
      +
      Description
      + +
      +
      The constructor method for creating a new Rabbit object, please avoid using this and use the Organism Factory instead.
      +
      +
      +
      +
    • + +
    • +
      +

      Method Summary

      +
      +
      +
      +
      +
      Modifier and Type
      +
      Method
      +
      Description
      + + +
      +
      Takes array of a team.rocket.Entities.Rabbit's neighbors, randomly chooses an available space, and returns corresponding direction
      +
      +
      void
      +
      eat(Map map, + int row, + int column)
      +
      +
      Gets the rabbit to eat the carrot or grass at position (column, row)
      +
      + +
      findNeighbors(Map map, + int y, + int x)
      +
      +
      Finds the neighbors of the Rabbit
      +
      +
      static int
      + +
       
      +
      int
      + +
       
      + + +
      +
      Takes the instance of an object and creates a brand new one and returns that new object
      +
      +
      int
      + +
       
      +
      static int
      + +
      +
      return the vision value
      +
      +
      char
      + +
      +
      gets the icon from an instance
      +
      +
      boolean
      + +
      +
      Is the rabbit starving?
      +
      +
      void
      +
      move(Map map, + int y, + int x)
      +
      +
      Moves Rabbit in grid based on current position, available movement space, and past movement
      +
      +
      void
      + +
      +
      Needed for very specific instance with OrganismEnum so that the instance in the enum doesn't count towards the total number of Organisms
      +
      +
      void
      + +
      +
      decreases Rabbit's hunger meter
      +
      +
      void
      + +
      +
      Creates new Rabbit
      +
      +
      void
      + +
      +
      Resets hasMoved to false, meant to be used to reset movement each day
      +
      +
      void
      +
      setCount(int i)
      +
      +
      Sets the count of animals
      +
      +
      static char
      + +
       
      +
      +
      +
      +
      +

      Methods inherited from class java.lang.Object

      +clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      +
      +
    • +
    +
    +
    +
      + +
    • +
      +

      Constructor Details

      +
        +
      • +
        +

        Rabbit

        +
        public Rabbit()
        +
        The constructor method for creating a new Rabbit object, please avoid using this and use the Organism Factory instead.
        +
        +
      • +
      +
      +
    • + +
    • +
      +

      Method Details

      +
        +
      • +
        +

        toIcon

        +
        public static char toIcon()
        +
        +
        Returns:
        +
        team.rocket.Entities.Rabbit's icon as a character
        +
        +
        +
      • +
      • +
        +

        instancedToIcon

        +
        public char instancedToIcon()
        +
        gets the icon from an instance
        +
        +
        Specified by:
        +
        instancedToIcon in class AbstractOrganism
        +
        Returns:
        +
        the icon of the organism
        +
        +
        +
      • +
      • +
        +

        getCount

        +
        public static int getCount()
        +
        +
        Returns:
        +
        current Rabbit count
        +
        +
        +
      • +
      • +
        +

        setCount

        +
        public void setCount(int i)
        +
        Description copied from class: AbstractOrganism
        +
        Sets the count of animals
        +
        +
        Specified by:
        +
        setCount in class AbstractOrganism
        +
        Parameters:
        +
        i - the number count is being set too
        +
        +
        +
      • +
      • +
        +

        getNutrition

        +
        public int getNutrition()
        +
        +
        Specified by:
        +
        getNutrition in class AbstractAnimal
        +
        Returns:
        +
        Rabbit nutrition
        +
        +
        +
      • +
      • +
        +

        reduceHunger

        +
        public void reduceHunger()
        +
        decreases Rabbit's hunger meter
        +
        +
      • +
      • +
        +

        getHunger

        +
        public int getHunger()
        +
        +
        Returns:
        +
        Rabbit's current hunger
        +
        +
        +
      • +
      • +
        +

        reduceCount

        +
        public void reduceCount()
        +
        Description copied from class: AbstractOrganism
        +
        Needed for very specific instance with OrganismEnum so that the instance in the enum doesn't count towards the total number of Organisms
        +
        +
        Specified by:
        +
        reduceCount in class AbstractOrganism
        +
        +
        +
      • +
      • +
        +

        getNewObjectFromExistingObject

        +
        public AbstractOrganism getNewObjectFromExistingObject()
        +
        Description copied from class: AbstractOrganism
        +
        Takes the instance of an object and creates a brand new one and returns that new object
        +
        +
        Specified by:
        +
        getNewObjectFromExistingObject in class AbstractOrganism
        +
        Returns:
        +
        a fresh new not-copied AbstractOrganism
        +
        +
        +
      • +
      • +
        +

        reproduce

        +
        public void reproduce()
        +
        Creates new Rabbit
        +
        +
        Specified by:
        +
        reproduce in class AbstractAnimal
        +
        +
        +
      • +
      • +
        +

        resetMove

        +
        public void resetMove()
        +
        Resets hasMoved to false, meant to be used to reset movement each day
        +
        +
        Overrides:
        +
        resetMove in class AbstractAnimal
        +
        +
        +
      • +
      • +
        +

        availableMovementSpace

        +
        public Direction availableMovementSpace(AbstractOrganism[] neighbors)
        +
        Takes array of a team.rocket.Entities.Rabbit's neighbors, randomly chooses an available space, and returns corresponding direction
        +
        +
        Specified by:
        +
        availableMovementSpace in class AbstractAnimal
        +
        Parameters:
        +
        neighbors - array of animals in adjacent tiles, 0-3 representing UP, DOWN, LEFT, or RIGHT respectively
        +
        Returns:
        +
        randomly determined direction based on available spaces
        +
        +
        +
      • +
      • +
        +

        move

        +
        public void move(Map map, + int y, + int x)
        +
        Moves Rabbit in grid based on current position, available movement space, and past movement
        +
        +
        Specified by:
        +
        move in class AbstractAnimal
        +
        Parameters:
        +
        map - map of simulation
        +
        y - - y position of Rabbit in grid
        +
        x - - x position of Rabbit in grid
        +
        +
        +
      • +
      • +
        +

        isStarving

        +
        public boolean isStarving()
        +
        Is the rabbit starving?
        +
        +
        Returns:
        +
        true if hunger less than deathFood value
        +
        +
        +
      • +
      • +
        +

        eat

        +
        public void eat(Map map, + int row, + int column)
        +
        Gets the rabbit to eat the carrot or grass at position (column, row)
        +
        +
        Parameters:
        +
        map - the map to check
        +
        row - the row of the organism
        +
        column - the column of the organism
        +
        +
        +
      • +
      • +
        +

        findNeighbors

        +
        public AbstractOrganism[] findNeighbors(Map map, + int y, + int x)
        +
        Finds the neighbors of the Rabbit
        +
        +
        Parameters:
        +
        map - the map to check
        +
        y - the y position to check for neighbors
        +
        x - the x position to check for neighbors
        +
        Returns:
        +
        an array of abstractorganisms representing directions {up, down, left, right}
        +
        +
        +
      • +
      • +
        +

        getVision

        +
        public static int getVision()
        +
        return the vision value
        +
        +
        Returns:
        +
        vision integer
        +
        +
        +
      • +
      +
      +
    • +
    +
    + +
    +
    +
    + + diff --git a/api/team/rocket/Entities/package-summary.html b/api/team/rocket/Entities/package-summary.html new file mode 100644 index 0000000..8b1514d --- /dev/null +++ b/api/team/rocket/Entities/package-summary.html @@ -0,0 +1,116 @@ + + + + +team.rocket.Entities + + + + + + + + + + + + + + + +
    + +
    +
    +
    +

    Package team.rocket.Entities

    +
    +
    +
    package team.rocket.Entities
    +
    + +
    +
    +
    +
    + + diff --git a/api/team/rocket/Entities/package-tree.html b/api/team/rocket/Entities/package-tree.html new file mode 100644 index 0000000..a04010e --- /dev/null +++ b/api/team/rocket/Entities/package-tree.html @@ -0,0 +1,87 @@ + + + + +team.rocket.Entities Class Hierarchy + + + + + + + + + + + + + + + +
    + +
    +
    +
    +

    Hierarchy For Package team.rocket.Entities

    +Package Hierarchies: + +
    +
    +

    Class Hierarchy

    + +
    +
    +
    +
    + + diff --git a/api/team/rocket/Enums/Direction.html b/api/team/rocket/Enums/Direction.html new file mode 100644 index 0000000..66f2a78 --- /dev/null +++ b/api/team/rocket/Enums/Direction.html @@ -0,0 +1,309 @@ + + + + +Direction + + + + + + + + + + + + + + + +
    + +
    +
    + +
    + +

    Enum Class Direction

    +
    +
    java.lang.Object +
    java.lang.Enum<Direction> +
    team.rocket.Enums.Direction
    +
    +
    +
    +
    +
    All Implemented Interfaces:
    +
    Serializable, Comparable<Direction>, Constable
    +
    +
    +
    public enum Direction +extends Enum<Direction>
    +
    +
    Since:
    +
    0.1.0
    +
    Version:
    +
    0.6.0
    +
    +
    +
    +
      + +
    • +
      +

      Nested Class Summary

      +
      +

      Nested classes/interfaces inherited from class java.lang.Enum

      +Enum.EnumDesc<E extends Enum<E>>
      +
      +
    • + +
    • +
      +

      Enum Constant Summary

      +
      Enum Constants
      +
      +
      Enum Constant
      +
      Description
      + +
      +
      Enum value representing the direction down, representing a positional offset of {0, 1} within a 2d array.
      +
      + +
      +
      Enum value representing the direction left, representing a positional offset of {-1, 0} within a 2d array.
      +
      + +
      +
      Enum value representing the direction right, representing a positional offset of {1, 0} within a 2d array.
      +
      + +
      +
      Enum value representing the direction up, representing a positional offset of {0, -1} within a 2d array.
      +
      +
      +
      +
    • + +
    • +
      +

      Method Summary

      +
      +
      +
      +
      +
      Modifier and Type
      +
      Method
      +
      Description
      +
      static Direction
      + +
      +
      Gets a Direction from an int where the range [0,3] is assigned to UP, DOWN, LEFT, RIGHT in that order
      +
      +
      static Direction
      + +
      +
      Gets a direction from a string
      +
      +
      static Direction
      +
      randomDirectionFromBooleanArray(boolean[] booleans)
      +
      +
      Takes a 4-long array of booleans and returns a random direction + The booleans are used to determine which Directions it can choose from where + each boolean represents a different direction in the order up, down, left, right
      +
      +
      static Direction
      + +
      +
      Returns the enum constant of this class with the specified name.
      +
      +
      static Direction[]
      + +
      +
      Returns an array containing the constants of this enum class, in +the order they are declared.
      +
      +
      +
      +
      + +
      +

      Methods inherited from class java.lang.Object

      +getClass, notify, notifyAll, wait, wait, wait
      +
      +
    • +
    +
    +
    +
      + +
    • +
      +

      Enum Constant Details

      +
        +
      • +
        +

        UP

        +
        public static final Direction UP
        +
        Enum value representing the direction up, representing a positional offset of {0, -1} within a 2d array.
        +
        +
      • +
      • +
        +

        DOWN

        +
        public static final Direction DOWN
        +
        Enum value representing the direction down, representing a positional offset of {0, 1} within a 2d array.
        +
        +
      • +
      • +
        +

        LEFT

        +
        public static final Direction LEFT
        +
        Enum value representing the direction left, representing a positional offset of {-1, 0} within a 2d array.
        +
        +
      • +
      • + +
      • +
      +
      +
    • + +
    • +
      +

      Method Details

      +
        +
      • +
        +

        values

        +
        public static Direction[] values()
        +
        Returns an array containing the constants of this enum class, in +the order they are declared.
        +
        +
        Returns:
        +
        an array containing the constants of this enum class, in the order they are declared
        +
        +
        +
      • +
      • +
        +

        valueOf

        +
        public static Direction valueOf(String name)
        +
        Returns the enum constant of this class with the specified name. +The string must match exactly an identifier used to declare an +enum constant in this class. (Extraneous whitespace characters are +not permitted.)
        +
        +
        Parameters:
        +
        name - the name of the enum constant to be returned.
        +
        Returns:
        +
        the enum constant with the specified name
        +
        Throws:
        +
        IllegalArgumentException - if this enum class has no constant with the specified name
        +
        NullPointerException - if the argument is null
        +
        +
        +
      • +
      • +
        +

        directionFromInt

        +
        public static Direction directionFromInt(int i)
        +
        Gets a Direction from an int where the range [0,3] is assigned to UP, DOWN, LEFT, RIGHT in that order
        +
        +
        Parameters:
        +
        i - the integer representing the Direction
        +
        Returns:
        +
        a Direction matching the integer
        +
        +
        +
      • +
      • +
        +

        directionFromString

        +
        public static Direction directionFromString(String string)
        +
        Gets a direction from a string
        +
        +
        Parameters:
        +
        string - the string representing the direction
        +
        Returns:
        +
        a Direction matching the string
        +
        +
        +
      • +
      • +
        +

        randomDirectionFromBooleanArray

        +
        public static Direction randomDirectionFromBooleanArray(boolean[] booleans)
        +
        Takes a 4-long array of booleans and returns a random direction + The booleans are used to determine which Directions it can choose from where + each boolean represents a different direction in the order up, down, left, right
        +
        +
        Parameters:
        +
        booleans - the array of booleans used for determination
        +
        Returns:
        +
        a random Direction from the ones available, or null if none were available
        +
        +
        +
      • +
      +
      +
    • +
    +
    + +
    +
    +
    + + diff --git a/api/team/rocket/Enums/package-summary.html b/api/team/rocket/Enums/package-summary.html new file mode 100644 index 0000000..8017a1f --- /dev/null +++ b/api/team/rocket/Enums/package-summary.html @@ -0,0 +1,99 @@ + + + + +team.rocket.Enums + + + + + + + + + + + + + + + +
    + +
    +
    +
    +

    Package team.rocket.Enums

    +
    +
    +
    package team.rocket.Enums
    +
    + +
    +
    +
    +
    + + diff --git a/api/team/rocket/Enums/package-tree.html b/api/team/rocket/Enums/package-tree.html new file mode 100644 index 0000000..1ae32cb --- /dev/null +++ b/api/team/rocket/Enums/package-tree.html @@ -0,0 +1,75 @@ + + + + +team.rocket.Enums Class Hierarchy + + + + + + + + + + + + + + + +
    + +
    +
    +
    +

    Hierarchy For Package team.rocket.Enums

    +Package Hierarchies: + +
    +
    +

    Enum Class Hierarchy

    + +
    +
    +
    +
    + + diff --git a/api/team/rocket/IO/Terminal/DaysPerRunFlagHandler.html b/api/team/rocket/IO/Terminal/DaysPerRunFlagHandler.html new file mode 100644 index 0000000..c86187f --- /dev/null +++ b/api/team/rocket/IO/Terminal/DaysPerRunFlagHandler.html @@ -0,0 +1,190 @@ + + + + +DaysPerRunFlagHandler + + + + + + + + + + + + + + + +
    + +
    +
    + +
    + +

    Class DaysPerRunFlagHandler

    +
    +
    java.lang.Object +
    team.rocket.IO.Terminal.FlagHandler +
    team.rocket.IO.Terminal.DaysPerRunFlagHandler
    +
    +
    +
    +
    +
    public class DaysPerRunFlagHandler +extends FlagHandler
    +
    Handles the DaysPerRun Flag + Ex: --days_amount 8
    +
    +
    Since:
    +
    0.5.0
    +
    Version:
    +
    0.5.0
    +
    +
    +
    + +
    +
    +
      + +
    • +
      +

      Constructor Details

      +
        +
      • +
        +

        DaysPerRunFlagHandler

        +
        public DaysPerRunFlagHandler()
        +
        +
      • +
      +
      +
    • + +
    • +
      +

      Method Details

      +
        +
      • +
        +

        handleRequest

        +
        public void handleRequest(TerminalFlagRequest tFRequest)
        +
        Description copied from class: FlagHandler
        +
        Actually handles the request
        +
        +
        Overrides:
        +
        handleRequest in class FlagHandler
        +
        Parameters:
        +
        tFRequest - The request to be handled, It's specifically a TerminalFlagRequest
        +
        +
        +
      • +
      +
      +
    • +
    +
    + +
    +
    +
    + + diff --git a/api/team/rocket/IO/Terminal/FlagHandler.html b/api/team/rocket/IO/Terminal/FlagHandler.html new file mode 100644 index 0000000..8220e2c --- /dev/null +++ b/api/team/rocket/IO/Terminal/FlagHandler.html @@ -0,0 +1,225 @@ + + + + +FlagHandler + + + + + + + + + + + + + + + +
    + +
    +
    + +
    + +

    Class FlagHandler

    +
    +
    java.lang.Object +
    team.rocket.IO.Terminal.FlagHandler
    +
    +
    +
    +
    Direct Known Subclasses:
    +
    DaysPerRunFlagHandler, GridSizeFlagHandler, InitialOrganismCountFlagHandler, TimeStepsPerDayFlagHandler
    +
    +
    +
    public abstract class FlagHandler +extends Object
    +
    Largely based on OODesign Chain of Responsibility. + Intended to be used as a base for other terminal flag handlers.
    +
    +
    Since:
    +
    0.3.0
    +
    Version:
    +
    0.3.0
    +
    +
    +
    + +
    +
    +
      + +
    • +
      +

      Field Details

      +
        +
      • +
        +

        m_successor

        +
        protected FlagHandler m_successor
        +
        Successor handler which comes after current handler
        +
        +
      • +
      +
      +
    • + +
    • +
      +

      Constructor Details

      +
        +
      • +
        +

        FlagHandler

        +
        public FlagHandler()
        +
        +
      • +
      +
      +
    • + +
    • +
      +

      Method Details

      +
        +
      • +
        +

        setSuccessor

        +
        public void setSuccessor(FlagHandler successor)
        +
        Sets the successor of the handler
        +
        +
        Parameters:
        +
        successor - the FlagHandler successor to be set as the current Handlers successor
        +
        +
        +
      • +
      • +
        +

        handleRequest

        +
        public void handleRequest(TerminalFlagRequest tFRequest)
        +
        Actually handles the request
        +
        +
        Parameters:
        +
        tFRequest - The request to be handled, It's specifically a TerminalFlagRequest
        +
        +
        +
      • +
      +
      +
    • +
    +
    + +
    +
    +
    + + diff --git a/api/team/rocket/IO/Terminal/GridSizeFlagHandler.html b/api/team/rocket/IO/Terminal/GridSizeFlagHandler.html new file mode 100644 index 0000000..5234951 --- /dev/null +++ b/api/team/rocket/IO/Terminal/GridSizeFlagHandler.html @@ -0,0 +1,189 @@ + + + + +GridSizeFlagHandler + + + + + + + + + + + + + + + +
    + +
    +
    + +
    + +

    Class GridSizeFlagHandler

    +
    +
    java.lang.Object +
    team.rocket.IO.Terminal.FlagHandler +
    team.rocket.IO.Terminal.GridSizeFlagHandler
    +
    +
    +
    +
    +
    public class GridSizeFlagHandler +extends FlagHandler
    +
    Handles Grid Size Flags + Ex --grid_width 55 --grid_height 35
    +
    +
    Since:
    +
    0.3.0
    +
    Version:
    +
    0.3.0
    +
    +
    +
    + +
    +
    +
      + +
    • +
      +

      Constructor Details

      +
        +
      • +
        +

        GridSizeFlagHandler

        +
        public GridSizeFlagHandler()
        +
        +
      • +
      +
      +
    • + +
    • +
      +

      Method Details

      +
        +
      • +
        +

        handleRequest

        +
        public void handleRequest(TerminalFlagRequest tFRequest)
        +
        Handles grid size requests
        +
        +
        Overrides:
        +
        handleRequest in class FlagHandler
        +
        Parameters:
        +
        tFRequest - The request to be handled, It's specifically a TerminalFlagRequest
        +
        +
        +
      • +
      +
      +
    • +
    +
    + +
    +
    +
    + + diff --git a/api/team/rocket/IO/Terminal/InitialOrganismCountFlagHandler.html b/api/team/rocket/IO/Terminal/InitialOrganismCountFlagHandler.html new file mode 100644 index 0000000..9f8617b --- /dev/null +++ b/api/team/rocket/IO/Terminal/InitialOrganismCountFlagHandler.html @@ -0,0 +1,190 @@ + + + + +InitialOrganismCountFlagHandler + + + + + + + + + + + + + + + +
    + +
    +
    + +
    + +

    Class InitialOrganismCountFlagHandler

    +
    +
    java.lang.Object +
    team.rocket.IO.Terminal.FlagHandler +
    team.rocket.IO.Terminal.InitialOrganismCountFlagHandler
    +
    +
    +
    +
    +
    public class InitialOrganismCountFlagHandler +extends FlagHandler
    +
    Handles Terminal Flags that pertain to initial Organism Count + Will put an initial amount of Organisms onto the map + Ex: --rabbit_count 6
    +
    +
    Since:
    +
    0.3.0
    +
    Version:
    +
    0.5.0
    +
    +
    +
    + +
    +
    +
      + +
    • +
      +

      Constructor Details

      +
        +
      • +
        +

        InitialOrganismCountFlagHandler

        +
        public InitialOrganismCountFlagHandler()
        +
        +
      • +
      +
      +
    • + +
    • +
      +

      Method Details

      +
        +
      • +
        +

        handleRequest

        +
        public void handleRequest(TerminalFlagRequest tFRequest)
        +
        Takes a request and updates the map to contain an initial amount of organisms
        +
        +
        Overrides:
        +
        handleRequest in class FlagHandler
        +
        Parameters:
        +
        tFRequest - The request to be handled, It's specifically a TerminalFlagRequest
        +
        +
        +
      • +
      +
      +
    • +
    +
    + +
    +
    +
    + + diff --git a/api/team/rocket/IO/Terminal/TerminalFlagRequest.html b/api/team/rocket/IO/Terminal/TerminalFlagRequest.html new file mode 100644 index 0000000..a9ba9b0 --- /dev/null +++ b/api/team/rocket/IO/Terminal/TerminalFlagRequest.html @@ -0,0 +1,278 @@ + + + + +TerminalFlagRequest + + + + + + + + + + + + + + + +
    + +
    +
    + +
    + +

    Class TerminalFlagRequest

    +
    +
    java.lang.Object +
    team.rocket.IO.Terminal.TerminalFlagRequest
    +
    +
    +
    +
    public class TerminalFlagRequest +extends Object
    +
    A request to be used with the Terminal FlagHandlers
    +
    +
    Since:
    +
    0.3.0
    +
    Version:
    +
    0.5.0
    +
    +
    +
    + +
    +
    +
      + +
    • +
      +

      Constructor Details

      +
        +
      • +
        +

        TerminalFlagRequest

        +
        public TerminalFlagRequest(String command, + Map map)
        +
        Constructs a TerminalFlagRequest
        +
        +
        Parameters:
        +
        command - The terminal Command
        +
        map - The current map being used, typically blank
        +
        +
        +
      • +
      +
      +
    • + +
    • +
      +

      Method Details

      +
        +
      • +
        +

        getMap

        +
        public Map getMap()
        +
        Gets the map object
        +
        +
        Returns:
        +
        the map
        +
        +
        +
      • +
      • +
        +

        setMap

        +
        public void setMap(Map map)
        +
        Allows the map to be set, can be used for passing information
        +
        +
        Parameters:
        +
        map - 2D array of Abstract organisms
        +
        +
        +
      • +
      • +
        +

        getTerminalCommand

        +
        public String getTerminalCommand()
        +
        Gets the terminalCommand string
        +
        +
        Returns:
        +
        the TerminalCommand string
        +
        +
        +
      • +
      • +
        +

        getNumOfDays

        +
        public int getNumOfDays()
        +
        Gets the numOfDays integer
        +
        +
        Returns:
        +
        the numOfDays integer
        +
        +
        +
      • +
      • +
        +

        setNumOfDays

        +
        public void setNumOfDays(int num)
        +
        Sets the numOfDays integer
        +
        +
        Parameters:
        +
        num - the new number of days
        +
        +
        +
      • +
      • +
        +

        getStepsPerDay

        +
        public int getStepsPerDay()
        +
        gets the stepsPerDay integer
        +
        +
        Returns:
        +
        the stepsPerDay integer
        +
        +
        +
      • +
      • +
        +

        setStepsPerDay

        +
        public void setStepsPerDay(int num)
        +
        sets the stepsPerDay integer
        +
        +
        Parameters:
        +
        num - the new number of steps per day
        +
        +
        +
      • +
      +
      +
    • +
    +
    + +
    +
    +
    + + diff --git a/api/team/rocket/IO/Terminal/TimeStepsPerDayFlagHandler.html b/api/team/rocket/IO/Terminal/TimeStepsPerDayFlagHandler.html new file mode 100644 index 0000000..a5c8a8a --- /dev/null +++ b/api/team/rocket/IO/Terminal/TimeStepsPerDayFlagHandler.html @@ -0,0 +1,190 @@ + + + + +TimeStepsPerDayFlagHandler + + + + + + + + + + + + + + + +
    + +
    +
    + +
    + +

    Class TimeStepsPerDayFlagHandler

    +
    +
    java.lang.Object +
    team.rocket.IO.Terminal.FlagHandler +
    team.rocket.IO.Terminal.TimeStepsPerDayFlagHandler
    +
    +
    +
    +
    +
    public class TimeStepsPerDayFlagHandler +extends FlagHandler
    +
    Handles the TimeStepsPerDay flag + Ex: --steps_per_day 12
    +
    +
    Since:
    +
    0.5.0
    +
    Version:
    +
    0.5.0
    +
    +
    +
    + +
    +
    +
      + +
    • +
      +

      Constructor Details

      +
        +
      • +
        +

        TimeStepsPerDayFlagHandler

        +
        public TimeStepsPerDayFlagHandler()
        +
        +
      • +
      +
      +
    • + +
    • +
      +

      Method Details

      +
        +
      • +
        +

        handleRequest

        +
        public void handleRequest(TerminalFlagRequest tFRequest)
        +
        Description copied from class: FlagHandler
        +
        Actually handles the request
        +
        +
        Overrides:
        +
        handleRequest in class FlagHandler
        +
        Parameters:
        +
        tFRequest - The request to be handled, It's specifically a TerminalFlagRequest
        +
        +
        +
      • +
      +
      +
    • +
    +
    + +
    +
    +
    + + diff --git a/api/team/rocket/IO/Terminal/package-summary.html b/api/team/rocket/IO/Terminal/package-summary.html new file mode 100644 index 0000000..b11ba37 --- /dev/null +++ b/api/team/rocket/IO/Terminal/package-summary.html @@ -0,0 +1,120 @@ + + + + +team.rocket.IO.Terminal + + + + + + + + + + + + + + + +
    + +
    +
    +
    +

    Package team.rocket.IO.Terminal

    +
    +
    +
    package team.rocket.IO.Terminal
    +
    + +
    +
    +
    +
    + + diff --git a/api/team/rocket/IO/Terminal/package-tree.html b/api/team/rocket/IO/Terminal/package-tree.html new file mode 100644 index 0000000..a6698de --- /dev/null +++ b/api/team/rocket/IO/Terminal/package-tree.html @@ -0,0 +1,79 @@ + + + + +team.rocket.IO.Terminal Class Hierarchy + + + + + + + + + + + + + + + +
    + +
    +
    +
    +

    Hierarchy For Package team.rocket.IO.Terminal

    +Package Hierarchies: + +
    +
    +

    Class Hierarchy

    + +
    +
    +
    +
    + + diff --git a/api/team/rocket/IO/UI.html b/api/team/rocket/IO/UI.html new file mode 100644 index 0000000..637e7e4 --- /dev/null +++ b/api/team/rocket/IO/UI.html @@ -0,0 +1,216 @@ + + + + +UI + + + + + + + + + + + + + + + +
    + +
    +
    + +
    + +

    Class UI

    +
    +
    java.lang.Object +
    team.rocket.IO.UI
    +
    +
    +
    +
    public class UI +extends Object
    +
    UI is the standard entry point for using the simulation. It allows users to type in input to modify the simulation. + + * @author Dale Morris, Jon Roberts + * @version 0.6.0 + * @since 0.1.0
    +
    +
    +
      + +
    • +
      +

      Constructor Summary

      +
      Constructors
      +
      +
      Constructor
      +
      Description
      +
      UI()
      +
       
      +
      +
      +
    • + +
    • +
      +

      Method Summary

      +
      +
      +
      +
      +
      Modifier and Type
      +
      Method
      +
      Description
      +
      static void
      +
      main(String[] args)
      +
      +
      The main UI method that's called to start the program
      +
      +
      static void
      +
      outputGrid(int currentDay, + Map map)
      +
      +
      Outputs the current Grid with boundaries and letter representations for the animals.
      +
      +
      static void
      +
      outputGridViaMainThread(int currentDay, + Map map)
      +
      +
      Outputs the current Grid with boundaries and letter representations for the animals + Also outputs what day the simulation is on.
      +
      +
      +
      +
      +
      +

      Methods inherited from class java.lang.Object

      +clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      +
      +
    • +
    +
    +
    +
      + +
    • +
      +

      Constructor Details

      +
        +
      • +
        +

        UI

        +
        public UI()
        +
        +
      • +
      +
      +
    • + +
    • +
      +

      Method Details

      +
        +
      • +
        +

        main

        +
        public static void main(String[] args) + throws InterruptedException
        +
        The main UI method that's called to start the program
        +
        +
        Parameters:
        +
        args - The passed in arguments from the terminal
        +
        Throws:
        +
        InterruptedException - may throw if the program is interrupted
        +
        +
        +
      • +
      • +
        +

        outputGrid

        +
        public static void outputGrid(int currentDay, + Map map)
        +
        Outputs the current Grid with boundaries and letter representations for the animals. + Also outputs what day the simulation is on. + Spins up a new thread every time it's run.
        +
        +
        Parameters:
        +
        currentDay - the current day of the simulation
        +
        map - a map of the simulation
        +
        +
        +
      • +
      • +
        +

        outputGridViaMainThread

        +
        public static void outputGridViaMainThread(int currentDay, + Map map)
        +
        Outputs the current Grid with boundaries and letter representations for the animals + Also outputs what day the simulation is on. + Prints using the main compute thread.
        +
        +
        Parameters:
        +
        currentDay - the current day of the simulation
        +
        map - a map of the simulation
        +
        +
        +
      • +
      +
      +
    • +
    +
    + +
    +
    +
    + + diff --git a/api/team/rocket/IO/package-summary.html b/api/team/rocket/IO/package-summary.html new file mode 100644 index 0000000..e6a97bc --- /dev/null +++ b/api/team/rocket/IO/package-summary.html @@ -0,0 +1,103 @@ + + + + +team.rocket.IO + + + + + + + + + + + + + + + +
    + +
    +
    +
    +

    Package team.rocket.IO

    +
    +
    +
    package team.rocket.IO
    +
    + +
    +
    +
    +
    + + diff --git a/api/team/rocket/IO/package-tree.html b/api/team/rocket/IO/package-tree.html new file mode 100644 index 0000000..09963f1 --- /dev/null +++ b/api/team/rocket/IO/package-tree.html @@ -0,0 +1,71 @@ + + + + +team.rocket.IO Class Hierarchy + + + + + + + + + + + + + + + +
    + +
    +
    +
    +

    Hierarchy For Package team.rocket.IO

    +Package Hierarchies: + +
    +
    +

    Class Hierarchy

    +
      +
    • java.lang.Object +
        +
      • team.rocket.IO.UI
      • +
      +
    • +
    +
    +
    +
    +
    + + diff --git a/api/team/rocket/Map.html b/api/team/rocket/Map.html new file mode 100644 index 0000000..86c34fc --- /dev/null +++ b/api/team/rocket/Map.html @@ -0,0 +1,507 @@ + + + + +Map + + + + + + + + + + + + + + + +
    + +
    +
    + +
    +
    Package team.rocket
    +

    Class Map

    +
    +
    java.lang.Object +
    team.rocket.Map
    +
    +
    +
    +
    public class Map +extends Object
    +
    A team.rocket.Map contains the information about the arrangement of a set of simulated organisms.
    +
    +
    Since:
    +
    0.6.0
    +
    Version:
    +
    0.2.0
    +
    Author:
    +
    Dale Morris
    +
    +
    +
    +
      + +
    • +
      +

      Field Summary

      +
      Fields
      +
      +
      Modifier and Type
      +
      Field
      +
      Description
      +
      static final int
      + +
      +
      The default value for the height of the grid
      +
      +
      static final int
      + +
      +
      The default value for the width of the grid
      +
      +
      +
      +
    • + +
    • +
      +

      Constructor Summary

      +
      Constructors
      +
      +
      Constructor
      +
      Description
      +
      Map()
      +
      +
      A constructor for the team.rocket.Map class that sets the grid to an empty grid of default size and sets the + width and height to their default values
      +
      +
      Map(int width, + int height)
      +
      +
      A constructor for the team.rocket.Map class that sets the grid to an empty 2D array of AbstractOrganisms with a + given width and height.
      +
      + +
      +
      A constructor for the team.rocket.Map class that sets the grid to the given grid and sets the width and height + to the width and height of the grid.
      +
      +
      +
      +
    • + +
    • +
      +

      Method Summary

      +
      +
      +
      +
      +
      Modifier and Type
      +
      Method
      +
      Description
      +
      void
      +
      addOrganism(AbstractOrganism organism, + int row, + int column)
      +
      +
      Adds an organism to the specified location
      +
      + + +
      +
      Returns the grid of the team.rocket.Map.
      +
      +
      int
      + +
      +
      Returns the height of the grid of the team.rocket.Map.
      +
      + +
      getNeighbors(int x, + int y)
      +
      +
      Gets the neighbors of the position (x,y) + if a neighbor is a wall then that entry isn't included.
      +
      + +
      getNeighborsAsCharacter(int x, + int y)
      +
      +
      Gets the neighbors of the position (x,y) as characters + If a neighbor is a wall, then that entry isn't included.
      +
      +
      long
      + +
      +
      Gets the number of entities held by the map
      +
      + +
      getOrganism(int row, + int column)
      +
      +
      Gets the organism at the specified location
      +
      +
      int
      + +
      +
      Returns the width of the grid of the team.rocket.Map.
      +
      +
      boolean
      + +
      +
      Returns a boolean telling whether the map is empty
      +
      +
      boolean
      + +
      +
      Returns a boolean telling whether the map is full
      +
      +
      void
      +
      moveOrganism(int currentRow, + int currentCol, + int newRow, + int newCol)
      +
      +
      Moves an organism at (currentCol, currentRow) to (newCol, newRow) and removes the organism at that location if one is there
      +
      +
      void
      +
      removeOrganism(int row, + int column)
      +
      +
      Removes the organism at the specified location
      +
      +
      void
      + +
      +
      Sets the grid of the team.rocket.Map to the given grid and changes the width and height values if applicable.
      +
      +
      +
      +
      +
      +

      Methods inherited from class java.lang.Object

      +clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      +
      +
    • +
    +
    +
    +
      + +
    • +
      +

      Field Details

      +
        +
      • +
        +

        DEFAULT_WIDTH

        +
        public static final int DEFAULT_WIDTH
        +
        The default value for the width of the grid
        +
        +
        See Also:
        +
        + +
        +
        +
        +
      • +
      • +
        +

        DEFAULT_HEIGHT

        +
        public static final int DEFAULT_HEIGHT
        +
        The default value for the height of the grid
        +
        +
        See Also:
        +
        + +
        +
        +
        +
      • +
      +
      +
    • + +
    • +
      +

      Constructor Details

      +
        +
      • +
        +

        Map

        +
        public Map()
        +
        A constructor for the team.rocket.Map class that sets the grid to an empty grid of default size and sets the + width and height to their default values
        +
        +
      • +
      • +
        +

        Map

        +
        public Map(int width, + int height)
        +
        A constructor for the team.rocket.Map class that sets the grid to an empty 2D array of AbstractOrganisms with a + given width and height.
        +
        +
        Parameters:
        +
        width - The desired width (number of columns) of the grid
        +
        height - The desired height (number of rows) of the grid
        +
        +
        +
      • +
      • +
        +

        Map

        +
        public Map(AbstractOrganism[][] grid)
        +
        A constructor for the team.rocket.Map class that sets the grid to the given grid and sets the width and height + to the width and height of the grid.
        +
        +
        Parameters:
        +
        grid - A 2D array of AbstractOrganisms for the map to set its grid to
        +
        +
        +
      • +
      +
      +
    • + +
    • +
      +

      Method Details

      +
        +
      • +
        +

        getGrid

        +
        public AbstractOrganism[][] getGrid()
        +
        Returns the grid of the team.rocket.Map.
        +
        +
        Returns:
        +
        A 2D array containing the simulated AbstractOrganisms
        +
        +
        +
      • +
      • +
        +

        setGrid

        +
        public void setGrid(AbstractOrganism[][] grid)
        +
        Sets the grid of the team.rocket.Map to the given grid and changes the width and height values if applicable.
        +
        +
        Parameters:
        +
        grid - The desired grid of the team.rocket.Map.
        +
        +
        +
      • +
      • +
        +

        getWidth

        +
        public int getWidth()
        +
        Returns the width of the grid of the team.rocket.Map.
        +
        +
        Returns:
        +
        an int representing the width of the grid of the team.rocket.Map
        +
        +
        +
      • +
      • +
        +

        getHeight

        +
        public int getHeight()
        +
        Returns the height of the grid of the team.rocket.Map.
        +
        +
        Returns:
        +
        an int representing the height of the grid of the team.rocket.Map
        +
        +
        +
      • +
      • +
        +

        getOrganism

        +
        public AbstractOrganism getOrganism(int row, + int column)
        +
        Gets the organism at the specified location
        +
        +
        Parameters:
        +
        row - the row that the organism is in
        +
        column - the column that the organism is in
        +
        Returns:
        +
        AbstractOrganism or null if the location is empty
        +
        +
        +
      • +
      • +
        +

        addOrganism

        +
        public void addOrganism(AbstractOrganism organism, + int row, + int column)
        +
        Adds an organism to the specified location
        +
        +
        Parameters:
        +
        organism - the organism that is to be added to the map
        +
        row - the row that the organism will be in
        +
        column - the column that the organism will be in
        +
        +
        +
      • +
      • +
        +

        removeOrganism

        +
        public void removeOrganism(int row, + int column)
        +
        Removes the organism at the specified location
        +
        +
        Parameters:
        +
        row - the row of the organism that is to be removed from the map
        +
        column - the column of the organism that is to be removed from the map
        +
        +
        +
      • +
      • +
        +

        isEmpty

        +
        public boolean isEmpty()
        +
        Returns a boolean telling whether the map is empty
        +
        +
        Returns:
        +
        true if the map is empty, false otherwise
        +
        +
        +
      • +
      • +
        +

        isFull

        +
        public boolean isFull()
        +
        Returns a boolean telling whether the map is full
        +
        +
        Returns:
        +
        true if the map is full, false otherwise
        +
        +
        +
      • +
      • +
        +

        getNeighbors

        +
        public HashMap<Direction,AbstractOrganism> getNeighbors(int x, + int y)
        +
        Gets the neighbors of the position (x,y) + if a neighbor is a wall then that entry isn't included.
        +
        +
        Parameters:
        +
        x - the x coordinate of the position to be checked
        +
        y - the y coordinate of the position to be checked
        +
        Returns:
        +
        a HashMap with entries of the neighbors with the Directions as keys
        +
        +
        +
      • +
      • +
        +

        getNeighborsAsCharacter

        +
        public HashMap<Direction,Character> getNeighborsAsCharacter(int x, + int y)
        +
        Gets the neighbors of the position (x,y) as characters + If a neighbor is a wall, then that entry isn't included.
        +
        +
        Parameters:
        +
        x - the x coordinate of the position to be checked
        +
        y - the y coordinate of the position to be checked
        +
        Returns:
        +
        a HashMap of with entries of the neighbors with directions as keys
        +
        +
        +
      • +
      • +
        +

        getNumberOfOrganisms

        +
        public long getNumberOfOrganisms()
        +
        Gets the number of entities held by the map
        +
        +
        Returns:
        +
        a long representing the number of entities held by the map
        +
        +
        +
      • +
      • +
        +

        moveOrganism

        +
        public void moveOrganism(int currentRow, + int currentCol, + int newRow, + int newCol)
        +
        Moves an organism at (currentCol, currentRow) to (newCol, newRow) and removes the organism at that location if one is there
        +
        +
        Parameters:
        +
        currentRow - the current x position of the organism
        +
        currentCol - the current y position of the organism
        +
        newRow - the x destination of the organism
        +
        newCol - the y destination of the organism
        +
        Throws:
        +
        UnsupportedOperationException - when the value at (currentCol, currentRow) is null
        +
        +
        +
      • +
      +
      +
    • +
    +
    + +
    +
    +
    + + diff --git a/api/team/rocket/Simulation.html b/api/team/rocket/Simulation.html new file mode 100644 index 0000000..98322de --- /dev/null +++ b/api/team/rocket/Simulation.html @@ -0,0 +1,409 @@ + + + + +Simulation + + + + + + + + + + + + + + + +
    + +
    +
    + +
    +
    Package team.rocket
    +

    Class Simulation

    +
    +
    java.lang.Object +
    team.rocket.Simulation
    +
    +
    +
    +
    All Implemented Interfaces:
    +
    Runnable
    +
    +
    +
    public class Simulation +extends Object +implements Runnable
    +
    team.rocket.Simulation is the class that controls the backend of the simulation. It contains a grid of animals. It also runs + multiple time steps and days worth of simulated time during which animals can breed.
    +
    +
    Since:
    +
    0.1.0
    +
    Version:
    +
    0.6.0
    +
    Author:
    +
    Dale Morris, Jon Roberts
    +
    +
    +
    +
      + +
    • +
      +

      Field Summary

      +
      Fields
      +
      +
      Modifier and Type
      +
      Field
      +
      Description
      +
      static final int
      + +
      +
      The default number of days in each run
      +
      +
      static final int
      + +
      +
      The default number of real-world milliseconds in each time step
      +
      +
      static final int
      + +
      +
      The default number of time steps in each day
      +
      +
      +
      +
    • + +
    • +
      +

      Constructor Summary

      +
      Constructors
      +
      +
      Constructor
      +
      Description
      + +
      +
      Returns a new team.rocket.Simulation object with default constraints.
      +
      +
      Simulation(int mapWidth, + int mapHeight)
      +
      +
      Returns a new team.rocket.Simulation object with the given constraints.
      +
      + +
      +
      Creates a simulation from a map
      +
      +
      +
      +
    • + +
    • +
      +

      Method Summary

      +
      +
      +
      +
      +
      Modifier and Type
      +
      Method
      +
      Description
      +
      int
      + +
      +
      Returns the current day of the simulation
      +
      +
      int
      + +
      +
      gets the current timestep
      +
      + + +
      +
      Getter for the simulation map
      +
      +
      void
      +
      run()
      +
      +
      Simulates how the environment changes over time based on initial conditions and interactions among animals.
      +
      +
      void
      +
      setDaysPerRun(int daysPerRun)
      +
      +
      Sets the days per run value
      +
      +
      void
      +
      setMillisecondsPerTimeStep(int millisecondsPerTimeStep)
      +
      +
      Set the milliseconds per timestep
      +
      +
      void
      +
      setPrintOutput(boolean printOutput)
      +
      +
      Sets whether the simulation should print it's output
      +
      +
      void
      +
      setTimeStepsPerDay(int timeStepsPerDay)
      +
      +
      Sets the timesteps per day
      +
      +
      +
      +
      +
      +

      Methods inherited from class java.lang.Object

      +clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      +
      +
    • +
    +
    +
    +
      + +
    • +
      +

      Field Details

      +
        +
      • +
        +

        DEFAULT_DAYS_PER_RUN

        +
        public static final int DEFAULT_DAYS_PER_RUN
        +
        The default number of days in each run
        +
        +
        See Also:
        +
        + +
        +
        +
        +
      • +
      • +
        +

        DEFAULT_TIME_STEPS_PER_DAY

        +
        public static final int DEFAULT_TIME_STEPS_PER_DAY
        +
        The default number of time steps in each day
        +
        +
        See Also:
        +
        + +
        +
        +
        +
      • +
      • +
        +

        DEFAULT_MILLISECONDS_PER_TIME_STEP

        +
        public static final int DEFAULT_MILLISECONDS_PER_TIME_STEP
        +
        The default number of real-world milliseconds in each time step
        +
        +
        See Also:
        +
        + +
        +
        +
        +
      • +
      +
      +
    • + +
    • +
      +

      Constructor Details

      +
        +
      • +
        +

        Simulation

        +
        public Simulation(int mapWidth, + int mapHeight)
        +
        Returns a new team.rocket.Simulation object with the given constraints.
        +
        +
        Parameters:
        +
        mapWidth - the number of columns of the simulated grid
        +
        mapHeight - the number of rows of the simulated grid
        +
        +
        +
      • +
      • +
        +

        Simulation

        +
        public Simulation()
        +
        Returns a new team.rocket.Simulation object with default constraints. + Contains one rabbit in the corner by default
        +
        +
      • +
      • +
        +

        Simulation

        +
        public Simulation(Map m)
        +
        Creates a simulation from a map
        +
        +
        Parameters:
        +
        m - the map to create a simulation from
        +
        +
        +
      • +
      +
      +
    • + +
    • +
      +

      Method Details

      +
        +
      • +
        +

        run

        +
        public void run()
        +
        Simulates how the environment changes over time based on initial conditions and interactions among animals.
        +
        +
        Specified by:
        +
        run in interface Runnable
        +
        +
        +
      • +
      • +
        +

        setDaysPerRun

        +
        public void setDaysPerRun(int daysPerRun)
        +
        Sets the days per run value
        +
        +
        Parameters:
        +
        daysPerRun - the new number of days per run
        +
        +
        +
      • +
      • +
        +

        setTimeStepsPerDay

        +
        public void setTimeStepsPerDay(int timeStepsPerDay)
        +
        Sets the timesteps per day
        +
        +
        Parameters:
        +
        timeStepsPerDay - the new number of timesteps per day
        +
        +
        +
      • +
      • +
        +

        setMillisecondsPerTimeStep

        +
        public void setMillisecondsPerTimeStep(int millisecondsPerTimeStep)
        +
        Set the milliseconds per timestep
        +
        +
        Parameters:
        +
        millisecondsPerTimeStep - the new duration of milliseconds per timestep
        +
        +
        +
      • +
      • +
        +

        getCurrentDay

        +
        public int getCurrentDay()
        +
        Returns the current day of the simulation
        +
        +
        Returns:
        +
        the current day of the simulation
        +
        +
        +
      • +
      • +
        +

        getCurrentTimeStep

        +
        public int getCurrentTimeStep()
        +
        gets the current timestep
        +
        +
        Returns:
        +
        the current timestep
        +
        +
        +
      • +
      • +
        +

        getMap

        +
        public Map getMap()
        +
        Getter for the simulation map
        +
        +
        Returns:
        +
        the sim. map
        +
        +
        +
      • +
      • +
        +

        setPrintOutput

        +
        public void setPrintOutput(boolean printOutput)
        +
        Sets whether the simulation should print it's output
        +
        +
        Parameters:
        +
        printOutput - if true it will send the signals to the UI, otherwise it won't
        +
        +
        +
      • +
      +
      +
    • +
    +
    + +
    +
    +
    + + diff --git a/api/team/rocket/package-summary.html b/api/team/rocket/package-summary.html new file mode 100644 index 0000000..1eb1282 --- /dev/null +++ b/api/team/rocket/package-summary.html @@ -0,0 +1,105 @@ + + + + +team.rocket + + + + + + + + + + + + + + + +
    + +
    +
    +
    +

    Package team.rocket

    +
    +
    +
    package team.rocket
    +
    + +
    +
    +
    +
    + + diff --git a/api/team/rocket/package-tree.html b/api/team/rocket/package-tree.html new file mode 100644 index 0000000..5af731d --- /dev/null +++ b/api/team/rocket/package-tree.html @@ -0,0 +1,72 @@ + + + + +team.rocket Class Hierarchy + + + + + + + + + + + + + + + +
    + +
    +
    +
    +

    Hierarchy For Package team.rocket

    +Package Hierarchies: + +
    +
    +

    Class Hierarchy

    + +
    +
    +
    +
    + + diff --git a/api/team/rocket/util/RandomManager.html b/api/team/rocket/util/RandomManager.html new file mode 100644 index 0000000..9c4e3fa --- /dev/null +++ b/api/team/rocket/util/RandomManager.html @@ -0,0 +1,145 @@ + + + + +RandomManager + + + + + + + + + + + + + + + +
    + +
    +
    + +
    + +

    Class RandomManager

    +
    +
    java.lang.Object +
    team.rocket.util.RandomManager
    +
    +
    +
    +
    public class RandomManager +extends Object
    +
    A utility class for the Random java tool
    +
    +
    Since:
    +
    0.6.0
    +
    Version:
    +
    0.6.0
    +
    +
    +
    + +
    +
    +
      + +
    • +
      +

      Method Details

      +
        +
      • +
        +

        getRandom

        +
        public static Random getRandom()
        +
        Creates one instance of Random and reuses it
        +
        +
        Returns:
        +
        the Random instance
        +
        +
        +
      • +
      +
      +
    • +
    +
    + +
    +
    +
    + + diff --git a/api/team/rocket/util/TimeManager.html b/api/team/rocket/util/TimeManager.html new file mode 100644 index 0000000..3dd6267 --- /dev/null +++ b/api/team/rocket/util/TimeManager.html @@ -0,0 +1,145 @@ + + + + +TimeManager + + + + + + + + + + + + + + + +
    + +
    +
    + +
    + +

    Class TimeManager

    +
    +
    java.lang.Object +
    team.rocket.util.TimeManager
    +
    +
    +
    +
    public class TimeManager +extends Object
    +
    Handles Getting the time and makes it require less instantiation
    +
    +
    Since:
    +
    0.6.0
    +
    Version:
    +
    0.6.0
    +
    +
    +
    + +
    +
    +
      + +
    • +
      +

      Method Details

      +
        +
      • +
        +

        getCurrentTime

        +
        public static long getCurrentTime()
        +
        Gets the systems current epoch time and returns it as a long
        +
        +
        Returns:
        +
        a long representing the current system time
        +
        +
        +
      • +
      +
      +
    • +
    +
    + +
    +
    +
    + + diff --git a/api/team/rocket/util/package-summary.html b/api/team/rocket/util/package-summary.html new file mode 100644 index 0000000..a793c60 --- /dev/null +++ b/api/team/rocket/util/package-summary.html @@ -0,0 +1,105 @@ + + + + +team.rocket.util + + + + + + + + + + + + + + + +
    + +
    +
    +
    +

    Package team.rocket.util

    +
    +
    +
    package team.rocket.util
    +
    + +
    +
    +
    +
    + + diff --git a/api/team/rocket/util/package-tree.html b/api/team/rocket/util/package-tree.html new file mode 100644 index 0000000..7eaf882 --- /dev/null +++ b/api/team/rocket/util/package-tree.html @@ -0,0 +1,72 @@ + + + + +team.rocket.util Class Hierarchy + + + + + + + + + + + + + + + +
    + +
    +
    +
    +

    Hierarchy For Package team.rocket.util

    +Package Hierarchies: + +
    +
    +

    Class Hierarchy

    + +
    +
    +
    +
    + + diff --git a/api/type-search-index.js b/api/type-search-index.js new file mode 100644 index 0000000..a475180 --- /dev/null +++ b/api/type-search-index.js @@ -0,0 +1 @@ +typeSearchIndex = [{"p":"team.rocket.Entities","l":"AbstractAnimal"},{"p":"team.rocket.Entities","l":"AbstractOrganism"},{"p":"team.rocket.Entities","l":"AbstractPlant"},{"l":"All Classes and Interfaces","u":"allclasses-index.html"},{"p":"team.rocket.Entities","l":"Carrot"},{"p":"team.rocket.IO.Terminal","l":"DaysPerRunFlagHandler"},{"p":"team.rocket.Enums","l":"Direction"},{"p":"team.rocket.IO.Terminal","l":"FlagHandler"},{"p":"team.rocket.Entities","l":"Fox"},{"p":"team.rocket.Entities","l":"Grass"},{"p":"team.rocket.IO.Terminal","l":"GridSizeFlagHandler"},{"p":"team.rocket.IO.Terminal","l":"InitialOrganismCountFlagHandler"},{"p":"team.rocket","l":"Map"},{"p":"team.rocket.Entities","l":"OrganismFactory"},{"p":"team.rocket.Entities","l":"Rabbit"},{"p":"team.rocket.util","l":"RandomManager"},{"p":"team.rocket","l":"Simulation"},{"p":"team.rocket.IO.Terminal","l":"TerminalFlagRequest"},{"p":"team.rocket.util","l":"TimeManager"},{"p":"team.rocket.IO.Terminal","l":"TimeStepsPerDayFlagHandler"},{"p":"team.rocket.IO","l":"UI"}];updateSearchResults(); \ No newline at end of file diff --git a/src/main/java/team/rocket/Entities/Fox.java b/src/main/java/team/rocket/Entities/Fox.java index 3c947c8..71991f8 100644 --- a/src/main/java/team/rocket/Entities/Fox.java +++ b/src/main/java/team/rocket/Entities/Fox.java @@ -227,6 +227,13 @@ public void eat(Map map, int row, int column) { } } + /** + * Gets the neighbors of an organisms position + * @param map the map to check + * @param y the y position to check + * @param x the x position to check + * @return an array of AbstractOrganisms that represents the neighbors in the order {up, down, left, right} + */ public AbstractOrganism[] findNeighbors(Map map, int y, int x) { AbstractOrganism[] neighbors = new AbstractOrganism[4]; if (y == 0) { diff --git a/src/main/java/team/rocket/Entities/Rabbit.java b/src/main/java/team/rocket/Entities/Rabbit.java index ce7f6ba..fe078fe 100644 --- a/src/main/java/team/rocket/Entities/Rabbit.java +++ b/src/main/java/team/rocket/Entities/Rabbit.java @@ -190,10 +190,20 @@ public void move(Map map, int y, int x) { hasMoved = true; } + /** + * Is the rabbit starving? + * @return true if hunger less than deathFood value + */ public boolean isStarving() { return hunger < deathFood; } + /** + * Gets the rabbit to eat the carrot or grass at position (column, row) + * @param map the map to check + * @param row the row of the organism + * @param column the column of the organism + */ public void eat(Map map, int row, int column) { if (map.getGrid()[row][column] != null) { AbstractOrganism org = map.getGrid()[row][column]; @@ -205,6 +215,13 @@ public void eat(Map map, int row, int column) { } } + /** + * Finds the neighbors of the Rabbit + * @param map the map to check + * @param y the y position to check for neighbors + * @param x the x position to check for neighbors + * @return an array of abstractorganisms representing directions {up, down, left, right} + */ public AbstractOrganism[] findNeighbors(Map map, int y, int x) { AbstractOrganism[] neighbors = new AbstractOrganism[4]; if (y == 0) { @@ -238,6 +255,10 @@ public AbstractOrganism[] findNeighbors(Map map, int y, int x) { return neighbors; } + /** + * return the vision value + * @return vision integer + */ public static int getVision() { return vision; } diff --git a/src/main/java/team/rocket/IO/UI.java b/src/main/java/team/rocket/IO/UI.java index 479cc0e..71fc59e 100644 --- a/src/main/java/team/rocket/IO/UI.java +++ b/src/main/java/team/rocket/IO/UI.java @@ -19,6 +19,11 @@ public class UI { private static Thread uiThread; + /** + * The main UI method that's called to start the program + * @param args The passed in arguments from the terminal + * @throws InterruptedException may throw if the program is interrupted + */ public static void main(String[] args) throws InterruptedException { //Prepares the factories for construction setupOrganismFactory(); diff --git a/src/main/java/team/rocket/Map.java b/src/main/java/team/rocket/Map.java index ecd3cc6..53a3a87 100644 --- a/src/main/java/team/rocket/Map.java +++ b/src/main/java/team/rocket/Map.java @@ -15,8 +15,14 @@ public class Map { private AbstractOrganism[][] grid; // The 2D array containing all the organisms on the map private int width; // The width of the map private int height; // The height of the map - public static final int DEFAULT_WIDTH = 5; // The default value for the width of the grid - public static final int DEFAULT_HEIGHT = 5; // The default value for the height of the grid + /** + * The default value for the width of the grid + */ + public static final int DEFAULT_WIDTH = 5; + /** + * The default value for the height of the grid + */ + public static final int DEFAULT_HEIGHT = 5; private long numberOfOrganisms; diff --git a/src/main/java/team/rocket/Simulation.java b/src/main/java/team/rocket/Simulation.java index 639a052..a42fd8a 100644 --- a/src/main/java/team/rocket/Simulation.java +++ b/src/main/java/team/rocket/Simulation.java @@ -28,9 +28,18 @@ */ public class Simulation implements Runnable { private Map map; // Grid that organisms can exist in - public static final int DEFAULT_DAYS_PER_RUN = 10; // The default number of days in each run - public static final int DEFAULT_TIME_STEPS_PER_DAY = 10; // The default number of time steps in each day - public static final int DEFAULT_MILLISECONDS_PER_TIME_STEP = 100; // The default number of real-world milliseconds in each time step + /** + * The default number of days in each run + */ + public static final int DEFAULT_DAYS_PER_RUN = 10; + /** + * The default number of time steps in each day + */ + public static final int DEFAULT_TIME_STEPS_PER_DAY = 10; + /** + * The default number of real-world milliseconds in each time step + */ + public static final int DEFAULT_MILLISECONDS_PER_TIME_STEP = 100; private int currentDay; // The current day of the simulation private int currentTimeStep; // The current time step within the current day of the simulation private int daysPerRun; // The number of days that make up each run of the simulation @@ -268,26 +277,50 @@ private void moveDirection(AbstractAnimal animal, AbstractOrganism[] neighbors, } } + /** + * Sets the days per run value + * @param daysPerRun the new number of days per run + */ public void setDaysPerRun(int daysPerRun) { this.daysPerRun = daysPerRun; } + /** + * Sets the timesteps per day + * @param timeStepsPerDay the new number of timesteps per day + */ public void setTimeStepsPerDay(int timeStepsPerDay) { this.timeStepsPerDay = timeStepsPerDay; } + /** + * Set the milliseconds per timestep + * @param millisecondsPerTimeStep the new duration of milliseconds per timestep + */ public void setMillisecondsPerTimeStep(int millisecondsPerTimeStep) { this.millisecondsPerTimeStep = millisecondsPerTimeStep; } + /** + * Returns the current day of the simulation + * @return the current day of the simulation + */ public int getCurrentDay() { return currentDay; } + /** + * gets the current timestep + * @return the current timestep + */ public int getCurrentTimeStep() { return currentTimeStep; } + /** + * Getter for the simulation map + * @return the sim. map + */ public Map getMap(){return map; } /** From 32e1237627f5f8eb9ae862fb634c3a611a7aea93 Mon Sep 17 00:00:00 2001 From: Xavier Beatrice Date: Tue, 5 Dec 2023 19:30:27 -0500 Subject: [PATCH 3/3] Fixing an annoying bug --- api/allclasses-index.html | 4 +- api/allpackages-index.html | 4 +- api/constant-values.html | 4 +- api/help-doc.html | 4 +- api/index-files/index-1.html | 4 +- api/index-files/index-10.html | 4 +- api/index-files/index-11.html | 4 +- api/index-files/index-12.html | 4 +- api/index-files/index-13.html | 4 +- api/index-files/index-14.html | 4 +- api/index-files/index-15.html | 4 +- api/index-files/index-16.html | 4 +- api/index-files/index-17.html | 4 +- api/index-files/index-2.html | 4 +- api/index-files/index-3.html | 4 +- api/index-files/index-4.html | 4 +- api/index-files/index-5.html | 4 +- api/index-files/index-6.html | 4 +- api/index-files/index-7.html | 6 +- api/index-files/index-8.html | 4 +- api/index-files/index-9.html | 8 +- api/index.html | 4 +- api/jquery-ui.overrides.css | 42 +- api/legal/ADDITIONAL_LICENSE_INFO | 37 ++ api/legal/ASSEMBLY_EXCEPTION | 27 + api/legal/COPYRIGHT | 69 --- api/legal/LICENSE | 465 +++++++++++++----- api/member-search-index.js | 2 +- api/overview-summary.html | 4 +- api/overview-tree.html | 4 +- api/script.js | 42 +- api/search.js | 34 +- api/stylesheet.css | 9 +- api/team/rocket/Entities/AbstractAnimal.html | 40 +- .../rocket/Entities/AbstractOrganism.html | 6 +- api/team/rocket/Entities/AbstractPlant.html | 6 +- api/team/rocket/Entities/Carrot.html | 6 +- api/team/rocket/Entities/Fox.html | 63 ++- api/team/rocket/Entities/Grass.html | 6 +- api/team/rocket/Entities/OrganismFactory.html | 6 +- api/team/rocket/Entities/Rabbit.html | 10 +- api/team/rocket/Entities/package-summary.html | 4 +- api/team/rocket/Entities/package-tree.html | 4 +- api/team/rocket/Enums/Direction.html | 4 +- api/team/rocket/Enums/package-summary.html | 4 +- api/team/rocket/Enums/package-tree.html | 4 +- .../IO/Terminal/DaysPerRunFlagHandler.html | 6 +- api/team/rocket/IO/Terminal/FlagHandler.html | 6 +- .../IO/Terminal/GridSizeFlagHandler.html | 6 +- .../InitialOrganismCountFlagHandler.html | 6 +- .../IO/Terminal/TerminalFlagRequest.html | 6 +- .../Terminal/TimeStepsPerDayFlagHandler.html | 6 +- .../rocket/IO/Terminal/package-summary.html | 4 +- api/team/rocket/IO/Terminal/package-tree.html | 4 +- api/team/rocket/IO/UI.html | 6 +- api/team/rocket/IO/package-summary.html | 4 +- api/team/rocket/IO/package-tree.html | 4 +- api/team/rocket/Map.html | 8 +- api/team/rocket/Simulation.html | 8 +- api/team/rocket/package-summary.html | 4 +- api/team/rocket/package-tree.html | 4 +- api/team/rocket/util/RandomManager.html | 6 +- api/team/rocket/util/TimeManager.html | 6 +- api/team/rocket/util/package-summary.html | 4 +- api/team/rocket/util/package-tree.html | 4 +- 65 files changed, 685 insertions(+), 409 deletions(-) create mode 100644 api/legal/ADDITIONAL_LICENSE_INFO create mode 100644 api/legal/ASSEMBLY_EXCEPTION delete mode 100644 api/legal/COPYRIGHT diff --git a/api/allclasses-index.html b/api/allclasses-index.html index f7a5ff4..cff6553 100644 --- a/api/allclasses-index.html +++ b/api/allclasses-index.html @@ -1,11 +1,11 @@ - + All Classes and Interfaces - + diff --git a/api/allpackages-index.html b/api/allpackages-index.html index fd48c7c..53af28a 100644 --- a/api/allpackages-index.html +++ b/api/allpackages-index.html @@ -1,11 +1,11 @@ - + All Packages - + diff --git a/api/constant-values.html b/api/constant-values.html index 5a56790..a035d47 100644 --- a/api/constant-values.html +++ b/api/constant-values.html @@ -1,11 +1,11 @@ - + Constant Field Values - + diff --git a/api/help-doc.html b/api/help-doc.html index 314f5a6..f190c1c 100644 --- a/api/help-doc.html +++ b/api/help-doc.html @@ -1,11 +1,11 @@ - + API Help - + diff --git a/api/index-files/index-1.html b/api/index-files/index-1.html index 4571fa1..3feb7a8 100644 --- a/api/index-files/index-1.html +++ b/api/index-files/index-1.html @@ -1,11 +1,11 @@ - + A-Index - + diff --git a/api/index-files/index-10.html b/api/index-files/index-10.html index c178ceb..5aee768 100644 --- a/api/index-files/index-10.html +++ b/api/index-files/index-10.html @@ -1,11 +1,11 @@ - + L-Index - + diff --git a/api/index-files/index-11.html b/api/index-files/index-11.html index 2e38557..147981d 100644 --- a/api/index-files/index-11.html +++ b/api/index-files/index-11.html @@ -1,11 +1,11 @@ - + M-Index - + diff --git a/api/index-files/index-12.html b/api/index-files/index-12.html index 2dfd60d..6ebf7df 100644 --- a/api/index-files/index-12.html +++ b/api/index-files/index-12.html @@ -1,11 +1,11 @@ - + O-Index - + diff --git a/api/index-files/index-13.html b/api/index-files/index-13.html index 6a9efa6..40d8cd9 100644 --- a/api/index-files/index-13.html +++ b/api/index-files/index-13.html @@ -1,11 +1,11 @@ - + R-Index - + diff --git a/api/index-files/index-14.html b/api/index-files/index-14.html index 83cfba7..078207a 100644 --- a/api/index-files/index-14.html +++ b/api/index-files/index-14.html @@ -1,11 +1,11 @@ - + S-Index - + diff --git a/api/index-files/index-15.html b/api/index-files/index-15.html index c59fbec..db4e987 100644 --- a/api/index-files/index-15.html +++ b/api/index-files/index-15.html @@ -1,11 +1,11 @@ - + T-Index - + diff --git a/api/index-files/index-16.html b/api/index-files/index-16.html index f44aa17..f038929 100644 --- a/api/index-files/index-16.html +++ b/api/index-files/index-16.html @@ -1,11 +1,11 @@ - + U-Index - + diff --git a/api/index-files/index-17.html b/api/index-files/index-17.html index f05837f..857218d 100644 --- a/api/index-files/index-17.html +++ b/api/index-files/index-17.html @@ -1,11 +1,11 @@ - + V-Index - + diff --git a/api/index-files/index-2.html b/api/index-files/index-2.html index 9203e15..0b10220 100644 --- a/api/index-files/index-2.html +++ b/api/index-files/index-2.html @@ -1,11 +1,11 @@ - + B-Index - + diff --git a/api/index-files/index-3.html b/api/index-files/index-3.html index 92abf93..677d62d 100644 --- a/api/index-files/index-3.html +++ b/api/index-files/index-3.html @@ -1,11 +1,11 @@ - + C-Index - + diff --git a/api/index-files/index-4.html b/api/index-files/index-4.html index 72ed6fd..9ea575a 100644 --- a/api/index-files/index-4.html +++ b/api/index-files/index-4.html @@ -1,11 +1,11 @@ - + D-Index - + diff --git a/api/index-files/index-5.html b/api/index-files/index-5.html index 65fae25..ec04f39 100644 --- a/api/index-files/index-5.html +++ b/api/index-files/index-5.html @@ -1,11 +1,11 @@ - + E-Index - + diff --git a/api/index-files/index-6.html b/api/index-files/index-6.html index 6a79c48..a6d0cc3 100644 --- a/api/index-files/index-6.html +++ b/api/index-files/index-6.html @@ -1,11 +1,11 @@ - + F-Index - + diff --git a/api/index-files/index-7.html b/api/index-files/index-7.html index 7aea0c1..a8deac0 100644 --- a/api/index-files/index-7.html +++ b/api/index-files/index-7.html @@ -1,11 +1,11 @@ - + G-Index - + @@ -87,6 +87,8 @@

    G

    Returns the height of the grid of the team.rocket.Map.
    +
    getHunger() - Method in class team.rocket.Entities.AbstractAnimal
    +
     
    getHunger() - Method in class team.rocket.Entities.Fox
     
    getHunger() - Method in class team.rocket.Entities.Rabbit
    diff --git a/api/index-files/index-8.html b/api/index-files/index-8.html index 88efa44..e17df11 100644 --- a/api/index-files/index-8.html +++ b/api/index-files/index-8.html @@ -1,11 +1,11 @@ - + H-Index - + diff --git a/api/index-files/index-9.html b/api/index-files/index-9.html index ff4f134..30b27f6 100644 --- a/api/index-files/index-9.html +++ b/api/index-files/index-9.html @@ -1,11 +1,11 @@ - + I-Index - + @@ -93,6 +93,10 @@

    I

    Returns a boolean telling whether the map is full
    +
    isStarving() - Method in class team.rocket.Entities.AbstractAnimal
    +
     
    +
    isStarving() - Method in class team.rocket.Entities.Fox
    +
     
    isStarving() - Method in class team.rocket.Entities.Rabbit
    Is the rabbit starving?
    diff --git a/api/index.html b/api/index.html index 6148374..fdfc7f5 100644 --- a/api/index.html +++ b/api/index.html @@ -1,11 +1,11 @@ - + Overview - + diff --git a/api/jquery-ui.overrides.css b/api/jquery-ui.overrides.css index 03c010b..facf852 100644 --- a/api/jquery-ui.overrides.css +++ b/api/jquery-ui.overrides.css @@ -1,26 +1,26 @@ /* * Copyright (c) 2020, 2022, Oracle and/or its affiliates. All rights reserved. - * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. Oracle designates this + * particular file as subject to the "Classpath" exception as provided + * by Oracle in the LICENSE file that accompanied this code. + * + * This code is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA + * or visit www.oracle.com if you need additional information or have any + * questions. */ .ui-state-active, diff --git a/api/legal/ADDITIONAL_LICENSE_INFO b/api/legal/ADDITIONAL_LICENSE_INFO new file mode 100644 index 0000000..ff700cd --- /dev/null +++ b/api/legal/ADDITIONAL_LICENSE_INFO @@ -0,0 +1,37 @@ + ADDITIONAL INFORMATION ABOUT LICENSING + +Certain files distributed by Oracle America, Inc. and/or its affiliates are +subject to the following clarification and special exception to the GPLv2, +based on the GNU Project exception for its Classpath libraries, known as the +GNU Classpath Exception. + +Note that Oracle includes multiple, independent programs in this software +package. Some of those programs are provided under licenses deemed +incompatible with the GPLv2 by the Free Software Foundation and others. +For example, the package includes programs licensed under the Apache +License, Version 2.0 and may include FreeType. Such programs are licensed +to you under their original licenses. + +Oracle facilitates your further distribution of this package by adding the +Classpath Exception to the necessary parts of its GPLv2 code, which permits +you to use that code in combination with other independent modules not +licensed under the GPLv2. However, note that this would not permit you to +commingle code under an incompatible license with Oracle's GPLv2 licensed +code by, for example, cutting and pasting such code into a file also +containing Oracle's GPLv2 licensed code and then distributing the result. + +Additionally, if you were to remove the Classpath Exception from any of the +files to which it applies and distribute the result, you would likely be +required to license some or all of the other code in that distribution under +the GPLv2 as well, and since the GPLv2 is incompatible with the license terms +of some items included in the distribution by Oracle, removing the Classpath +Exception could therefore effectively compromise your ability to further +distribute the package. + +Failing to distribute notices associated with some files may also create +unexpected legal consequences. + +Proceed with caution and we recommend that you obtain the advice of a lawyer +skilled in open source matters before removing the Classpath Exception or +making modifications to this package which may subsequently be redistributed +and/or involve the use of third party software. diff --git a/api/legal/ASSEMBLY_EXCEPTION b/api/legal/ASSEMBLY_EXCEPTION new file mode 100644 index 0000000..065b8d9 --- /dev/null +++ b/api/legal/ASSEMBLY_EXCEPTION @@ -0,0 +1,27 @@ + +OPENJDK ASSEMBLY EXCEPTION + +The OpenJDK source code made available by Oracle America, Inc. (Oracle) at +openjdk.java.net ("OpenJDK Code") is distributed under the terms of the GNU +General Public License version 2 +only ("GPL2"), with the following clarification and special exception. + + Linking this OpenJDK Code statically or dynamically with other code + is making a combined work based on this library. Thus, the terms + and conditions of GPL2 cover the whole combination. + + As a special exception, Oracle gives you permission to link this + OpenJDK Code with certain code licensed by Oracle as indicated at + http://openjdk.java.net/legal/exception-modules-2007-05-08.html + ("Designated Exception Modules") to produce an executable, + regardless of the license terms of the Designated Exception Modules, + and to copy and distribute the resulting executable under GPL2, + provided that the Designated Exception Modules continue to be + governed by the licenses under which they were offered by Oracle. + +As such, it allows licensees and sublicensees of Oracle's GPL2 OpenJDK Code +to build an executable that includes those portions of necessary code that +Oracle could not provide under GPL2 (or that Oracle has provided under GPL2 +with the Classpath exception). If you modify or add to the OpenJDK code, +that new GPL2 code may still be combined with Designated Exception Modules +if the new code is made subject to this exception by its copyright holder. diff --git a/api/legal/COPYRIGHT b/api/legal/COPYRIGHT deleted file mode 100644 index 945e19c..0000000 --- a/api/legal/COPYRIGHT +++ /dev/null @@ -1,69 +0,0 @@ -Copyright © 1993, 2018, Oracle and/or its affiliates. -All rights reserved. - -This software and related documentation are provided under a -license agreement containing restrictions on use and -disclosure and are protected by intellectual property laws. -Except as expressly permitted in your license agreement or -allowed by law, you may not use, copy, reproduce, translate, -broadcast, modify, license, transmit, distribute, exhibit, -perform, publish, or display any part, in any form, or by -any means. Reverse engineering, disassembly, or -decompilation of this software, unless required by law for -interoperability, is prohibited. - -The information contained herein is subject to change -without notice and is not warranted to be error-free. If you -find any errors, please report them to us in writing. - -If this is software or related documentation that is -delivered to the U.S. Government or anyone licensing it on -behalf of the U.S. Government, the following notice is -applicable: - -U.S. GOVERNMENT END USERS: Oracle programs, including any -operating system, integrated software, any programs -installed on the hardware, and/or documentation, delivered -to U.S. Government end users are "commercial computer -software" pursuant to the applicable Federal Acquisition -Regulation and agency-specific supplemental regulations. As -such, use, duplication, disclosure, modification, and -adaptation of the programs, including any operating system, -integrated software, any programs installed on the hardware, -and/or documentation, shall be subject to license terms and -license restrictions applicable to the programs. No other -rights are granted to the U.S. Government. - -This software or hardware is developed for general use in a -variety of information management applications. It is not -developed or intended for use in any inherently dangerous -applications, including applications that may create a risk -of personal injury. If you use this software or hardware in -dangerous applications, then you shall be responsible to -take all appropriate fail-safe, backup, redundancy, and -other measures to ensure its safe use. Oracle Corporation -and its affiliates disclaim any liability for any damages -caused by use of this software or hardware in dangerous -applications. - -Oracle and Java are registered trademarks of Oracle and/or -its affiliates. Other names may be trademarks of their -respective owners. - -Intel and Intel Xeon are trademarks or registered trademarks -of Intel Corporation. All SPARC trademarks are used under -license and are trademarks or registered trademarks of SPARC -International, Inc. AMD, Opteron, the AMD logo, and the AMD -Opteron logo are trademarks or registered trademarks of -Advanced Micro Devices. UNIX is a registered trademark of -The Open Group. - -This software or hardware and documentation may provide -access to or information on content, products, and services -from third parties. Oracle Corporation and its affiliates -are not responsible for and expressly disclaim all -warranties of any kind with respect to third-party content, -products, and services. Oracle Corporation and its -affiliates will not be responsible for any loss, costs, or -damages incurred due to your access to or use of third-party -content, products, or services. diff --git a/api/legal/LICENSE b/api/legal/LICENSE index ee860d3..8b400c7 100644 --- a/api/legal/LICENSE +++ b/api/legal/LICENSE @@ -1,118 +1,347 @@ -Your use of this Program is governed by the No-Fee Terms and Conditions set -forth below, unless you have received this Program (alone or as part of another -Oracle product) under an Oracle license agreement (including but not limited to -the Oracle Master Agreement), in which case your use of this Program is governed -solely by such license agreement with Oracle. - -Oracle No-Fee Terms and Conditions (NFTC) - -Definitions - -"Oracle" refers to Oracle America, Inc. "You" and "Your" refers to (a) a company -or organization (each an "Entity") accessing the Programs, if use of the -Programs will be on behalf of such Entity; or (b) an individual accessing the -Programs, if use of the Programs will not be on behalf of an Entity. -"Program(s)" refers to Oracle software provided by Oracle pursuant to the -following terms and any updates, error corrections, and/or Program Documentation -provided by Oracle. "Program Documentation" refers to Program user manuals and -Program installation manuals, if any. If available, Program Documentation may be -delivered with the Programs and/or may be accessed from -www.oracle.com/documentation. "Separate Terms" refers to separate license terms -that are specified in the Program Documentation, readmes or notice files and -that apply to Separately Licensed Technology. "Separately Licensed Technology" -refers to Oracle or third party technology that is licensed under Separate Terms -and not under the terms of this license. - -Separately Licensed Technology - -Oracle may provide certain notices to You in Program Documentation, readmes or -notice files in connection with Oracle or third party technology provided as or -with the Programs. If specified in the Program Documentation, readmes or notice -files, such technology will be licensed to You under Separate Terms. Your rights -to use Separately Licensed Technology under Separate Terms are not restricted in -any way by the terms herein. For clarity, notwithstanding the existence of a -notice, third party technology that is not Separately Licensed Technology shall -be deemed part of the Programs licensed to You under the terms of this license. - -Source Code for Open Source Software - -For software that You receive from Oracle in binary form that is licensed under -an open source license that gives You the right to receive the source code for -that binary, You can obtain a copy of the applicable source code from -https://oss.oracle.com/sources/ or http://www.oracle.com/goto/opensourcecode. If -the source code for such software was not provided to You with the binary, You -can also receive a copy of the source code on physical media by submitting a -written request pursuant to the instructions in the "Written Offer for Source -Code" section of the latter website. - -------------------------------------------------------------------------------- - -The following license terms apply to those Programs that are not provided to You -under Separate Terms. - -License Rights and Restrictions - -Oracle grants to You, as a recipient of this Program, subject to the conditions -stated herein, a nonexclusive, nontransferable, limited license to: - -(a) internally use the unmodified Programs for the purposes of developing, -testing, prototyping and demonstrating your applications, and running the -Program for Your own personal use or internal business operations; and - -(b) redistribute the unmodified Program and Program Documentation, under the -terms of this License, provided that You do not charge Your licensees any fees -associated with such distribution or use of the Program, including, without -limitation, fees for products that include or are bundled with a copy of the -Program or for services that involve the use of the distributed Program. - -You may make copies of the Programs to the extent reasonably necessary for -exercising the license rights granted herein and for backup purposes. You are -granted the right to use the Programs to provide third party training in the use -of the Programs and associated Separately Licensed Technology only if there is -express authorization of such use by Oracle on the Program's download page or in -the Program Documentation. - -Your license is contingent on compliance with the following conditions: - -- You do not remove markings or notices of either Oracle's or a licensor's - proprietary rights from the Programs or Program Documentation; - -- You comply with all U.S. and applicable export control and economic sanctions - laws and regulations that govern Your use of the Programs (including technical - data); - -- You do not cause or permit reverse engineering, disassembly or decompilation - of the Programs (except as allowed by law) by You nor allow an associated - party to do so. - -For clarity, any source code that may be included in the distribution with the -Programs is provided solely for reference purposes and may not be modified, -unless such source code is under Separate Terms permitting modification. - -Ownership - -Oracle or its licensors retain all ownership and intellectual property rights to -the Programs. - -Information Collection - -The Programs' installation and/or auto-update processes, if any, may transmit a -limited amount of data to Oracle or its service provider about those processes -to help Oracle understand and optimize them. Oracle does not associate the data -with personally identifiable information. Refer to Oracle's Privacy Policy at -www.oracle.com/privacy. - -Disclaimer of Warranties; Limitation of Liability - -THE PROGRAMS ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. ORACLE FURTHER -DISCLAIMS ALL WARRANTIES, EXPRESS AND IMPLIED, INCLUDING WITHOUT LIMITATION, ANY -IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR -NONINFRINGEMENT. - -IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW WILL ORACLE BE LIABLE TO YOU FOR -DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES -ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT -LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY -YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER -PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE -POSSIBILITY OF SUCH DAMAGES. +The GNU General Public License (GPL) + +Version 2, June 1991 + +Copyright (C) 1989, 1991 Free Software Foundation, Inc. +51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + +Everyone is permitted to copy and distribute verbatim copies of this license +document, but changing it is not allowed. + +Preamble + +The licenses for most software are designed to take away your freedom to share +and change it. By contrast, the GNU General Public License is intended to +guarantee your freedom to share and change free software--to make sure the +software is free for all its users. This General Public License applies to +most of the Free Software Foundation's software and to any other program whose +authors commit to using it. (Some other Free Software Foundation software is +covered by the GNU Library General Public License instead.) You can apply it to +your programs, too. + +When we speak of free software, we are referring to freedom, not price. Our +General Public Licenses are designed to make sure that you have the freedom to +distribute copies of free software (and charge for this service if you wish), +that you receive source code or can get it if you want it, that you can change +the software or use pieces of it in new free programs; and that you know you +can do these things. + +To protect your rights, we need to make restrictions that forbid anyone to deny +you these rights or to ask you to surrender the rights. These restrictions +translate to certain responsibilities for you if you distribute copies of the +software, or if you modify it. + +For example, if you distribute copies of such a program, whether gratis or for +a fee, you must give the recipients all the rights that you have. You must +make sure that they, too, receive or can get the source code. And you must +show them these terms so they know their rights. + +We protect your rights with two steps: (1) copyright the software, and (2) +offer you this license which gives you legal permission to copy, distribute +and/or modify the software. + +Also, for each author's protection and ours, we want to make certain that +everyone understands that there is no warranty for this free software. If the +software is modified by someone else and passed on, we want its recipients to +know that what they have is not the original, so that any problems introduced +by others will not reflect on the original authors' reputations. + +Finally, any free program is threatened constantly by software patents. We +wish to avoid the danger that redistributors of a free program will +individually obtain patent licenses, in effect making the program proprietary. +To prevent this, we have made it clear that any patent must be licensed for +everyone's free use or not licensed at all. + +The precise terms and conditions for copying, distribution and modification +follow. + +TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + +0. This License applies to any program or other work which contains a notice +placed by the copyright holder saying it may be distributed under the terms of +this General Public License. The "Program", below, refers to any such program +or work, and a "work based on the Program" means either the Program or any +derivative work under copyright law: that is to say, a work containing the +Program or a portion of it, either verbatim or with modifications and/or +translated into another language. (Hereinafter, translation is included +without limitation in the term "modification".) Each licensee is addressed as +"you". + +Activities other than copying, distribution and modification are not covered by +this License; they are outside its scope. The act of running the Program is +not restricted, and the output from the Program is covered only if its contents +constitute a work based on the Program (independent of having been made by +running the Program). Whether that is true depends on what the Program does. + +1. You may copy and distribute verbatim copies of the Program's source code as +you receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice and +disclaimer of warranty; keep intact all the notices that refer to this License +and to the absence of any warranty; and give any other recipients of the +Program a copy of this License along with the Program. + +You may charge a fee for the physical act of transferring a copy, and you may +at your option offer warranty protection in exchange for a fee. + +2. You may modify your copy or copies of the Program or any portion of it, thus +forming a work based on the Program, and copy and distribute such modifications +or work under the terms of Section 1 above, provided that you also meet all of +these conditions: + + a) You must cause the modified files to carry prominent notices stating + that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in whole or + in part contains or is derived from the Program or any part thereof, to be + licensed as a whole at no charge to all third parties under the terms of + this License. + + c) If the modified program normally reads commands interactively when run, + you must cause it, when started running for such interactive use in the + most ordinary way, to print or display an announcement including an + appropriate copyright notice and a notice that there is no warranty (or + else, saying that you provide a warranty) and that users may redistribute + the program under these conditions, and telling the user how to view a copy + of this License. (Exception: if the Program itself is interactive but does + not normally print such an announcement, your work based on the Program is + not required to print an announcement.) + +These requirements apply to the modified work as a whole. If identifiable +sections of that work are not derived from the Program, and can be reasonably +considered independent and separate works in themselves, then this License, and +its terms, do not apply to those sections when you distribute them as separate +works. But when you distribute the same sections as part of a whole which is a +work based on the Program, the distribution of the whole must be on the terms +of this License, whose permissions for other licensees extend to the entire +whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest your +rights to work written entirely by you; rather, the intent is to exercise the +right to control the distribution of derivative or collective works based on +the Program. + +In addition, mere aggregation of another work not based on the Program with the +Program (or with a work based on the Program) on a volume of a storage or +distribution medium does not bring the other work under the scope of this +License. + +3. You may copy and distribute the Program (or a work based on it, under +Section 2) in object code or executable form under the terms of Sections 1 and +2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable source + code, which must be distributed under the terms of Sections 1 and 2 above + on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three years, to + give any third party, for a charge no more than your cost of physically + performing source distribution, a complete machine-readable copy of the + corresponding source code, to be distributed under the terms of Sections 1 + and 2 above on a medium customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer to + distribute corresponding source code. (This alternative is allowed only + for noncommercial distribution and only if you received the program in + object code or executable form with such an offer, in accord with + Subsection b above.) + +The source code for a work means the preferred form of the work for making +modifications to it. For an executable work, complete source code means all +the source code for all modules it contains, plus any associated interface +definition files, plus the scripts used to control compilation and installation +of the executable. However, as a special exception, the source code +distributed need not include anything that is normally distributed (in either +source or binary form) with the major components (compiler, kernel, and so on) +of the operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering access to copy +from a designated place, then offering equivalent access to copy the source +code from the same place counts as distribution of the source code, even though +third parties are not compelled to copy the source along with the object code. + +4. You may not copy, modify, sublicense, or distribute the Program except as +expressly provided under this License. Any attempt otherwise to copy, modify, +sublicense or distribute the Program is void, and will automatically terminate +your rights under this License. However, parties who have received copies, or +rights, from you under this License will not have their licenses terminated so +long as such parties remain in full compliance. + +5. You are not required to accept this License, since you have not signed it. +However, nothing else grants you permission to modify or distribute the Program +or its derivative works. These actions are prohibited by law if you do not +accept this License. Therefore, by modifying or distributing the Program (or +any work based on the Program), you indicate your acceptance of this License to +do so, and all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + +6. Each time you redistribute the Program (or any work based on the Program), +the recipient automatically receives a license from the original licensor to +copy, distribute or modify the Program subject to these terms and conditions. +You may not impose any further restrictions on the recipients' exercise of the +rights granted herein. You are not responsible for enforcing compliance by +third parties to this License. + +7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), conditions +are imposed on you (whether by court order, agreement or otherwise) that +contradict the conditions of this License, they do not excuse you from the +conditions of this License. If you cannot distribute so as to satisfy +simultaneously your obligations under this License and any other pertinent +obligations, then as a consequence you may not distribute the Program at all. +For example, if a patent license would not permit royalty-free redistribution +of the Program by all those who receive copies directly or indirectly through +you, then the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under any +particular circumstance, the balance of the section is intended to apply and +the section as a whole is intended to apply in other circumstances. + +It is not the purpose of this section to induce you to infringe any patents or +other property right claims or to contest validity of any such claims; this +section has the sole purpose of protecting the integrity of the free software +distribution system, which is implemented by public license practices. Many +people have made generous contributions to the wide range of software +distributed through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing to +distribute software through any other system and a licensee cannot impose that +choice. + +This section is intended to make thoroughly clear what is believed to be a +consequence of the rest of this License. + +8. If the distribution and/or use of the Program is restricted in certain +countries either by patents or by copyrighted interfaces, the original +copyright holder who places the Program under this License may add an explicit +geographical distribution limitation excluding those countries, so that +distribution is permitted only in or among countries not thus excluded. In +such case, this License incorporates the limitation as if written in the body +of this License. + +9. The Free Software Foundation may publish revised and/or new versions of the +General Public License from time to time. Such new versions will be similar in +spirit to the present version, but may differ in detail to address new problems +or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any later +version", you have the option of following the terms and conditions either of +that version or of any later version published by the Free Software Foundation. +If the Program does not specify a version number of this License, you may +choose any version ever published by the Free Software Foundation. + +10. If you wish to incorporate parts of the Program into other free programs +whose distribution conditions are different, write to the author to ask for +permission. For software which is copyrighted by the Free Software Foundation, +write to the Free Software Foundation; we sometimes make exceptions for this. +Our decision will be guided by the two goals of preserving the free status of +all derivatives of our free software and of promoting the sharing and reuse of +software generally. + +NO WARRANTY + +11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR +THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE +STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE +PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, +INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND +FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND +PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, +YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + +12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL +ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE +PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR +INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA +BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A +FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER +OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. + +END OF TERMS AND CONDITIONS + +How to Apply These Terms to Your New Programs + +If you develop a new program, and you want it to be of the greatest possible +use to the public, the best way to achieve this is to make it free software +which everyone can redistribute and change under these terms. + +To do so, attach the following notices to the program. It is safest to attach +them to the start of each source file to most effectively convey the exclusion +of warranty; and each file should have at least the "copyright" line and a +pointer to where the full notice is found. + + One line to give the program's name and a brief idea of what it does. + + Copyright (C) + + This program is free software; you can redistribute it and/or modify it + under the terms of the GNU General Public License as published by the Free + Software Foundation; either version 2 of the License, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, but WITHOUT + ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this when it +starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author Gnomovision comes + with ABSOLUTELY NO WARRANTY; for details type 'show w'. This is free + software, and you are welcome to redistribute it under certain conditions; + type 'show c' for details. + +The hypothetical commands 'show w' and 'show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may be +called something other than 'show w' and 'show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your school, +if any, to sign a "copyright disclaimer" for the program, if necessary. Here +is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + 'Gnomovision' (which makes passes at compilers) written by James Hacker. + + signature of Ty Coon, 1 April 1989 + + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Library General Public +License instead of this License. + + +"CLASSPATH" EXCEPTION TO THE GPL + +Certain source files distributed by Oracle America and/or its affiliates are +subject to the following clarification and special exception to the GPL, but +only where Oracle has expressly included in the particular source file's header +the words "Oracle designates this particular file as subject to the "Classpath" +exception as provided by Oracle in the LICENSE file that accompanied this code." + + Linking this library statically or dynamically with other modules is making + a combined work based on this library. Thus, the terms and conditions of + the GNU General Public License cover the whole combination. + + As a special exception, the copyright holders of this library give you + permission to link this library with independent modules to produce an + executable, regardless of the license terms of these independent modules, + and to copy and distribute the resulting executable under terms of your + choice, provided that you also meet, for each linked independent module, + the terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. If + you modify this library, you may extend this exception to your version of + the library, but you are not obligated to do so. If you do not wish to do + so, delete this exception statement from your version. diff --git a/api/member-search-index.js b/api/member-search-index.js index 0714784..883ef72 100644 --- a/api/member-search-index.js +++ b/api/member-search-index.js @@ -1 +1 @@ -memberSearchIndex = [{"p":"team.rocket.Entities","c":"AbstractAnimal","l":"AbstractAnimal()","u":"%3Cinit%3E()"},{"p":"team.rocket.Entities","c":"AbstractOrganism","l":"AbstractOrganism()","u":"%3Cinit%3E()"},{"p":"team.rocket.Entities","c":"AbstractPlant","l":"AbstractPlant()","u":"%3Cinit%3E()"},{"p":"team.rocket","c":"Map","l":"addOrganism(AbstractOrganism, int, int)","u":"addOrganism(team.rocket.Entities.AbstractOrganism,int,int)"},{"p":"team.rocket.Entities","c":"AbstractAnimal","l":"availableMovementSpace(AbstractOrganism[])","u":"availableMovementSpace(team.rocket.Entities.AbstractOrganism[])"},{"p":"team.rocket.Entities","c":"Fox","l":"availableMovementSpace(AbstractOrganism[])","u":"availableMovementSpace(team.rocket.Entities.AbstractOrganism[])"},{"p":"team.rocket.Entities","c":"Rabbit","l":"availableMovementSpace(AbstractOrganism[])","u":"availableMovementSpace(team.rocket.Entities.AbstractOrganism[])"},{"p":"team.rocket.Entities","c":"Carrot","l":"availableSpace(AbstractOrganism[])","u":"availableSpace(team.rocket.Entities.AbstractOrganism[])"},{"p":"team.rocket.Entities","c":"Grass","l":"availableSpace(AbstractOrganism[])","u":"availableSpace(team.rocket.Entities.AbstractOrganism[])"},{"p":"team.rocket.Entities","c":"Fox","l":"breed()"},{"p":"team.rocket.Entities","c":"Carrot","l":"Carrot()","u":"%3Cinit%3E()"},{"p":"team.rocket.Entities","c":"OrganismFactory","l":"createOrganism(String)","u":"createOrganism(java.lang.String)"},{"p":"team.rocket.IO.Terminal","c":"DaysPerRunFlagHandler","l":"DaysPerRunFlagHandler()","u":"%3Cinit%3E()"},{"p":"team.rocket","c":"Simulation","l":"DEFAULT_DAYS_PER_RUN"},{"p":"team.rocket","c":"Map","l":"DEFAULT_HEIGHT"},{"p":"team.rocket","c":"Simulation","l":"DEFAULT_MILLISECONDS_PER_TIME_STEP"},{"p":"team.rocket","c":"Simulation","l":"DEFAULT_TIME_STEPS_PER_DAY"},{"p":"team.rocket","c":"Map","l":"DEFAULT_WIDTH"},{"p":"team.rocket.Enums","c":"Direction","l":"directionFromInt(int)"},{"p":"team.rocket.Enums","c":"Direction","l":"directionFromString(String)","u":"directionFromString(java.lang.String)"},{"p":"team.rocket.Enums","c":"Direction","l":"DOWN"},{"p":"team.rocket.Entities","c":"Fox","l":"eat(Map, int, int)","u":"eat(team.rocket.Map,int,int)"},{"p":"team.rocket.Entities","c":"Rabbit","l":"eat(Map, int, int)","u":"eat(team.rocket.Map,int,int)"},{"p":"team.rocket.Entities","c":"Fox","l":"findNeighbors(Map, int, int)","u":"findNeighbors(team.rocket.Map,int,int)"},{"p":"team.rocket.Entities","c":"Rabbit","l":"findNeighbors(Map, int, int)","u":"findNeighbors(team.rocket.Map,int,int)"},{"p":"team.rocket.IO.Terminal","c":"FlagHandler","l":"FlagHandler()","u":"%3Cinit%3E()"},{"p":"team.rocket.Entities","c":"Fox","l":"Fox()","u":"%3Cinit%3E()"},{"p":"team.rocket.Entities","c":"AbstractAnimal","l":"getCount()"},{"p":"team.rocket.Entities","c":"AbstractOrganism","l":"getCount()"},{"p":"team.rocket.Entities","c":"AbstractPlant","l":"getCount()"},{"p":"team.rocket.Entities","c":"Carrot","l":"getCount()"},{"p":"team.rocket.Entities","c":"Fox","l":"getCount()"},{"p":"team.rocket.Entities","c":"Grass","l":"getCount()"},{"p":"team.rocket.Entities","c":"Rabbit","l":"getCount()"},{"p":"team.rocket","c":"Simulation","l":"getCurrentDay()"},{"p":"team.rocket.util","c":"TimeManager","l":"getCurrentTime()"},{"p":"team.rocket","c":"Simulation","l":"getCurrentTimeStep()"},{"p":"team.rocket","c":"Map","l":"getGrid()"},{"p":"team.rocket","c":"Map","l":"getHeight()"},{"p":"team.rocket.Entities","c":"Fox","l":"getHunger()"},{"p":"team.rocket.Entities","c":"Rabbit","l":"getHunger()"},{"p":"team.rocket.Entities","c":"OrganismFactory","l":"getInstance()"},{"p":"team.rocket.IO.Terminal","c":"TerminalFlagRequest","l":"getMap()"},{"p":"team.rocket","c":"Simulation","l":"getMap()"},{"p":"team.rocket","c":"Map","l":"getNeighbors(int, int)","u":"getNeighbors(int,int)"},{"p":"team.rocket","c":"Map","l":"getNeighborsAsCharacter(int, int)","u":"getNeighborsAsCharacter(int,int)"},{"p":"team.rocket.Entities","c":"AbstractOrganism","l":"getNewObjectFromExistingObject()"},{"p":"team.rocket.Entities","c":"AbstractPlant","l":"getNewObjectFromExistingObject()"},{"p":"team.rocket.Entities","c":"Carrot","l":"getNewObjectFromExistingObject()"},{"p":"team.rocket.Entities","c":"Fox","l":"getNewObjectFromExistingObject()"},{"p":"team.rocket.Entities","c":"Grass","l":"getNewObjectFromExistingObject()"},{"p":"team.rocket.Entities","c":"Rabbit","l":"getNewObjectFromExistingObject()"},{"p":"team.rocket","c":"Map","l":"getNumberOfOrganisms()"},{"p":"team.rocket.IO.Terminal","c":"TerminalFlagRequest","l":"getNumOfDays()"},{"p":"team.rocket.Entities","c":"AbstractAnimal","l":"getNutrition()"},{"p":"team.rocket.Entities","c":"AbstractOrganism","l":"getNutrition()"},{"p":"team.rocket.Entities","c":"AbstractPlant","l":"getNutrition()"},{"p":"team.rocket.Entities","c":"Carrot","l":"getNutrition()"},{"p":"team.rocket.Entities","c":"Fox","l":"getNutrition()"},{"p":"team.rocket.Entities","c":"Grass","l":"getNutrition()"},{"p":"team.rocket.Entities","c":"Rabbit","l":"getNutrition()"},{"p":"team.rocket","c":"Map","l":"getOrganism(int, int)","u":"getOrganism(int,int)"},{"p":"team.rocket.util","c":"RandomManager","l":"getRandom()"},{"p":"team.rocket.IO.Terminal","c":"TerminalFlagRequest","l":"getStepsPerDay()"},{"p":"team.rocket.IO.Terminal","c":"TerminalFlagRequest","l":"getTerminalCommand()"},{"p":"team.rocket.Entities","c":"AbstractAnimal","l":"getVision()"},{"p":"team.rocket.Entities","c":"Fox","l":"getVision()"},{"p":"team.rocket.Entities","c":"Rabbit","l":"getVision()"},{"p":"team.rocket","c":"Map","l":"getWidth()"},{"p":"team.rocket.Entities","c":"Grass","l":"Grass()","u":"%3Cinit%3E()"},{"p":"team.rocket.IO.Terminal","c":"GridSizeFlagHandler","l":"GridSizeFlagHandler()","u":"%3Cinit%3E()"},{"p":"team.rocket.Entities","c":"AbstractPlant","l":"grow(AbstractOrganism[][], AbstractOrganism[], int, int)","u":"grow(team.rocket.Entities.AbstractOrganism[][],team.rocket.Entities.AbstractOrganism[],int,int)"},{"p":"team.rocket.Entities","c":"Carrot","l":"grow(AbstractOrganism[][], AbstractOrganism[], int, int)","u":"grow(team.rocket.Entities.AbstractOrganism[][],team.rocket.Entities.AbstractOrganism[],int,int)"},{"p":"team.rocket.Entities","c":"Grass","l":"grow(AbstractOrganism[][], AbstractOrganism[], int, int)","u":"grow(team.rocket.Entities.AbstractOrganism[][],team.rocket.Entities.AbstractOrganism[],int,int)"},{"p":"team.rocket.Entities","c":"Carrot","l":"growthStatus()"},{"p":"team.rocket.Entities","c":"Grass","l":"growthStatus()"},{"p":"team.rocket.IO.Terminal","c":"DaysPerRunFlagHandler","l":"handleRequest(TerminalFlagRequest)","u":"handleRequest(team.rocket.IO.Terminal.TerminalFlagRequest)"},{"p":"team.rocket.IO.Terminal","c":"FlagHandler","l":"handleRequest(TerminalFlagRequest)","u":"handleRequest(team.rocket.IO.Terminal.TerminalFlagRequest)"},{"p":"team.rocket.IO.Terminal","c":"GridSizeFlagHandler","l":"handleRequest(TerminalFlagRequest)","u":"handleRequest(team.rocket.IO.Terminal.TerminalFlagRequest)"},{"p":"team.rocket.IO.Terminal","c":"InitialOrganismCountFlagHandler","l":"handleRequest(TerminalFlagRequest)","u":"handleRequest(team.rocket.IO.Terminal.TerminalFlagRequest)"},{"p":"team.rocket.IO.Terminal","c":"TimeStepsPerDayFlagHandler","l":"handleRequest(TerminalFlagRequest)","u":"handleRequest(team.rocket.IO.Terminal.TerminalFlagRequest)"},{"p":"team.rocket.IO.Terminal","c":"InitialOrganismCountFlagHandler","l":"InitialOrganismCountFlagHandler()","u":"%3Cinit%3E()"},{"p":"team.rocket.Entities","c":"AbstractOrganism","l":"instancedToIcon()"},{"p":"team.rocket.Entities","c":"AbstractPlant","l":"instancedToIcon()"},{"p":"team.rocket.Entities","c":"Carrot","l":"instancedToIcon()"},{"p":"team.rocket.Entities","c":"Fox","l":"instancedToIcon()"},{"p":"team.rocket.Entities","c":"Grass","l":"instancedToIcon()"},{"p":"team.rocket.Entities","c":"Rabbit","l":"instancedToIcon()"},{"p":"team.rocket","c":"Map","l":"isEmpty()"},{"p":"team.rocket","c":"Map","l":"isFull()"},{"p":"team.rocket.Entities","c":"Rabbit","l":"isStarving()"},{"p":"team.rocket.Enums","c":"Direction","l":"LEFT"},{"p":"team.rocket.IO.Terminal","c":"FlagHandler","l":"m_successor"},{"p":"team.rocket.IO","c":"UI","l":"main(String[])","u":"main(java.lang.String[])"},{"p":"team.rocket","c":"Map","l":"Map()","u":"%3Cinit%3E()"},{"p":"team.rocket","c":"Map","l":"Map(AbstractOrganism[][])","u":"%3Cinit%3E(team.rocket.Entities.AbstractOrganism[][])"},{"p":"team.rocket","c":"Map","l":"Map(int, int)","u":"%3Cinit%3E(int,int)"},{"p":"team.rocket.Entities","c":"AbstractAnimal","l":"move(Map, int, int)","u":"move(team.rocket.Map,int,int)"},{"p":"team.rocket.Entities","c":"Fox","l":"move(Map, int, int)","u":"move(team.rocket.Map,int,int)"},{"p":"team.rocket.Entities","c":"Rabbit","l":"move(Map, int, int)","u":"move(team.rocket.Map,int,int)"},{"p":"team.rocket","c":"Map","l":"moveOrganism(int, int, int, int)","u":"moveOrganism(int,int,int,int)"},{"p":"team.rocket.IO","c":"UI","l":"outputGrid(int, Map)","u":"outputGrid(int,team.rocket.Map)"},{"p":"team.rocket.IO","c":"UI","l":"outputGridViaMainThread(int, Map)","u":"outputGridViaMainThread(int,team.rocket.Map)"},{"p":"team.rocket.Entities","c":"Rabbit","l":"Rabbit()","u":"%3Cinit%3E()"},{"p":"team.rocket.Enums","c":"Direction","l":"randomDirectionFromBooleanArray(boolean[])"},{"p":"team.rocket.Entities","c":"AbstractOrganism","l":"reduceCount()"},{"p":"team.rocket.Entities","c":"AbstractPlant","l":"reduceCount()"},{"p":"team.rocket.Entities","c":"Carrot","l":"reduceCount()"},{"p":"team.rocket.Entities","c":"Fox","l":"reduceCount()"},{"p":"team.rocket.Entities","c":"Grass","l":"reduceCount()"},{"p":"team.rocket.Entities","c":"Rabbit","l":"reduceCount()"},{"p":"team.rocket.Entities","c":"Fox","l":"reduceHunger()"},{"p":"team.rocket.Entities","c":"Rabbit","l":"reduceHunger()"},{"p":"team.rocket.Entities","c":"OrganismFactory","l":"registerOrganism(String, AbstractOrganism)","u":"registerOrganism(java.lang.String,team.rocket.Entities.AbstractOrganism)"},{"p":"team.rocket","c":"Map","l":"removeOrganism(int, int)","u":"removeOrganism(int,int)"},{"p":"team.rocket.Entities","c":"AbstractAnimal","l":"reproduce()"},{"p":"team.rocket.Entities","c":"Fox","l":"reproduce()"},{"p":"team.rocket.Entities","c":"Rabbit","l":"reproduce()"},{"p":"team.rocket.Entities","c":"Fox","l":"resetBreeding()"},{"p":"team.rocket.Entities","c":"AbstractPlant","l":"resetGrown()"},{"p":"team.rocket.Entities","c":"Carrot","l":"resetGrown()"},{"p":"team.rocket.Entities","c":"Grass","l":"resetGrown()"},{"p":"team.rocket.Entities","c":"AbstractAnimal","l":"resetMove()"},{"p":"team.rocket.Entities","c":"Fox","l":"resetMove()"},{"p":"team.rocket.Entities","c":"Rabbit","l":"resetMove()"},{"p":"team.rocket.Enums","c":"Direction","l":"RIGHT"},{"p":"team.rocket","c":"Simulation","l":"run()"},{"p":"team.rocket.Entities","c":"AbstractOrganism","l":"setCount(int)"},{"p":"team.rocket.Entities","c":"AbstractPlant","l":"setCount(int)"},{"p":"team.rocket.Entities","c":"Carrot","l":"setCount(int)"},{"p":"team.rocket.Entities","c":"Fox","l":"setCount(int)"},{"p":"team.rocket.Entities","c":"Grass","l":"setCount(int)"},{"p":"team.rocket.Entities","c":"Rabbit","l":"setCount(int)"},{"p":"team.rocket","c":"Simulation","l":"setDaysPerRun(int)"},{"p":"team.rocket","c":"Map","l":"setGrid(AbstractOrganism[][])","u":"setGrid(team.rocket.Entities.AbstractOrganism[][])"},{"p":"team.rocket.IO.Terminal","c":"TerminalFlagRequest","l":"setMap(Map)","u":"setMap(team.rocket.Map)"},{"p":"team.rocket","c":"Simulation","l":"setMillisecondsPerTimeStep(int)"},{"p":"team.rocket.IO.Terminal","c":"TerminalFlagRequest","l":"setNumOfDays(int)"},{"p":"team.rocket","c":"Simulation","l":"setPrintOutput(boolean)"},{"p":"team.rocket.IO.Terminal","c":"TerminalFlagRequest","l":"setStepsPerDay(int)"},{"p":"team.rocket.IO.Terminal","c":"FlagHandler","l":"setSuccessor(FlagHandler)","u":"setSuccessor(team.rocket.IO.Terminal.FlagHandler)"},{"p":"team.rocket","c":"Simulation","l":"setTimeStepsPerDay(int)"},{"p":"team.rocket","c":"Simulation","l":"Simulation()","u":"%3Cinit%3E()"},{"p":"team.rocket","c":"Simulation","l":"Simulation(int, int)","u":"%3Cinit%3E(int,int)"},{"p":"team.rocket","c":"Simulation","l":"Simulation(Map)","u":"%3Cinit%3E(team.rocket.Map)"},{"p":"team.rocket.IO.Terminal","c":"TerminalFlagRequest","l":"TerminalFlagRequest(String, Map)","u":"%3Cinit%3E(java.lang.String,team.rocket.Map)"},{"p":"team.rocket.IO.Terminal","c":"TimeStepsPerDayFlagHandler","l":"TimeStepsPerDayFlagHandler()","u":"%3Cinit%3E()"},{"p":"team.rocket.Entities","c":"AbstractAnimal","l":"toIcon()"},{"p":"team.rocket.Entities","c":"AbstractOrganism","l":"toIcon()"},{"p":"team.rocket.Entities","c":"AbstractPlant","l":"toIcon()"},{"p":"team.rocket.Entities","c":"Carrot","l":"toIcon()"},{"p":"team.rocket.Entities","c":"Fox","l":"toIcon()"},{"p":"team.rocket.Entities","c":"Grass","l":"toIcon()"},{"p":"team.rocket.Entities","c":"Rabbit","l":"toIcon()"},{"p":"team.rocket.IO","c":"UI","l":"UI()","u":"%3Cinit%3E()"},{"p":"team.rocket.Enums","c":"Direction","l":"UP"},{"p":"team.rocket.Enums","c":"Direction","l":"valueOf(String)","u":"valueOf(java.lang.String)"},{"p":"team.rocket.Enums","c":"Direction","l":"values()"}];updateSearchResults(); \ No newline at end of file +memberSearchIndex = [{"p":"team.rocket.Entities","c":"AbstractAnimal","l":"AbstractAnimal()","u":"%3Cinit%3E()"},{"p":"team.rocket.Entities","c":"AbstractOrganism","l":"AbstractOrganism()","u":"%3Cinit%3E()"},{"p":"team.rocket.Entities","c":"AbstractPlant","l":"AbstractPlant()","u":"%3Cinit%3E()"},{"p":"team.rocket","c":"Map","l":"addOrganism(AbstractOrganism, int, int)","u":"addOrganism(team.rocket.Entities.AbstractOrganism,int,int)"},{"p":"team.rocket.Entities","c":"AbstractAnimal","l":"availableMovementSpace(AbstractOrganism[])","u":"availableMovementSpace(team.rocket.Entities.AbstractOrganism[])"},{"p":"team.rocket.Entities","c":"Fox","l":"availableMovementSpace(AbstractOrganism[])","u":"availableMovementSpace(team.rocket.Entities.AbstractOrganism[])"},{"p":"team.rocket.Entities","c":"Rabbit","l":"availableMovementSpace(AbstractOrganism[])","u":"availableMovementSpace(team.rocket.Entities.AbstractOrganism[])"},{"p":"team.rocket.Entities","c":"Carrot","l":"availableSpace(AbstractOrganism[])","u":"availableSpace(team.rocket.Entities.AbstractOrganism[])"},{"p":"team.rocket.Entities","c":"Grass","l":"availableSpace(AbstractOrganism[])","u":"availableSpace(team.rocket.Entities.AbstractOrganism[])"},{"p":"team.rocket.Entities","c":"Fox","l":"breed()"},{"p":"team.rocket.Entities","c":"Carrot","l":"Carrot()","u":"%3Cinit%3E()"},{"p":"team.rocket.Entities","c":"OrganismFactory","l":"createOrganism(String)","u":"createOrganism(java.lang.String)"},{"p":"team.rocket.IO.Terminal","c":"DaysPerRunFlagHandler","l":"DaysPerRunFlagHandler()","u":"%3Cinit%3E()"},{"p":"team.rocket","c":"Simulation","l":"DEFAULT_DAYS_PER_RUN"},{"p":"team.rocket","c":"Map","l":"DEFAULT_HEIGHT"},{"p":"team.rocket","c":"Simulation","l":"DEFAULT_MILLISECONDS_PER_TIME_STEP"},{"p":"team.rocket","c":"Simulation","l":"DEFAULT_TIME_STEPS_PER_DAY"},{"p":"team.rocket","c":"Map","l":"DEFAULT_WIDTH"},{"p":"team.rocket.Enums","c":"Direction","l":"directionFromInt(int)"},{"p":"team.rocket.Enums","c":"Direction","l":"directionFromString(String)","u":"directionFromString(java.lang.String)"},{"p":"team.rocket.Enums","c":"Direction","l":"DOWN"},{"p":"team.rocket.Entities","c":"Fox","l":"eat(Map, int, int)","u":"eat(team.rocket.Map,int,int)"},{"p":"team.rocket.Entities","c":"Rabbit","l":"eat(Map, int, int)","u":"eat(team.rocket.Map,int,int)"},{"p":"team.rocket.Entities","c":"Fox","l":"findNeighbors(Map, int, int)","u":"findNeighbors(team.rocket.Map,int,int)"},{"p":"team.rocket.Entities","c":"Rabbit","l":"findNeighbors(Map, int, int)","u":"findNeighbors(team.rocket.Map,int,int)"},{"p":"team.rocket.IO.Terminal","c":"FlagHandler","l":"FlagHandler()","u":"%3Cinit%3E()"},{"p":"team.rocket.Entities","c":"Fox","l":"Fox()","u":"%3Cinit%3E()"},{"p":"team.rocket.Entities","c":"AbstractAnimal","l":"getCount()"},{"p":"team.rocket.Entities","c":"AbstractOrganism","l":"getCount()"},{"p":"team.rocket.Entities","c":"AbstractPlant","l":"getCount()"},{"p":"team.rocket.Entities","c":"Carrot","l":"getCount()"},{"p":"team.rocket.Entities","c":"Fox","l":"getCount()"},{"p":"team.rocket.Entities","c":"Grass","l":"getCount()"},{"p":"team.rocket.Entities","c":"Rabbit","l":"getCount()"},{"p":"team.rocket","c":"Simulation","l":"getCurrentDay()"},{"p":"team.rocket.util","c":"TimeManager","l":"getCurrentTime()"},{"p":"team.rocket","c":"Simulation","l":"getCurrentTimeStep()"},{"p":"team.rocket","c":"Map","l":"getGrid()"},{"p":"team.rocket","c":"Map","l":"getHeight()"},{"p":"team.rocket.Entities","c":"AbstractAnimal","l":"getHunger()"},{"p":"team.rocket.Entities","c":"Fox","l":"getHunger()"},{"p":"team.rocket.Entities","c":"Rabbit","l":"getHunger()"},{"p":"team.rocket.Entities","c":"OrganismFactory","l":"getInstance()"},{"p":"team.rocket.IO.Terminal","c":"TerminalFlagRequest","l":"getMap()"},{"p":"team.rocket","c":"Simulation","l":"getMap()"},{"p":"team.rocket","c":"Map","l":"getNeighbors(int, int)","u":"getNeighbors(int,int)"},{"p":"team.rocket","c":"Map","l":"getNeighborsAsCharacter(int, int)","u":"getNeighborsAsCharacter(int,int)"},{"p":"team.rocket.Entities","c":"AbstractOrganism","l":"getNewObjectFromExistingObject()"},{"p":"team.rocket.Entities","c":"AbstractPlant","l":"getNewObjectFromExistingObject()"},{"p":"team.rocket.Entities","c":"Carrot","l":"getNewObjectFromExistingObject()"},{"p":"team.rocket.Entities","c":"Fox","l":"getNewObjectFromExistingObject()"},{"p":"team.rocket.Entities","c":"Grass","l":"getNewObjectFromExistingObject()"},{"p":"team.rocket.Entities","c":"Rabbit","l":"getNewObjectFromExistingObject()"},{"p":"team.rocket","c":"Map","l":"getNumberOfOrganisms()"},{"p":"team.rocket.IO.Terminal","c":"TerminalFlagRequest","l":"getNumOfDays()"},{"p":"team.rocket.Entities","c":"AbstractAnimal","l":"getNutrition()"},{"p":"team.rocket.Entities","c":"AbstractOrganism","l":"getNutrition()"},{"p":"team.rocket.Entities","c":"AbstractPlant","l":"getNutrition()"},{"p":"team.rocket.Entities","c":"Carrot","l":"getNutrition()"},{"p":"team.rocket.Entities","c":"Fox","l":"getNutrition()"},{"p":"team.rocket.Entities","c":"Grass","l":"getNutrition()"},{"p":"team.rocket.Entities","c":"Rabbit","l":"getNutrition()"},{"p":"team.rocket","c":"Map","l":"getOrganism(int, int)","u":"getOrganism(int,int)"},{"p":"team.rocket.util","c":"RandomManager","l":"getRandom()"},{"p":"team.rocket.IO.Terminal","c":"TerminalFlagRequest","l":"getStepsPerDay()"},{"p":"team.rocket.IO.Terminal","c":"TerminalFlagRequest","l":"getTerminalCommand()"},{"p":"team.rocket.Entities","c":"AbstractAnimal","l":"getVision()"},{"p":"team.rocket.Entities","c":"Fox","l":"getVision()"},{"p":"team.rocket.Entities","c":"Rabbit","l":"getVision()"},{"p":"team.rocket","c":"Map","l":"getWidth()"},{"p":"team.rocket.Entities","c":"Grass","l":"Grass()","u":"%3Cinit%3E()"},{"p":"team.rocket.IO.Terminal","c":"GridSizeFlagHandler","l":"GridSizeFlagHandler()","u":"%3Cinit%3E()"},{"p":"team.rocket.Entities","c":"AbstractPlant","l":"grow(AbstractOrganism[][], AbstractOrganism[], int, int)","u":"grow(team.rocket.Entities.AbstractOrganism[][],team.rocket.Entities.AbstractOrganism[],int,int)"},{"p":"team.rocket.Entities","c":"Carrot","l":"grow(AbstractOrganism[][], AbstractOrganism[], int, int)","u":"grow(team.rocket.Entities.AbstractOrganism[][],team.rocket.Entities.AbstractOrganism[],int,int)"},{"p":"team.rocket.Entities","c":"Grass","l":"grow(AbstractOrganism[][], AbstractOrganism[], int, int)","u":"grow(team.rocket.Entities.AbstractOrganism[][],team.rocket.Entities.AbstractOrganism[],int,int)"},{"p":"team.rocket.Entities","c":"Carrot","l":"growthStatus()"},{"p":"team.rocket.Entities","c":"Grass","l":"growthStatus()"},{"p":"team.rocket.IO.Terminal","c":"DaysPerRunFlagHandler","l":"handleRequest(TerminalFlagRequest)","u":"handleRequest(team.rocket.IO.Terminal.TerminalFlagRequest)"},{"p":"team.rocket.IO.Terminal","c":"FlagHandler","l":"handleRequest(TerminalFlagRequest)","u":"handleRequest(team.rocket.IO.Terminal.TerminalFlagRequest)"},{"p":"team.rocket.IO.Terminal","c":"GridSizeFlagHandler","l":"handleRequest(TerminalFlagRequest)","u":"handleRequest(team.rocket.IO.Terminal.TerminalFlagRequest)"},{"p":"team.rocket.IO.Terminal","c":"InitialOrganismCountFlagHandler","l":"handleRequest(TerminalFlagRequest)","u":"handleRequest(team.rocket.IO.Terminal.TerminalFlagRequest)"},{"p":"team.rocket.IO.Terminal","c":"TimeStepsPerDayFlagHandler","l":"handleRequest(TerminalFlagRequest)","u":"handleRequest(team.rocket.IO.Terminal.TerminalFlagRequest)"},{"p":"team.rocket.IO.Terminal","c":"InitialOrganismCountFlagHandler","l":"InitialOrganismCountFlagHandler()","u":"%3Cinit%3E()"},{"p":"team.rocket.Entities","c":"AbstractOrganism","l":"instancedToIcon()"},{"p":"team.rocket.Entities","c":"AbstractPlant","l":"instancedToIcon()"},{"p":"team.rocket.Entities","c":"Carrot","l":"instancedToIcon()"},{"p":"team.rocket.Entities","c":"Fox","l":"instancedToIcon()"},{"p":"team.rocket.Entities","c":"Grass","l":"instancedToIcon()"},{"p":"team.rocket.Entities","c":"Rabbit","l":"instancedToIcon()"},{"p":"team.rocket","c":"Map","l":"isEmpty()"},{"p":"team.rocket","c":"Map","l":"isFull()"},{"p":"team.rocket.Entities","c":"AbstractAnimal","l":"isStarving()"},{"p":"team.rocket.Entities","c":"Fox","l":"isStarving()"},{"p":"team.rocket.Entities","c":"Rabbit","l":"isStarving()"},{"p":"team.rocket.Enums","c":"Direction","l":"LEFT"},{"p":"team.rocket.IO.Terminal","c":"FlagHandler","l":"m_successor"},{"p":"team.rocket.IO","c":"UI","l":"main(String[])","u":"main(java.lang.String[])"},{"p":"team.rocket","c":"Map","l":"Map()","u":"%3Cinit%3E()"},{"p":"team.rocket","c":"Map","l":"Map(AbstractOrganism[][])","u":"%3Cinit%3E(team.rocket.Entities.AbstractOrganism[][])"},{"p":"team.rocket","c":"Map","l":"Map(int, int)","u":"%3Cinit%3E(int,int)"},{"p":"team.rocket.Entities","c":"AbstractAnimal","l":"move(Map, int, int)","u":"move(team.rocket.Map,int,int)"},{"p":"team.rocket.Entities","c":"Fox","l":"move(Map, int, int)","u":"move(team.rocket.Map,int,int)"},{"p":"team.rocket.Entities","c":"Rabbit","l":"move(Map, int, int)","u":"move(team.rocket.Map,int,int)"},{"p":"team.rocket","c":"Map","l":"moveOrganism(int, int, int, int)","u":"moveOrganism(int,int,int,int)"},{"p":"team.rocket.IO","c":"UI","l":"outputGrid(int, Map)","u":"outputGrid(int,team.rocket.Map)"},{"p":"team.rocket.IO","c":"UI","l":"outputGridViaMainThread(int, Map)","u":"outputGridViaMainThread(int,team.rocket.Map)"},{"p":"team.rocket.Entities","c":"Rabbit","l":"Rabbit()","u":"%3Cinit%3E()"},{"p":"team.rocket.Enums","c":"Direction","l":"randomDirectionFromBooleanArray(boolean[])"},{"p":"team.rocket.Entities","c":"AbstractOrganism","l":"reduceCount()"},{"p":"team.rocket.Entities","c":"AbstractPlant","l":"reduceCount()"},{"p":"team.rocket.Entities","c":"Carrot","l":"reduceCount()"},{"p":"team.rocket.Entities","c":"Fox","l":"reduceCount()"},{"p":"team.rocket.Entities","c":"Grass","l":"reduceCount()"},{"p":"team.rocket.Entities","c":"Rabbit","l":"reduceCount()"},{"p":"team.rocket.Entities","c":"Fox","l":"reduceHunger()"},{"p":"team.rocket.Entities","c":"Rabbit","l":"reduceHunger()"},{"p":"team.rocket.Entities","c":"OrganismFactory","l":"registerOrganism(String, AbstractOrganism)","u":"registerOrganism(java.lang.String,team.rocket.Entities.AbstractOrganism)"},{"p":"team.rocket","c":"Map","l":"removeOrganism(int, int)","u":"removeOrganism(int,int)"},{"p":"team.rocket.Entities","c":"AbstractAnimal","l":"reproduce()"},{"p":"team.rocket.Entities","c":"Fox","l":"reproduce()"},{"p":"team.rocket.Entities","c":"Rabbit","l":"reproduce()"},{"p":"team.rocket.Entities","c":"Fox","l":"resetBreeding()"},{"p":"team.rocket.Entities","c":"AbstractPlant","l":"resetGrown()"},{"p":"team.rocket.Entities","c":"Carrot","l":"resetGrown()"},{"p":"team.rocket.Entities","c":"Grass","l":"resetGrown()"},{"p":"team.rocket.Entities","c":"AbstractAnimal","l":"resetMove()"},{"p":"team.rocket.Entities","c":"Fox","l":"resetMove()"},{"p":"team.rocket.Entities","c":"Rabbit","l":"resetMove()"},{"p":"team.rocket.Enums","c":"Direction","l":"RIGHT"},{"p":"team.rocket","c":"Simulation","l":"run()"},{"p":"team.rocket.Entities","c":"AbstractOrganism","l":"setCount(int)"},{"p":"team.rocket.Entities","c":"AbstractPlant","l":"setCount(int)"},{"p":"team.rocket.Entities","c":"Carrot","l":"setCount(int)"},{"p":"team.rocket.Entities","c":"Fox","l":"setCount(int)"},{"p":"team.rocket.Entities","c":"Grass","l":"setCount(int)"},{"p":"team.rocket.Entities","c":"Rabbit","l":"setCount(int)"},{"p":"team.rocket","c":"Simulation","l":"setDaysPerRun(int)"},{"p":"team.rocket","c":"Map","l":"setGrid(AbstractOrganism[][])","u":"setGrid(team.rocket.Entities.AbstractOrganism[][])"},{"p":"team.rocket.IO.Terminal","c":"TerminalFlagRequest","l":"setMap(Map)","u":"setMap(team.rocket.Map)"},{"p":"team.rocket","c":"Simulation","l":"setMillisecondsPerTimeStep(int)"},{"p":"team.rocket.IO.Terminal","c":"TerminalFlagRequest","l":"setNumOfDays(int)"},{"p":"team.rocket","c":"Simulation","l":"setPrintOutput(boolean)"},{"p":"team.rocket.IO.Terminal","c":"TerminalFlagRequest","l":"setStepsPerDay(int)"},{"p":"team.rocket.IO.Terminal","c":"FlagHandler","l":"setSuccessor(FlagHandler)","u":"setSuccessor(team.rocket.IO.Terminal.FlagHandler)"},{"p":"team.rocket","c":"Simulation","l":"setTimeStepsPerDay(int)"},{"p":"team.rocket","c":"Simulation","l":"Simulation()","u":"%3Cinit%3E()"},{"p":"team.rocket","c":"Simulation","l":"Simulation(int, int)","u":"%3Cinit%3E(int,int)"},{"p":"team.rocket","c":"Simulation","l":"Simulation(Map)","u":"%3Cinit%3E(team.rocket.Map)"},{"p":"team.rocket.IO.Terminal","c":"TerminalFlagRequest","l":"TerminalFlagRequest(String, Map)","u":"%3Cinit%3E(java.lang.String,team.rocket.Map)"},{"p":"team.rocket.IO.Terminal","c":"TimeStepsPerDayFlagHandler","l":"TimeStepsPerDayFlagHandler()","u":"%3Cinit%3E()"},{"p":"team.rocket.Entities","c":"AbstractAnimal","l":"toIcon()"},{"p":"team.rocket.Entities","c":"AbstractOrganism","l":"toIcon()"},{"p":"team.rocket.Entities","c":"AbstractPlant","l":"toIcon()"},{"p":"team.rocket.Entities","c":"Carrot","l":"toIcon()"},{"p":"team.rocket.Entities","c":"Fox","l":"toIcon()"},{"p":"team.rocket.Entities","c":"Grass","l":"toIcon()"},{"p":"team.rocket.Entities","c":"Rabbit","l":"toIcon()"},{"p":"team.rocket.IO","c":"UI","l":"UI()","u":"%3Cinit%3E()"},{"p":"team.rocket.Enums","c":"Direction","l":"UP"},{"p":"team.rocket.Enums","c":"Direction","l":"valueOf(String)","u":"valueOf(java.lang.String)"},{"p":"team.rocket.Enums","c":"Direction","l":"values()"}];updateSearchResults(); \ No newline at end of file diff --git a/api/overview-summary.html b/api/overview-summary.html index fd4e321..f684fbe 100644 --- a/api/overview-summary.html +++ b/api/overview-summary.html @@ -1,11 +1,11 @@ - + Generated Documentation (Untitled) - + diff --git a/api/overview-tree.html b/api/overview-tree.html index c7d5d6c..c09a086 100644 --- a/api/overview-tree.html +++ b/api/overview-tree.html @@ -1,11 +1,11 @@ - + Class Hierarchy - + diff --git a/api/script.js b/api/script.js index 0765364..864989c 100644 --- a/api/script.js +++ b/api/script.js @@ -1,26 +1,26 @@ /* * Copyright (c) 2013, 2020, Oracle and/or its affiliates. All rights reserved. - * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. Oracle designates this + * particular file as subject to the "Classpath" exception as provided + * by Oracle in the LICENSE file that accompanied this code. + * + * This code is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA + * or visit www.oracle.com if you need additional information or have any + * questions. */ var moduleSearchIndex; diff --git a/api/search.js b/api/search.js index 13aba85..db3b2f4 100644 --- a/api/search.js +++ b/api/search.js @@ -1,26 +1,26 @@ /* * Copyright (c) 2015, 2020, Oracle and/or its affiliates. All rights reserved. - * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * - * + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. Oracle designates this + * particular file as subject to the "Classpath" exception as provided + * by Oracle in the LICENSE file that accompanied this code. * + * This code is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * + * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA + * or visit www.oracle.com if you need additional information or have any + * questions. */ var noResult = {l: "No results found"}; diff --git a/api/stylesheet.css b/api/stylesheet.css index 6dc5b36..4a576bd 100644 --- a/api/stylesheet.css +++ b/api/stylesheet.css @@ -597,6 +597,9 @@ main, nav, header, footer, section { background-color:#4D7A97; color:#FFFFFF; } +.result-item { + font-size:13px; +} .ui-autocomplete { max-height:85%; max-width:65%; @@ -615,12 +618,12 @@ ul.ui-autocomplete li { clear:both; width:100%; } +.result-highlight { + font-weight:bold; +} .ui-autocomplete .result-item { font-size: inherit; } -.ui-autocomplete .result-highlight { - font-weight:bold; -} #search-input { background-image:url('resources/glass.png'); background-size:13px; diff --git a/api/team/rocket/Entities/AbstractAnimal.html b/api/team/rocket/Entities/AbstractAnimal.html index f6d1da5..c5875d6 100644 --- a/api/team/rocket/Entities/AbstractAnimal.html +++ b/api/team/rocket/Entities/AbstractAnimal.html @@ -1,11 +1,11 @@ - + AbstractAnimal - + @@ -126,13 +126,19 @@

    Method Summary

     
    abstract int
    - +
     
    -
    static int
    - -
    +
    abstract int
    + +
     
    +
    static int
    + +
    Gets the vision of the organism, representing how far it can 'see'
    +
    abstract boolean
    + +
     
    abstract void

    Methods inherited from class java.lang.Object

    -clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
@@ -222,6 +228,26 @@

reproduce

  • +
    +

    isStarving

    +
    public abstract boolean isStarving()
    +
    +
    Returns:
    +
    true if hunger is <= zero
    +
    +
    +
  • +
  • +
    +

    getHunger

    +
    public abstract int getHunger()
    +
    +
    Returns:
    +
    Animal's current hunger
    +
    +
    +
  • +
  • availableMovementSpace

    public abstract Direction availableMovementSpace(AbstractOrganism[] neighbors)
    diff --git a/api/team/rocket/Entities/AbstractOrganism.html b/api/team/rocket/Entities/AbstractOrganism.html index 0e278d1..c839c15 100644 --- a/api/team/rocket/Entities/AbstractOrganism.html +++ b/api/team/rocket/Entities/AbstractOrganism.html @@ -1,11 +1,11 @@ - + AbstractOrganism - + @@ -149,7 +149,7 @@

    Method Summary

    Methods inherited from class java.lang.Object

    -clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • diff --git a/api/team/rocket/Entities/AbstractPlant.html b/api/team/rocket/Entities/AbstractPlant.html index a5d3aee..4b921f4 100644 --- a/api/team/rocket/Entities/AbstractPlant.html +++ b/api/team/rocket/Entities/AbstractPlant.html @@ -1,11 +1,11 @@ - + AbstractPlant - + @@ -164,7 +164,7 @@

    Method Summary

    Methods inherited from class java.lang.Object

    -clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait diff --git a/api/team/rocket/Entities/Carrot.html b/api/team/rocket/Entities/Carrot.html index e09ab6b..f168bf6 100644 --- a/api/team/rocket/Entities/Carrot.html +++ b/api/team/rocket/Entities/Carrot.html @@ -1,11 +1,11 @@ - + Carrot - + @@ -172,7 +172,7 @@

    Method Summary

    Methods inherited from class java.lang.Object

    -clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait diff --git a/api/team/rocket/Entities/Fox.html b/api/team/rocket/Entities/Fox.html index b05f2f6..a463381 100644 --- a/api/team/rocket/Entities/Fox.html +++ b/api/team/rocket/Entities/Fox.html @@ -1,11 +1,11 @@ - + Fox - + @@ -165,52 +165,55 @@

    Method Summary

    gets the icon from an instance
    -
    void
    -
    move(Map map, +
    boolean
    + +
     
    +
    void
    +
    move(Map map, int y, int x)
    -
    -
    Moves Fox in grid based on current position, available movement space, and past movement
    -
    -
    void
    -
    -
    Needed for very specific instance with OrganismEnum so that the instance in the enum doesn't count towards the total number of Organisms
    +
    Moves Fox in grid based on current position, available movement space, and past movement
    void
    - +
    -
    decreases Fox's hunger meter
    +
    Needed for very specific instance with OrganismEnum so that the instance in the enum doesn't count towards the total number of Organisms
    void
    - +
    -
    Creates new Animal
    +
    decreases Fox's hunger meter
    void
    - +
    -
    Resets hasBred to false, meant to be used to reset breeding each day
    +
    Creates new Animal
    void
    - +
    -
    Resets hasMoved to false, meant to be used to reset movement each day
    +
    Resets hasBred to false, meant to be used to reset breeding each day
    void
    -
    setCount(int i)
    +
    +
    Resets hasMoved to false, meant to be used to reset movement each day
    +
    +
    void
    +
    setCount(int i)
    +
    Sets the count of animals
    -
    static char
    - -
     
    +
    static char
    + +
     

    Methods inherited from class java.lang.Object

    -clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait @@ -275,6 +278,8 @@

    getCount

    getHunger

    public int getHunger()
    +
    Specified by:
    +
    getHunger in class AbstractAnimal
    Returns:
    Fox's current hunger
    @@ -300,6 +305,18 @@

    reduceHunger

  • +
    +

    isStarving

    +
    public boolean isStarving()
    +
    +
    Specified by:
    +
    isStarving in class AbstractAnimal
    +
    Returns:
    +
    true if hunger is <= zero
    +
    +
    +
  • +
  • setCount

    public void setCount(int i)
    diff --git a/api/team/rocket/Entities/Grass.html b/api/team/rocket/Entities/Grass.html index 4860161..a02b015 100644 --- a/api/team/rocket/Entities/Grass.html +++ b/api/team/rocket/Entities/Grass.html @@ -1,11 +1,11 @@ - + Grass - + @@ -172,7 +172,7 @@

    Method Summary

    Methods inherited from class java.lang.Object

    -clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • diff --git a/api/team/rocket/Entities/OrganismFactory.html b/api/team/rocket/Entities/OrganismFactory.html index 02a390b..c3cce21 100644 --- a/api/team/rocket/Entities/OrganismFactory.html +++ b/api/team/rocket/Entities/OrganismFactory.html @@ -1,11 +1,11 @@ - + OrganismFactory - + @@ -122,7 +122,7 @@

    Method Summary

    Methods inherited from class java.lang.Object

    -clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait diff --git a/api/team/rocket/Entities/Rabbit.html b/api/team/rocket/Entities/Rabbit.html index f0bd226..526dcf0 100644 --- a/api/team/rocket/Entities/Rabbit.html +++ b/api/team/rocket/Entities/Rabbit.html @@ -1,11 +1,11 @@ - + Rabbit - + @@ -205,7 +205,7 @@

    Method Summary

    Methods inherited from class java.lang.Object

    -clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait @@ -303,6 +303,8 @@

    reduceHunger

    getHunger

    public int getHunger()
    +
    Specified by:
    +
    getHunger in class AbstractAnimal
    Returns:
    Rabbit's current hunger
    @@ -394,6 +396,8 @@

    isStarving

    public boolean isStarving()
    Is the rabbit starving?
    +
    Specified by:
    +
    isStarving in class AbstractAnimal
    Returns:
    true if hunger less than deathFood value
    diff --git a/api/team/rocket/Entities/package-summary.html b/api/team/rocket/Entities/package-summary.html index 8b1514d..8096830 100644 --- a/api/team/rocket/Entities/package-summary.html +++ b/api/team/rocket/Entities/package-summary.html @@ -1,11 +1,11 @@ - + team.rocket.Entities - + diff --git a/api/team/rocket/Entities/package-tree.html b/api/team/rocket/Entities/package-tree.html index a04010e..c0ca5b0 100644 --- a/api/team/rocket/Entities/package-tree.html +++ b/api/team/rocket/Entities/package-tree.html @@ -1,11 +1,11 @@ - + team.rocket.Entities Class Hierarchy - + diff --git a/api/team/rocket/Enums/Direction.html b/api/team/rocket/Enums/Direction.html index 66f2a78..5d0c924 100644 --- a/api/team/rocket/Enums/Direction.html +++ b/api/team/rocket/Enums/Direction.html @@ -1,11 +1,11 @@ - + Direction - + diff --git a/api/team/rocket/Enums/package-summary.html b/api/team/rocket/Enums/package-summary.html index 8017a1f..b174cfb 100644 --- a/api/team/rocket/Enums/package-summary.html +++ b/api/team/rocket/Enums/package-summary.html @@ -1,11 +1,11 @@ - + team.rocket.Enums - + diff --git a/api/team/rocket/Enums/package-tree.html b/api/team/rocket/Enums/package-tree.html index 1ae32cb..2c469b6 100644 --- a/api/team/rocket/Enums/package-tree.html +++ b/api/team/rocket/Enums/package-tree.html @@ -1,11 +1,11 @@ - + team.rocket.Enums Class Hierarchy - + diff --git a/api/team/rocket/IO/Terminal/DaysPerRunFlagHandler.html b/api/team/rocket/IO/Terminal/DaysPerRunFlagHandler.html index c86187f..ba30eb2 100644 --- a/api/team/rocket/IO/Terminal/DaysPerRunFlagHandler.html +++ b/api/team/rocket/IO/Terminal/DaysPerRunFlagHandler.html @@ -1,11 +1,11 @@ - + DaysPerRunFlagHandler - + @@ -137,7 +137,7 @@

    Method setSuccessor

    Methods inherited from class java.lang.Object

    -clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait diff --git a/api/team/rocket/IO/Terminal/FlagHandler.html b/api/team/rocket/IO/Terminal/FlagHandler.html index 8220e2c..1816070 100644 --- a/api/team/rocket/IO/Terminal/FlagHandler.html +++ b/api/team/rocket/IO/Terminal/FlagHandler.html @@ -1,11 +1,11 @@ - + FlagHandler - + @@ -149,7 +149,7 @@

    Method Summary

    Methods inherited from class java.lang.Object

    -clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait diff --git a/api/team/rocket/IO/Terminal/GridSizeFlagHandler.html b/api/team/rocket/IO/Terminal/GridSizeFlagHandler.html index 5234951..a7eb4ab 100644 --- a/api/team/rocket/IO/Terminal/GridSizeFlagHandler.html +++ b/api/team/rocket/IO/Terminal/GridSizeFlagHandler.html @@ -1,11 +1,11 @@ - + GridSizeFlagHandler - + @@ -137,7 +137,7 @@

    Method setSuccessor

    Methods inherited from class java.lang.Object

    -clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait diff --git a/api/team/rocket/IO/Terminal/InitialOrganismCountFlagHandler.html b/api/team/rocket/IO/Terminal/InitialOrganismCountFlagHandler.html index 9f8617b..0cccdcc 100644 --- a/api/team/rocket/IO/Terminal/InitialOrganismCountFlagHandler.html +++ b/api/team/rocket/IO/Terminal/InitialOrganismCountFlagHandler.html @@ -1,11 +1,11 @@ - + InitialOrganismCountFlagHandler - + @@ -138,7 +138,7 @@

    Method setSuccessor

    Methods inherited from class java.lang.Object

    -clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait diff --git a/api/team/rocket/IO/Terminal/TerminalFlagRequest.html b/api/team/rocket/IO/Terminal/TerminalFlagRequest.html index a9ba9b0..c9b90b8 100644 --- a/api/team/rocket/IO/Terminal/TerminalFlagRequest.html +++ b/api/team/rocket/IO/Terminal/TerminalFlagRequest.html @@ -1,11 +1,11 @@ - + TerminalFlagRequest - + @@ -155,7 +155,7 @@

    Method Summary

    Methods inherited from class java.lang.Object

    -clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait diff --git a/api/team/rocket/IO/Terminal/TimeStepsPerDayFlagHandler.html b/api/team/rocket/IO/Terminal/TimeStepsPerDayFlagHandler.html index a5c8a8a..7f768c5 100644 --- a/api/team/rocket/IO/Terminal/TimeStepsPerDayFlagHandler.html +++ b/api/team/rocket/IO/Terminal/TimeStepsPerDayFlagHandler.html @@ -1,11 +1,11 @@ - + TimeStepsPerDayFlagHandler - + @@ -137,7 +137,7 @@

    Method setSuccessor

    Methods inherited from class java.lang.Object

    -clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait diff --git a/api/team/rocket/IO/Terminal/package-summary.html b/api/team/rocket/IO/Terminal/package-summary.html index b11ba37..56c4ce6 100644 --- a/api/team/rocket/IO/Terminal/package-summary.html +++ b/api/team/rocket/IO/Terminal/package-summary.html @@ -1,11 +1,11 @@ - + team.rocket.IO.Terminal - + diff --git a/api/team/rocket/IO/Terminal/package-tree.html b/api/team/rocket/IO/Terminal/package-tree.html index a6698de..a523427 100644 --- a/api/team/rocket/IO/Terminal/package-tree.html +++ b/api/team/rocket/IO/Terminal/package-tree.html @@ -1,11 +1,11 @@ - + team.rocket.IO.Terminal Class Hierarchy - + diff --git a/api/team/rocket/IO/UI.html b/api/team/rocket/IO/UI.html index 637e7e4..422f182 100644 --- a/api/team/rocket/IO/UI.html +++ b/api/team/rocket/IO/UI.html @@ -1,11 +1,11 @@ - + UI - + @@ -133,7 +133,7 @@

    Method Summary

    Methods inherited from class java.lang.Object

    -clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait diff --git a/api/team/rocket/IO/package-summary.html b/api/team/rocket/IO/package-summary.html index e6a97bc..295f396 100644 --- a/api/team/rocket/IO/package-summary.html +++ b/api/team/rocket/IO/package-summary.html @@ -1,11 +1,11 @@ - + team.rocket.IO - + diff --git a/api/team/rocket/IO/package-tree.html b/api/team/rocket/IO/package-tree.html index 09963f1..d4b7bf0 100644 --- a/api/team/rocket/IO/package-tree.html +++ b/api/team/rocket/IO/package-tree.html @@ -1,11 +1,11 @@ - + team.rocket.IO Class Hierarchy - + diff --git a/api/team/rocket/Map.html b/api/team/rocket/Map.html index 86c34fc..6dbf0ab 100644 --- a/api/team/rocket/Map.html +++ b/api/team/rocket/Map.html @@ -1,11 +1,11 @@ - + Map - + @@ -84,8 +84,6 @@

    Class Map

    0.6.0
    Version:
    0.2.0
    -
    Author:
    -
    Dale Morris
    @@ -231,7 +229,7 @@

    Method Summary

    Methods inherited from class java.lang.Object

    -clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    diff --git a/api/team/rocket/Simulation.html b/api/team/rocket/Simulation.html index 98322de..a7e0a98 100644 --- a/api/team/rocket/Simulation.html +++ b/api/team/rocket/Simulation.html @@ -1,11 +1,11 @@ - + Simulation - + @@ -90,8 +90,6 @@

    Class Simulation

    0.1.0
    Version:
    0.6.0
    -
    Author:
    -
    Dale Morris, Jon Roberts
    @@ -203,7 +201,7 @@

    Method Summary

    Methods inherited from class java.lang.Object

    -clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    diff --git a/api/team/rocket/package-summary.html b/api/team/rocket/package-summary.html index 1eb1282..fb9ad9e 100644 --- a/api/team/rocket/package-summary.html +++ b/api/team/rocket/package-summary.html @@ -1,11 +1,11 @@ - + team.rocket - + diff --git a/api/team/rocket/package-tree.html b/api/team/rocket/package-tree.html index 5af731d..f1525e6 100644 --- a/api/team/rocket/package-tree.html +++ b/api/team/rocket/package-tree.html @@ -1,11 +1,11 @@ - + team.rocket Class Hierarchy - + diff --git a/api/team/rocket/util/RandomManager.html b/api/team/rocket/util/RandomManager.html index 9c4e3fa..a4502d6 100644 --- a/api/team/rocket/util/RandomManager.html +++ b/api/team/rocket/util/RandomManager.html @@ -1,11 +1,11 @@ - + RandomManager - + @@ -109,7 +109,7 @@

    Method Summary

    Methods inherited from class java.lang.Object

    -clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait diff --git a/api/team/rocket/util/TimeManager.html b/api/team/rocket/util/TimeManager.html index 3dd6267..135c21a 100644 --- a/api/team/rocket/util/TimeManager.html +++ b/api/team/rocket/util/TimeManager.html @@ -1,11 +1,11 @@ - + TimeManager - + @@ -109,7 +109,7 @@

    Method Summary

    Methods inherited from class java.lang.Object

    -clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait diff --git a/api/team/rocket/util/package-summary.html b/api/team/rocket/util/package-summary.html index a793c60..1a69563 100644 --- a/api/team/rocket/util/package-summary.html +++ b/api/team/rocket/util/package-summary.html @@ -1,11 +1,11 @@ - + team.rocket.util - + diff --git a/api/team/rocket/util/package-tree.html b/api/team/rocket/util/package-tree.html index 7eaf882..2545dca 100644 --- a/api/team/rocket/util/package-tree.html +++ b/api/team/rocket/util/package-tree.html @@ -1,11 +1,11 @@ - + team.rocket.util Class Hierarchy - +