--- /dev/null
+/*******************************************************************************\r
+ * Copyright (c) 2012 Association for Decentralized Information Management in\r
+ * Industry THTH ry.\r
+ * All rights reserved. This program and the accompanying materials\r
+ * are made available under the terms of the Eclipse Public License v1.0\r
+ * which accompanies this distribution, and is available at\r
+ * http://www.eclipse.org/legal/epl-v10.html\r
+ *\r
+ * Contributors:\r
+ * VTT Technical Research Centre of Finland - initial API and implementation\r
+ *******************************************************************************/\r
+package org.simantics.modeling.ui.diagram.monitor;\r
+\r
+import org.simantics.common.format.Formatter;\r
+import org.simantics.db.Resource;\r
+import org.simantics.db.layer0.variable.RVI;\r
+import org.simantics.db.layer0.variable.Variable;\r
+import org.simantics.utils.datastructures.map.Tuple;\r
+\r
+/**\r
+ * @author Tuukka Lehtonen\r
+ */\r
+public class MonitorVariable extends Tuple {\r
+\r
+ public MonitorVariable(Resource monitorComponent, Formatter formatter, String expression, Variable variable, RVI rvi, Boolean external) {\r
+ super(monitorComponent, formatter, expression, variable, rvi, external);\r
+ }\r
+ public Resource getMonitorComponent() {\r
+ return (Resource) getField(0);\r
+ }\r
+ public Variable getVariable() {\r
+ return (Variable) getField(3);\r
+ }\r
+ public RVI getRVI() {\r
+ return (RVI) getField(4);\r
+ }\r
+ public Formatter getFormat() {\r
+ return (Formatter)getField(1);\r
+ }\r
+ public String getExpression() {\r
+ return (String)getField(2);\r
+ }\r
+ public Boolean isExternal() {\r
+ return (Boolean)getField(5);\r
+ }\r
+\r
+}
\ No newline at end of file