This Java application provides tools for analyzing communications between suspects. It allows users to input suspects, their aliases, locations, and communication details, and then visualize the communication network.
- Input and manage suspects' information
- Record and analyze communication data
- Visualize the communication network
- Java Development Kit (JDK) installed
- Clone the repository to your local machine.
git clone https://github.com/george313/java_crimenet.git
-
Compile and run the
Main.java
file using your preferred Java IDE or the command line. -
Follow the prompts to input suspect and communication data.
-
Use the "Find" button to search for suspects by name.
-
Use the "Visualize Network" button to generate a graphical representation of the communication network.
If you'd like to contribute to this project, please follow these steps:
- Fork the repository.
- Create a new branch.
- Make your changes and commit them.
- Push the changes to your fork.
- Create a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.
import java.awt.Dimension;
import java.util.ArrayList;
import javax.swing.JFrame;
import edu.uci.ics.jung.algorithms.filters.KNeighborhoodFilter.EdgeType;
import edu.uci.ics.jung.algorithms.layout.CircleLayout;
import edu.uci.ics.jung.algorithms.layout.Layout;
import edu.uci.ics.jung.graph.DirectedSparseMultigraph;
import edu.uci.ics.jung.graph.Graph;
import edu.uci.ics.jung.graph.SparseGraph;
import edu.uci.ics.jung.graph.SparseMultigraph;
import edu.uci.ics.jung.visualization.BasicVisualizationServer;
import edu.uci.ics.jung.visualization.decorators.ToStringLabeller;
public class Main {
public static void main(String[] args) {
ArrayList<Suspect> sus = new ArrayList<Suspect>();
ArrayList<Communication> comm = new ArrayList<Communication>();
// (Code for creating suspects and communications goes here)
//Creation of Registry object
Registry registry = new Registry();
registry.addSuspect(s1);
registry.addSuspect(s2);
registry.addSuspect(s3);
registry.addSuspect(s4);
registry.addSuspect(s5);
for(int i=0; i<16; i++)
{
registry.addCommunication(comms[i]);
comm.add(comms[i]);
}
sus.add(s1);
sus.add(s2);
sus.add(s3);
sus.add(s4);
sus.add(s5);
new MyFrame(sus, comm);
}
}
This is the main class of the Communication Analysis System. It initializes and manages the suspects, communications, and the graphical user interface. Suspects and communications are created and added to the registry. The program then visualizes the communication network using a graphical representation.
To run the program, ensure you have the Java Development Kit (JDK) installed on your system. Compile and execute the Main.java
file using your preferred Java IDE or the command line.
This project can be developed furthered by importing a .csv file instead of writting the suspects in main.