public static void infoBox(String infoMessage, String location)
{
JOptionPane.showMessageDialog(null, infoMessage, "InfoBox: " + location, JOptionPane.INFORMATION_MESSAGE);
}
public void sync() {
ExactModel data = ew.getData();
synchronized (data) {
classes = data.getClasses();
classNames = ArrayUtils.copy(data.getClassNames());
stationNames = ArrayUtils.copy(data.getStationNames());
stationNames = ArrayUtils.resize(stationNames, stationNames.length+1, null);
stationNames[stationNames.length-1] = "Arrival Process";
visits = ArrayUtils.copy2(data.getVisits());
// To set the Gray color for the Arrival Process (just for the UI)
colors = ArrayUtils.resize(colors, stationNames.length);
for (int i=0 ; i< stationNames.length; i++)
{
if (stationNames[i].equals("Arrival Process"))
{
colors[i] = Color.GRAY;
}
else
{
colors[i] = null;
}
}
ReferenceStation = ArrayUtils.copy(data.getReferenceStation());
classTypes = ArrayUtils.copy(data.getClassTypes());
}
for(int i=0;i<classes;i++) //if the class is open there is no RefStation
{
if (classTypes[i] == 1)