Start a Simulation

In order to run a simulation, a token must first be created for a simulation. Generate this token by requesting /api/connectToServer. All other commands require this token. Each new simulation will need a new token, so a new token must be produced for each simulation run. All commands will start with "https://firesim.cs.gsu.edu/api/".

The example codes are in Java, but any language or HTTP requester can be used to access the API.

connectToServer

Query Parameters


none


Response


userToken (String) - key used to refer requests to a specific simulation


Example:

                        
                            
                                1
                                2
                                3
                                4
                                5
                                6
                                
                            
                            HttpRequest request = HttpRequest.newBuilder()
                              .uri(URI.create("https://firesim.cs.gsu.edu/api/connectToServer"))
                              .header("accept", "application/json")
                              .method("POST", HttpRequest.BodyPublishers.ofString("testtest"))
                              .build();
                            HttpResponse<String> response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
                        
                





setMultiParameters

Sets multiple simulation parameters with one command, so you don't have to request the endpoint for each parameter individually.


Query Parameters


userToken (String) - Your simulation token.

x (int)(OPTIONAL) - The "row" of the ignition point.

y (int)(OPTIONAL) - The "column" of the ignition point.

lat (double)(OPTIONAL) - Center simulation map on given latitude.

lng (double)(OPTIONAL) - Center simulation map on given longitude.

windSpeed (double)(OPTIONAL) - The wind's speed for the simulation. Default is 0.

windDirection (double)(OPTIONAL) - The wind's blowing direction in the simulation. Set in degrees, where south is 0 and increasing values move clockwise (e.g. west is 90 and so on). Default is 0.

cellResolution (int)(OPTIONAL) - The cubic area of each cell. Default is 30.

cellDimension (int)(OPTIONAL) - the number of cells per row and column. Default is 200.


Example:

                        
                            
                                1
                                2
                                
                                3
                                4
                                5
                                
                            
                            HttpRequest request = HttpRequest.newBuilder()
                              .uri(URI.create("https://firesim.cs.gsu.edu/api/setMultiParameters/?userToken="+key+"&x="+5+"&y="+5+"&lat="+1526555.822562622+"&lng="+-35655.01701560877+"&windDirection="+180))
                              .POST(HttpRequest.BodyPublishers.noBody())
                              .build();
                            HttpResponse<String> response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
                            
                            
                        





runSimulation

Runs a simulation using the current parameters.


Query Parameters


userToken (String) - Your simulation token.

time (int) - Number of timesteps to run the simulation for.


Response


JSON (List <String>) - List of all operations on coordinates executed during the simulation. Each operation is a JSON object with the properties:

  • x (int) - Cell column of operation
  • y (int) - Cell row of operation
  • Operation (String) - Operation occurring
  • time (double) - time of operation

Example:

                        
                            
                                1
                                2
                                
                                3
                                4
                                5
                                
                            
                            HttpRequest request = HttpRequest.newBuilder()
                              .uri(URI.create("https://firesim.cs.gsu.edu/api/runSimulation/?userToken="+key+"&time="+simTime))
                              .POST(HttpRequest.BodyPublishers.noBody())
                              .build();
                            HttpResponse<String> response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
                            
                            
                        

Returns:

[{"x":"80" ,"y":"80" ,"Operation":"BurnTeam" ,"time":"0.0" }...]






continueSimulation

Starts a simulation or continues it by an interval of time. allows a user to run a simulation in steps, where changes can be made or data collected between each.


Query Parameters


userToken (String) - Your simulation token.

time (int) - Number of timesteps to advance the simulation by.


Response


JSON (List <String>) - List of all operations on coordinates executed during the simulation. Each operation is a JSON object with the properties:

  • x (int) - cell column of operation
  • y (int) - cell row of operation
  • Operation (String) - Operation occurring
  • time (double) - time of operation

Example:

                        
                            
                                1
                                2
                                
                                3
                                4
                                5
                                
                            
                            HttpRequest request = HttpRequest.newBuilder()
                              .uri(URI.create("https://firesim.cs.gsu.edu/api/continueSimulation/?userToken="+key+"&time="+simTime))
                              .POST(HttpRequest.BodyPublishers.noBody())
                              .build();
                            HttpResponse<String> response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
                            
                            
                        

