Store-and-Data-Visualization-Contagion-Simulation

所属分类:硬件设计
开发工具:Java
文件大小:0KB
下载次数:0
上传日期:2023-10-31 19:19:19
上 传 者sh-1993
说明:  这是一种使用Java和Processing Foundation创建的Java Processing库编程的高级传染模拟。
(This is an advanced contagion simulation programmed using Java and the Java Processing library created by the Processing Foundation.)

文件列表:
ContagionSimulation.java (8082, 2023-10-31)
DataStore.java (5014, 2023-10-31)
FourthApplet.java (2326, 2023-10-31)
SecondApplet.java (2599, 2023-10-31)
ThirdApplet.java (2300, 2023-10-31)
timeData.txt (0, 2023-10-31)
winData.txt (0, 2023-10-31)

# Data-Store-and-Data-Visualization-Contagion-Simulation This is an advanced contagion simulation that I programmed using Java and the Java Processing library created by the Processing Foundation. Each color of ball represents a ball pertaining to one of three groups. Red balls are of the infected variety, blue balls are of the neutral variety, and green balls are of the immune variety. The three live updating graphs present in the simulation are color-coordinated to correspond to each color of ball. The simulation begins with a set number of balls including 1 infected and one immune ball. The infected ball has an set percent chance (defined by a variable) to infect a neutral ball or a smaller chance to remove the immunity of an immune ball (make it neutral). Immune balls work the same way **RESUME WRITING HERE** The graphs represent the number of balls present at a given time in the simulation. The peak of the y-axis is equivalent to the total number of balls in the simulation and the base represents 0 balls. The x-axis is time in seconds. After the simulation runs, it writes the runtime of the simulation and whether immune balls or infected balls won to a corresponding file (timeData.txt and winData.txt). Each time the program is re-run it pulls the data from the files to calculate the average runtime of the simulation (becoming more and more accurate the more you run it), and the percentage of time that immune balls vs. infected balls win.

近期下载者

相关文件


收藏者