]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/diagram/monitor/MonitorVariable.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.modeling.ui / src / org / simantics / modeling / ui / diagram / monitor / MonitorVariable.java
1 /*******************************************************************************
2  * Copyright (c) 2012 Association for Decentralized Information Management in
3  * Industry THTH ry.
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
8  *
9  * Contributors:
10  *     VTT Technical Research Centre of Finland - initial API and implementation
11  *******************************************************************************/
12 package org.simantics.modeling.ui.diagram.monitor;
13
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;
19
20 /**
21  * @author Tuukka Lehtonen
22  */
23 public class MonitorVariable extends Tuple {
24
25     public MonitorVariable(Resource monitorComponent, Formatter formatter, String expression, Variable variable, RVI rvi, Boolean external) {
26         super(monitorComponent, formatter, expression, variable, rvi, external);
27     }
28     public Resource getMonitorComponent() {
29         return (Resource) getField(0);
30     }
31     public Variable getVariable() {
32         return (Variable) getField(3);
33     }
34     public RVI getRVI() {
35         return (RVI) getField(4);
36     }
37     public Formatter getFormat() {
38         return (Formatter)getField(1);
39     }
40     public String getExpression() {
41         return (String)getField(2);
42     }
43     public Boolean isExternal() {
44         return (Boolean)getField(5);
45     }
46
47 }