Returns:

[{"x":"80" ,"y":"80" ,"Operation":"BurnTeam" ,"time":"0.0" }...]






setCellResolution

Set the size of each cell and the dimensions of the cell space. If this is not set, the simulation will run with the default cell resolution and dimensions of 30 and 200x200. Inputting a custom fuel map will update the dimensions automatically to match the given map.


Query Parameters


userToken (String) - Your simulation token.

cellResolution (int) - The cubic area of each cell.

cellDimension (int) - The height and width of the cell space.


Example:

                        
                            
                                1
                                2
                                
                                3
                                4
                                5
                                
                            
                            HttpRequest request = HttpRequest.newBuilder()
                              .uri(URI.create("https://firesim.cs.gsu.edu/api/setCellResolution/?userToken="+key+"&cellResolution="+30+"&cellDimension="+200))
                              .POST(HttpRequest.BodyPublishers.noBody())
                              .build();
                            HttpResponse<String> response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
                            
                            
                        





setCellSpaceLocation

If using the online fuel data, then the location must be picked before a simulation can run. Inputting any coordinate in the US will set the center of the simulation to the given position.


Query Parameters


userToken (String) - Your simulation token.

lat (double) - Latitude of the center of the simulation area.

lng (double) - Longitude of the center of the simulation area.


Example:

                        
                            
                                1
                                2
                                
                                3
                                4
                                5
                                
                            
                            HttpRequest request = HttpRequest.newBuilder()
                              .uri(URI.create("https://firesim.cs.gsu.edu/api/setCellSpaceLocation/?userToken="+key+"&lat="+1526555.822562622+"&lng="+-35655.01701560877))
                              .POST(HttpRequest.BodyPublishers.noBody())
                              .build();
                            HttpResponse<String> response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
                        
                





setWindCondition

Set the winds speed and direction.


Query Parameters


userToken (String) - Your simulation token.

windSpeed (double)(OPTIONAL) - The wind's speed for the simulation. Default is 0.

windDirection (double)(OPTIONAL) - The wind's blowing direction in the simulation. Set in degrees, where south is 0 and increasing values move clockwise (e.g. west is 90 and so on). Default is 0.


Example:

                        
                            
                                1
                                2
                                
                                3
                                4
                                5
                                
                            
                            HttpRequest request = HttpRequest.newBuilder()
                              .uri(URI.create("https://firesim.cs.gsu.edu/api/setWindCondition/?userToken="+key+"&windSpeed="+5+"&windDirection="+180))
                              .POST(HttpRequest.BodyPublishers.noBody())
                              .build();
                            HttpResponse<String> response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
                            
                            
                        





setPointIgnition

Set one or more cells to burn simultaneously at the start of the simulation. Both coordinate parameters should be formatted as comma-separated strings with no spaces between values, i.e. "x1,x2,x3" and "y1,y2,y3" to define 3 points of ignition.


Query Parameters


userToken (String) - Your simulation token.

xs (String) - Comma-separated rows of cells to ignite.

ys (String) - Comma-separated columns of cells to ignite.


Example:

                        
                            
                                1
                                2
                                
                                3
                                4
                                5
                                
                            
                            // Ignite at points (50, 50) and (100,100)
                            HttpRequest request = HttpRequest.newBuilder()
                              .uri(URI.create("https://firesim.cs.gsu.edu/api/setPointIgnition/?userToken="+key+"&xs="+"50,100"+"&ys="+"50,100"))
                              .POST(HttpRequest.BodyPublishers.noBody())
                              .build();
                            HttpResponse<String> response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
                            
                            
                        





setDynamicIgnition

Set a team to burn over a specified path. Teams with different teamNums will follow their paths simultaneously. Calling this multiple times with the same team will make that team follow each path in sequence from first to last.


Query Parameters


userToken (String) - Your simulation token.

teamNum (String) - The team name and ID.

