All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.bimserver.demoplugins.service.planner.Event Maven / Gradle / Ivy

There is a newer version: 0.0.82
Show newest version
package org.bimserver.demoplugins.service.planner;

import java.util.GregorianCalendar;

public class Event implements Comparable {
	public static enum Timing {
		UNKNOWN,
		ON_TIME,
		TOO_LATE
	}
	
	private String guid;
	private String type;
	private String nlSfb;
	private String material;
	private String task;
	private String resource;
	private String taskName;
	private GregorianCalendar taskStart;
	private GregorianCalendar taskFinish;
	private Timing timing = Timing.UNKNOWN;
	private String buildingGuid;

	public String getGuid() {
		return guid;
	}

	public void setGuid(String guid) {
		this.guid = guid;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getNlSfb() {
		return nlSfb;
	}

	public void setNlSfb(String nlSfb) {
		this.nlSfb = nlSfb;
	}

	public String getMaterial() {
		return material;
	}

	public void setMaterial(String material) {
		this.material = material;
	}

	public String getTask() {
		return task;
	}

	public void setTask(String task) {
		this.task = task;
	}

	public String getResource() {
		return resource;
	}

	public void setResource(String resource) {
		this.resource = resource;
	}

	public String getTaskName() {
		return taskName;
	}

	public void setTaskName(String taskName) {
		this.taskName = taskName;
	}

	public GregorianCalendar getTaskStart() {
		return taskStart;
	}

	public void setTaskStart(GregorianCalendar taskStart) {
		this.taskStart = taskStart;
	}

	public GregorianCalendar getTaskFinish() {
		return taskFinish;
	}

	public void setTaskFinish(GregorianCalendar taskFinish) {
		this.taskFinish = taskFinish;
	}

	@Override
	public int compareTo(Event o) {
		return taskStart.compareTo(o.taskStart);
	}

	public Event copy() {
		Event event = new Event();
		event.setGuid(guid);
		event.setMaterial(material);
		event.setNlSfb(nlSfb);
		event.setResource(resource);
		event.setTask(task);
		event.setTaskFinish(taskFinish);
		event.setTaskStart(taskStart);
		event.setType(type);
		event.setTaskName(taskName);
		return event;
	}

	public Timing getTiming() {
		return timing;
	}

	public void setTiming(Timing timing) {
		this.timing = timing;
	}

	public void setBuildingGuid(String buildingGuid) {
		this.buildingGuid = buildingGuid;
	}
	
	public String getBuildingGuid() {
		return buildingGuid;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy