1 /*******************************************************************************
2 * Copyright (c) 2012 Association for Decentralized Information Management in
4 * All rights reserved. This program and the accompanying materials
5 * are made available under the terms of the Eclipse Public License v1.0
6 * which accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
10 * VTT Technical Research Centre of Finland - initial API and implementation
11 *******************************************************************************/
12 package org.simantics.modeling.ui.diagram.monitor;
14 import org.simantics.common.format.Formatter;
15 import org.simantics.db.Resource;
16 import org.simantics.db.layer0.variable.RVI;
17 import org.simantics.db.layer0.variable.Variable;
18 import org.simantics.utils.datastructures.map.Tuple;
21 * @author Tuukka Lehtonen
23 public class MonitorVariable extends Tuple {
25 public MonitorVariable(Resource monitorComponent, Formatter formatter, String expression, Variable variable, RVI rvi, Boolean external) {
26 super(monitorComponent, formatter, expression, variable, rvi, external);
28 public Resource getMonitorComponent() {
29 return (Resource) getField(0);
31 public Variable getVariable() {
32 return (Variable) getField(3);
35 return (RVI) getField(4);
37 public Formatter getFormat() {
38 return (Formatter)getField(1);
40 public String getExpression() {
41 return (String)getField(2);
43 public Boolean isExternal() {
44 return (Boolean)getField(5);