x1 (int) - starting position's row.

y1 (int) - starting position's column.

x2 (int) - ending position's row.

y2 (int) - ending position's column.

speed (double) - The speed at which the team moves.

mode (String)(OPTIONAL) - Set to "spot" for individual ignition points separated by distance; set to "continuous" for a continuous line of ignition. Default is "continuous".

distance (double)(OPTIONAL) - If mode is set to "spot", this is the distance between each ignition point. Default is 0.

waitTime (double)(OPTIONAL) - Wait for this many timesteps before burning. Default is -1 to start immediately.


Response


BurnTeams (String) - Returns a list of all burn teams and paths set up so far.


Example:

                        
                            
                                1
                                2
                                
                                3
                                4
                                5
                                
                            
                            // These two teams "team0" and "team1" will run simultaneously
                            HttpRequest request = HttpRequest.newBuilder()
                              .uri(URI.create("https://firesim.cs.gsu.edu/api/setDynamicIgnition/?userToken="+key+"&teamNum=team0&x1="+1+"&y1="+1+"&x2="+100+"&y2="+100+"&speed="+0.4))
                              .POST(HttpRequest.BodyPublishers.noBody())
                              .build();
                            HttpResponse<String> response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
                            HttpRequest request2 = HttpRequest.newBuilder()
                              .uri(URI.create("https://firesim.cs.gsu.edu/api/setDynamicIgnition/?userToken="+key+"&teamNum=team1&x3="+1+"&y3="+1+"&x4="+100+"&y4="+100+"&speed="+0.4))
                              .POST(HttpRequest.BodyPublishers.noBody())
                              .build();
                            HttpResponse<String> response2 = HttpClient.newHttpClient().send(request2, HttpResponse.BodyHandlers.ofString());

                            // This one team named "team2" will follow the first path, then the second path.
                            HttpRequest request = HttpRequest.newBuilder()
                              .uri(URI.create("https://firesim.cs.gsu.edu/api/setDynamicIgnition/?userToken="+key+"&teamNum=team2&x1="+1+"&y1="+1+"&x2="+100+"&y2="+100+"&speed="+0.4))
                              .POST(HttpRequest.BodyPublishers.noBody())
                              .build();
                            HttpResponse<String> response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
                            HttpRequest request2 = HttpRequest.newBuilder()
                              .uri(URI.create("https://firesim.cs.gsu.edu/api/setDynamicIgnition/?userToken="+key+"&teamNum=team2&x3="+1+"&y3="+1+"&x4="+100+"&y4="+100+"&speed="+0.4))
                              .POST(HttpRequest.BodyPublishers.noBody())
                              .build();
                            HttpResponse<String> response2 = HttpClient.newHttpClient().send(request2, HttpResponse.BodyHandlers.ofString());
                            
                            
                        





loadFuel

Set the simulation to use a custom fuel map from a .txt file with space or tab-separated values. See this file for an example.


Query Parameters


userToken (String) - Your simulation token.

fuelMap (File) - A tab- or space-separated .txt file of custom fuel data.


Example:

                        
                            
                                1
                                2
                                3
                                4
                                
                                5
                                6
                                7
                                8
                                9
                                
                            
                            File fuel = new File("fuel.txt");
                            Path path = fuel.toPath();
                            HttpRequest request = HttpRequest.newBuilder()
                              .uri(URI.create("https://firesim.cs.gsu.edu/api/loadFuel/?userToken="+key+"&fuelMap="+fuel)))
                              .header("Content-Type", "text/plain")
                              .header("fileName", path.getFileName().toString())
                              .POST(HttpRequest.BodyPublishers.ofFile(path))
                              .build();
                            HttpResponse<String> response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
                            
                            
                        





loadAspect

Set the simulation to use a custom aspect map from a .txt file with space or tab-separated values. See this file for an example.


Query Parameters


userToken (String) - Your simulation token.

AspectMap (File) - A tab- or space-separated .txt file of custom aspect data.


