/*
 * JaamSim Discrete Event Simulation
 * Copyright (C) 2017 JaamSim Software Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.jaamsim.ui;

public class EventData {

	public long ticks;
	public int priority;
	public String description;
	public String status;

	public EventData(long tk, int pri, String desc, String stat) {
		ticks = tk;
		priority = pri;
		description = desc;
		status = stat;
	}

	@Override
	public boolean equals(Object obj) {
		if (obj == null) return false;
		if (obj == this) return true;
		if (!(obj instanceof EventData)) return false;
		EventData data = (EventData) obj;
		return (ticks == data.ticks) && (priority == data.priority)
				&& description.equals(data.description);
	}

}

@@ -782,16 +782,42 @@
  status;
+%0A%09public long nanoseconds;
 %0A%0A%09publi
@@ -881,74 +881,280 @@
 %0A%09%09t
-icks = tk;%0A%09%09priority = pri;%0A%09%09description = desc;%0A%09%09status = stat
+his(tk, pri, desc, stat, -1L);%0A%09%7D%0A%0A%09public EventData(long tk, int pri, String desc, String stat, long nanos) %7B%0A%09%09ticks = tk;%0A%09%09priority = pri;%0A%09%09description = desc;%0A%09%09status = stat;%0A%09%09nanoseconds = nanos;%0A%09%7D%0A%0A%09public void setNanoseconds(long nanos) %7B%0A%09%09nanoseconds = nanos
 ;%0A%09%7D

add nanoseconds to EventData