1 package org.lcsim.detector;
2
3 public class PhysicalVolumeStore
4 extends PhysicalVolumeContainer
5 implements IPhysicalVolumeStore
6 {
7 private static IPhysicalVolumeStore store;
8 public static IPhysicalVolumeStore getInstance()
9 {
10 if ( store == null )
11 {
12 store = new PhysicalVolumeStore();
13 }
14 return store;
15 }
16 public PhysicalVolumeStore()
17 {
18
19
20
21 super(true,false,false);
22 }
23
24 public String toString()
25 {
26 StringBuffer buff = new StringBuffer();
27 for (IPhysicalVolume pv : this)
28 {
29 buff.append(pv.getName() + '\n');
30 }
31 return buff.toString();
32 }
33 }