Example:

                        
                            
                                1
                                2
                                3
                                4
                                
                                5
                                6
                                7
                                8
                                9
                                
                            
                            File aspect = new File("aspect.txt");
                            Path path = aspect.toPath();
                            HttpRequest request = HttpRequest.newBuilder()
                              .uri(URI.create("https://firesim.cs.gsu.edu/api/loadAspect/?userToken="+key+"&aspectMap="+aspect)))
                              .header("Content-Type", "text/plain")
                              .header("fileName", path.getFileName().toString())
                              .POST(HttpRequest.BodyPublishers.ofFile(path))
                              .build();
                            HttpResponse<String> response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
                            
                            
                        





loadSlope

Set the simulation to use a custom slope map from a .txt file with space or tab-separated values. See this file for an example.


Query Parameters


userToken (String) - Your simulation token.

SlopeMap (File) - A tab- or space-separated .txt file of custom slope data.


Example:

                        
                            
                                1
                                2
                                3
                                4
                                
                                5
                                6
                                7
                                8
                                9
                                
                            
                            File slope = new File("slope.txt");
                            Path path = fuel.toPath();
                            HttpRequest request = HttpRequest.newBuilder()
                              .uri(URI.create("https://firesim.cs.gsu.edu/api/loadSlope/?userToken="+key+"&slopeMap="+slope)))
                              .header("Content-Type", "text/plain")
                              .header("fileName", path.getFileName().toString())
                              .POST(HttpRequest.BodyPublishers.ofFile(path))
                              .build();
                            HttpResponse<String> response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
                            
                            
                        





loadWindFlow

Upload a windflow file for dynamically changing wind data. See this file for an example. The first line is the number of columns (currently unused), and the second line is the number of rows. The third line is column headers. The fourth line onwards represents a wind change, which consists of tab-separated values for the hour, minute, temperature, wind speed, and wind direction. For each wind change line, the wind is scheduled at the given hour and minute to blow with the given speed and direction.


Query Parameters


userToken (String) - Your simulation token.

WeatherFlowFile (File) - A txt file including data as described above


Example:

                        
                            
                                1
                                2
                                3
                                4
                                5
                                6
                                7
                                8
                                9
                                
                            
                            File weather = new File("weather_artificial.txt");
                            Path weatherPath = weather.toPath();
                            HttpRequest request = HttpRequest.newBuilder()
                            .uri(URI.create(base_url+"/api/loadWindFlow/?userToken="+key+"&weatherMap="+weather))
                            .header("Content-Type", "text/plain")
                            .header("fileName", weatherPath.getFileName().toString())
                            .POST(HttpRequest.BodyPublishers.ofFile(weatherPath))
                            .build();
                            HttpResponse<String> response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
                            
                        





setSuppressedCell

Suppresses a single cell or a line of cells between two given cells.


Query Parameters


userToken (String) - Your simulation token.

x1 (int) - Starting/single cell's row.

y1 (int) - Starting/single cell's column.

x2 (int)(OPTIONAL) - Ending cell's row, for linear suppression.

y2 (int)(OPTIONAL) - Ending cell's column, for linear suppression.


Example:

                        
                            
                                1
                                2
                                3
                                4
                                
                                5
                                
                            
                            HttpRequest request = HttpRequest.newBuilder()
                              .uri(URI.create("https://firesim.cs.gsu.edu/api/setSuppressedCell/?userToken="+key+"&x1="+5+"&y1="+5+"&x2="+5+"&y2="+10))
                              .POST(HttpRequest.BodyPublishers.noBody())
                              .build();
                            HttpResponse<String> response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
                            
                            
                        





getPerimeterCells

Returns the perimeter of the fire at the end of the simulation.


Query Parameters


userToken (String) - Your simulation token.


Response


Perimeter cells (List <String>) - A list of coordinates of each cell forming the perimeter, formatted as "x,y".


Example:

                        
                            
                                1
                                2
                                3
                                4
                                5
                                
                            
                            HttpRequest request = HttpRequest.newBuilder()
                              .uri(URI.create("https://firesim.cs.gsu.edu/api/getPerimeterCells/?userToken="+key))
                              .POST(HttpRequest.BodyPublishers.noBody())
                              .build();
                            HttpResponse<String> response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
                            
                        
                        

