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

net.finmath.smartcontract.contract.SmartDerivativeContractEvent Maven / Gradle / Ivy

/*
 * (c) Copyright Christian P. Fries, Germany. Contact: [email protected].
 *
 * Created on 7 Oct 2018
 */

package net.finmath.smartcontract.contract;

import java.time.LocalDateTime;

/**
 * Observable smart derivative contract event.
 *
 * @author Christian Fries
 */
public class SmartDerivativeContractEvent {

	public enum EventsTypes {
		INIT,
		SETTLEMENT,
		ACCOUNTS_ACCESSIBLE_START,
		ACCOUNTS_ACCESSIBLE_END,
		CHECK_MARGIN,
		MATURED,
	}

	private final EventsTypes eventType;
	private final LocalDateTime eventTime;
	private final Object eventData;

	public SmartDerivativeContractEvent(final EventsTypes eventType, final LocalDateTime eventTime, final Object eventData) {
		super();
		this.eventType = eventType;
		this.eventTime = eventTime;
		this.eventData = eventData;
	}
	/**
	 * @return the eventType
	 */
	public EventsTypes getEventType() {
		return eventType;
	}
	/**
	 * @return the eventTime
	 */
	public LocalDateTime getEventTime() {
		return eventTime;
	}
	/**
	 * @return the eventData
	 */
	public Object getEventData() {
		return eventData;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy