What are the properties of Points in GIS?
Defined by their properties and their behavior/functions, have coordinates, can be asked about their distance to other points
The Point class itself does not have specific coordinates or distance.
What is a Bounding Box in GIS?
Made from two points, requires creating two points to construct a bounding box object
The member variables are referred to as ul and lr.
What is the definition of a package in programming?
A grouping of related types providing access protection and name space management
Types refer to classes, interfaces, enumerations, and annotation types.
What do the keywords public and static signify in Java?
They control the visibility of methods and variables, which is different from their scope
For example, a variable defined inside a loop is not accessible outside of it.
True or False: Scope and visibility are the same concept.
False
Scope refers to the accessibility of variables and methods, while visibility pertains to access control.
What method do all objects in Java have?
toString()
This method is called whenever you print an object to the console.
What is one reason for overriding the toString() method?
To create a pretty print output
This enhances the readability of object representations.
Fill in the blank: A playing field is needed for _______.
Zombies
This refers to a programming exercise involving a game simulation.
What is an ArrayList in Java?
A list implementation based on arrays, allowing parameterized types
Example: ArrayList<Building> b = new ArrayList<Building>();</Building></Building>
What method is used to add new elements to an ArrayList?
add(e<T>)</T>
This method allows adding elements of type T to the list.
What is a common method to iterate over elements of a list?
Using an Iterator
Example: Iterator iterator = arrayList.iterator();
List some common ArrayList methods.
There are many more methods available.
How can you append a point to a Polyline?
By adding the point to the sequence of points that make up the Polyline
This involves using specific methods to manipulate the data structure.
What is the focus of the epidemic simulation discussed?
Creating a simple SIR simulation
The simulation is based on abstraction and generalization.
What is a suggested assignment for the epidemic simulation?
Create a class for people that are either susceptible
This involves modeling different states within the simulation.
What are the three categories of people in the SIR simulation?
Susceptible, Infectious, Recovered/Removed
These categories represent the states of individuals in the simulation of disease spread.
What type of area should be defined for the SIR simulation?
A rectangular study area
This area will be used to select individuals for the simulation.
What will be randomly assigned to people in the simulation?
Location
The location assignment will be done without implementing continuous movement at this stage.
What happens to susceptible people within a radius of x meters from an infectious person?
They become infected with a chance of y
This infection mechanism is a key aspect of the disease spread model.
What should not be attempted yet in the simulation development?
Running a simulation
The focus is currently on coding and testing rather than executing the simulation.
What keyword should be reviewed in the assigned chapters of the book?
Static
Understanding this keyword is essential for working with class-level variables and methods in Java.
What type of list is mentioned for use in the simulation?
ArrayList
This data structure is part of the Java Collections Framework and is used to store dynamic arrays.
What class from the Java API should be familiarized with?
Arrays class
This class provides various methods for manipulating arrays in Java.