Returns:

[84,77, 83,77, 82,76, 81,76, 80,76, 79,76, 78,76, 77,77, 76,77, 75,78, 75,79, 75,80, 75,81, 75,82, 75,83, 75,84, 76,84, 77,84, 78,84, 79,84, 80,84, 81,84, 82,84, 83,84, 84,84, 85,84, 85,83, 85,82, 85,81, 85,80, 85,79, 85,78]






getCellState

Returns the state of a given cell.


Query Parameters


userToken (String) - Your simulation token.

x (int) - Row to select.

y (int) - Column to select.


Response


cellState (String) - State of the cell.


Example:

                        
                            
                                1
                                2
                                
                                3
                                4
                                5
                                
                            
                            HttpRequest request = HttpRequest.newBuilder()
                              .uri(URI.create("https://firesim.cs.gsu.edu/api/getCellState/?userToken="+key+"&x="+5+"&y="+10))
                              .POST(HttpRequest.BodyPublishers.noBody())
                              .build();
                            HttpResponse<String> response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
                            
                            
                        

Returns:

"Burning"






computePerimeterLength

Computes the length of the perimeter around the burn area.


Query Parameters


userToken (String) - Your simulation token.


Response


perimeterLength (double) - The perimeter of the burn area.


Example:

                        
                            
                                1
                                2
                                3
                                4
                                5
                                
                            
                            HttpRequest request = HttpRequest.newBuilder()
                              .uri(URI.create("https://firesim.cs.gsu.edu/api/computePerimeterLength/?userToken="+key))
                              .POST(HttpRequest.BodyPublishers.noBody())
                              .build();
                            HttpResponse<String> response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
                            
                            
                        

Returns:

370






computeBurnedArea

Computes the total burned area


Query Parameters


userToken (String) - Your simulation token.


Response


BurnedArea (double) - Total burned area.


Example:

                        
                            
                                1
                                2
                                3
                                4
                                5
                                
                            
                            HttpRequest request = HttpRequest.newBuilder()
                              .uri(URI.create("https://firesim.cs.gsu.edu/api/computeBurnedArea/?userToken="+key))
                              .POST(HttpRequest.BodyPublishers.noBody())
                              .build();
                            HttpResponse<String> response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
                            
                            
                        

Returns:

890.0






getBurningCellNum

Returns the total number of burning cells.


Query Parameters


userToken (String) - Your simulation token.


Response


totalBurningCells (int) - total number of burning cells.


Example:

                        
                            
                                1
                                2
                                3
                                4
                                5
                                
                            
                            HttpRequest request = HttpRequest.newBuilder()
                              .uri(URI.create("https://firesim.cs.gsu.edu/api/getBurningCellNum/?userToken="+key))
                              .POST(HttpRequest.BodyPublishers.noBody())
                              .build();
                            HttpResponse<String> response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
                            
                            
                        

Returns:

1240






getUnburnedCellNum

Returns the total number of unburned cells.


Query Parameters


userToken (String) - Your simulation token.


Response


totalUnburnedCells (int) - total number of unburned cells.


Example:

                        
                            
                                1
                                2
                                3
                                4
                                5
                                
                            
                            HttpRequest request = HttpRequest.newBuilder()
                              .uri(URI.create("https://firesim.cs.gsu.edu/api/getUnburnedCellNum/?userToken="+key))
                              .POST(HttpRequest.BodyPublishers.noBody())
                              .build();
                            HttpResponse<String> response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
                            
                            
                        

Returns:

38760






getCellSpaceSize

Returns the dimensions of the cell space


Query Parameters


userToken (String) - Your simulation token.


Response


cellDimension (int) - the length and width of the cell space.


Example:

                        
                            
                                1
                                2
                                3
                                4
                                5
                                
                            
                            HttpRequest request = HttpRequest.newBuilder()
                              .uri(URI.create("https://firesim.cs.gsu.edu/api/getCellSpaceSize/?userToken="+key))
                              .POST(HttpRequest.BodyPublishers.noBody())
                              .build();
                            HttpResponse<String> response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
                            
                            
                        

