1 package org.lcsim.geometry.compact.converter.lcdd.util;
2
3
4
5
6
7
8 public class Matrix extends RefElement {
9
10 int coldim = 0;
11
12 public Matrix(String name, int coldim) {
13 super("matrix", name);
14 if (name == null)
15 throw new IllegalArgumentException("name is null");
16 if (coldim <= 0) {
17 throw new IllegalArgumentException("invalid coldim value: " + coldim);
18 }
19 setAttribute("coldim", String.valueOf(coldim));
20 }
21
22 public void setValues(String values) {
23 setAttribute("values", values);
24 }
25 }