Linear Collider Forum

Home » Software Tools » org.lcsim » xml with driver
Re: xml with driver [message #1696 is a reply to message #1695] Tue, 03 February 2009 12:49 Go to previous message
Messages: 46
Registered: March 2004
Location: SLAC
Hi, Taejeong.

Three options.

1) Delay creating the subdriver until startOfData() or detectorChanged().

public void startOfData()
new C(x,y,z);

2) Flatten out the structure and don't use subdrivers. Then you call each driver individually in your xml file.

3) Set the value in the parent driver's setter method.

class A
int x;
B b;
public A()
b = new B();

public void setX(int x)
this.x = x;

Does this answer your question?


[Updated on: Tue, 03 February 2009 13:31]

Jeremy McCormick, SLAC <>
Read Message
Read Message
Previous Topic:Problem finding new class after adding it to org.lcsim
Next Topic:"Number of SeedSectors: 0" messages
Goto Forum:

Current Time: Tue Nov 19 23:02:26 Pacific Standard Time 2019
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.1.
Copyright ©2001-2010 FUDforum Bulletin Board Software