Revision 104,
812 bytes
checked in by wojtekp, 13 years ago
(diff) |
|
-
Property svn:mime-type set to
text/plain
|
Rev | Line | |
---|
[104] | 1 | package test.rewolucja.resources.properties; |
---|
| 2 | |
---|
| 3 | import java.util.Properties; |
---|
| 4 | |
---|
| 5 | import test.rewolucja.resources.physical.base.ComputingResource; |
---|
| 6 | |
---|
| 7 | public class DefaultPropertiesBuilder implements PropertiesBuilder{ |
---|
| 8 | |
---|
| 9 | protected Properties properties; |
---|
| 10 | private ComputingResource resource; |
---|
| 11 | |
---|
| 12 | public Properties getProperties() { |
---|
| 13 | return properties; |
---|
| 14 | } |
---|
| 15 | |
---|
| 16 | public void createProperties(ComputingResource resource) { |
---|
| 17 | this.properties = new Properties(); |
---|
| 18 | this.resource = resource; |
---|
| 19 | } |
---|
| 20 | |
---|
| 21 | public void buildBasicProperties() { |
---|
| 22 | properties.setProperty("name", resource.getName()); |
---|
| 23 | properties.setProperty("type", resource.getType().toString()); |
---|
| 24 | properties.setProperty("status", resource.getStatus().toString()); |
---|
| 25 | } |
---|
| 26 | |
---|
| 27 | public void buildCharacteristicsProperties() { |
---|
| 28 | |
---|
| 29 | } |
---|
| 30 | |
---|
| 31 | public void buildDescriptionProperties() { |
---|
| 32 | |
---|
| 33 | } |
---|
| 34 | |
---|
| 35 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.