Revision 1333,
1.1 KB
checked in by wojtekp, 11 years ago
(diff) |
|
-
Property svn:mime-type set to
text/plain
|
Rev | Line | |
---|
[1333] | 1 | package test.appProfConverter; |
---|
| 2 | public class AppProfConverterRunner { |
---|
| 3 | |
---|
| 4 | public static void main(String[] args) { |
---|
| 5 | SoftwareProfile appProf, newProf; |
---|
| 6 | HardwareProfile hwProf; |
---|
| 7 | |
---|
| 8 | appProf = new SoftwareProfile("src/test/appProfConverter/resources/fakeProfile.xml"); |
---|
| 9 | appProf.StoreToXml("saved.xml"); |
---|
| 10 | |
---|
| 11 | hwProf = new HardwareProfile("src/test/appProfConverter/resources/fakeHW1.xml"); |
---|
| 12 | newProf = AppProfileConverter.Convert(appProf, hwProf); |
---|
| 13 | newProf.StoreToXml("new1.xml"); |
---|
| 14 | |
---|
| 15 | hwProf = new HardwareProfile("src/test/appProfConverter/resources/fakeHW3.xml"); |
---|
| 16 | newProf = AppProfileConverter.Convert(appProf, hwProf); |
---|
| 17 | newProf.StoreToXml("new3.xml"); |
---|
| 18 | |
---|
| 19 | hwProf = new HardwareProfile("src/test/appProfConverter/resources/fakeHW2.xml"); |
---|
| 20 | newProf = AppProfileConverter.Convert(appProf, hwProf); |
---|
| 21 | newProf.StoreToXml("new2.xml"); |
---|
| 22 | |
---|
| 23 | hwProf = new HardwareProfile( |
---|
| 24 | "src/test/appProfConverter/resources/Component_Node_IRIT_i7-16GB-ivy.xml"); |
---|
| 25 | newProf = AppProfileConverter.Convert(appProf, hwProf); |
---|
| 26 | newProf.StoreToXml("new_irit.xml"); |
---|
| 27 | // System.out.println(newProf.ToString()); |
---|
| 28 | // System.out.println(hwProf.ToString()); |
---|
| 29 | } |
---|
| 30 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.