Returns:

200






getCellSize

Returns the area of each cell.


Query Parameters


userToken (String) - Your simulation token.


Response


cellSize (int) - the cubic area of a cell.


Example:

                        
                            
                                1
                                2
                                3
                                4
                                5
                                
                            
                            HttpRequest request = HttpRequest.newBuilder()
                              .uri(URI.create("https://firesim.cs.gsu.edu/api/getCellSize/?userToken="+key))
                              .POST(HttpRequest.BodyPublishers.noBody())
                              .build();
                            HttpResponse<String> response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
                            
                            
                        

Returns:

30






getWindDegree

Returns the direction the wind is blowing in.


Query Parameters


userToken (String) - Your simulation token.


Response


windDirection (double) - Set in degrees, where south is 0 and increasing values move clockwise (e.g. west is 90 and so on).


Example:

                        
                            
                                1
                                2
                                3
                                4
                                5
                                
                            
                            HttpRequest request = HttpRequest.newBuilder()
                              .uri(URI.create("https://firesim.cs.gsu.edu/api/getWindDegree/?userToken="+key))
                              .POST(HttpRequest.BodyPublishers.noBody())
                              .build();
                            HttpResponse<String> response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
                            
                            
                        

Returns:

90






getWindSpeed

Returns the wind speed.


Query Parameters


userToken (String) - Your simulation token.


Response


windSpeed (double) - The speed the wind is moving.


Example:

                        
                            
                                1
                                2
                                3
                                4
                                5
                                
                            
                            HttpRequest request = HttpRequest.newBuilder()
                              .uri(URI.create("https://firesim.cs.gsu.edu/api/getWindSpeed/?userToken="+key))
                              .POST(HttpRequest.BodyPublishers.noBody())
                              .build();
                            HttpResponse<String> response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
                            
                            
                        

Returns:

5






getCellFuel

Returns the current fuel map in use.


Query Parameters


userToken (String) - Your simulation token.


Response


fuelMap (int[][]) - A 2D array of numerical fuel values.


Example:

                        
                            
                                1
                                2
                                3
                                4
                                5
                                
                            
                            HttpRequest request = HttpRequest.newBuilder()
                              .uri(URI.create("https://firesim.cs.gsu.edu/api/getCellFuel/?userToken="+key))
                              .POST(HttpRequest.BodyPublishers.noBody())
                              .build();
                            HttpResponse<String> response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
                            
                            
                        

Returns:

[[1,1,1,1,1,1],[1,1,1,1,1,1],[1,1,1,1,1,1],...]






getCellSlope

Returns the current slope map in use.


Query Parameters


userToken (String) - Your simulation token.


Response


slopeMap (double[][]) - A 2D array of numerical slope values.


Example:

                        
                            
                                1
                                2
                                3
                                4
                                5
                                
                            
                            HttpRequest request = HttpRequest.newBuilder()
                              .uri(URI.create("https://firesim.cs.gsu.edu/api/getCellSlope/?userToken="+key))
                              .POST(HttpRequest.BodyPublishers.noBody())
                              .build();
                            HttpResponse<String> response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
                            
                            
                        

Returns:

[[1,1,1,1,1,1],[1,1,1,1,1,1],[1,1,1,1,1,1],...]






getCellAspect

Returns the current Aspect map in use.


Query Parameters


userToken (String) - Your simulation token.


Response


AspectMap (double[][]) - A 2D array of numerical aspect values.


Example:

                        
                            
                                1
                                2
                                3
                                4
                                5
                                
                            
                            HttpRequest request = HttpRequest.newBuilder()
                              .uri(URI.create("https://firesim.cs.gsu.edu/api/getCellAspect/?userToken="+key))
                              .POST(HttpRequest.BodyPublishers.noBody())
                              .build();
                            HttpResponse<String> response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
                            
                            
                        

Returns:

[[1,1,1,1,1,1],[1,1,1,1,1,1],[1,1,1,1,1,1],...]