blob: ff5be664d38fdde21c745b59224d39106859a366 [file] [log] [blame]
/*****************************************************************************
* Copyright (c) 2016 CEA LIST.
*
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* David LOPEZ BETANCUR (CEA LIST)
* Sebastien REVOL (CEA LIST)
*
*****************************************************************************/
package org.eclipse.papyrus.moka.datavisualization.service;
import org.eclipse.papyrus.moka.xygraph.mapping.common.Variable;
public class VariableEntry {
private Variable variable;
private long lastUpdated;
public VariableEntry(Variable variable) {
this.variable = variable;
lastUpdated = -1;
}
public void markUpdate(){
lastUpdated = System.nanoTime();
}
public Variable getVariable() {
return variable;
}
public long getLastUpdate() {
return lastUpdated;
}
}