Last change
on this file since 78 was
78,
checked in by psniegowski, 11 years ago
|
Add f0 parsing and f0->Model transformation.
|
File size:
1.0 KB
|
Line | |
---|
1 | package com.framsticks.core; |
---|
2 | |
---|
3 | import com.framsticks.params.FramsClass; |
---|
4 | import com.framsticks.util.Dispatcher; |
---|
5 | import org.apache.commons.configuration.Configuration; |
---|
6 | |
---|
7 | /** |
---|
8 | * @author Piotr Sniegowski |
---|
9 | */ |
---|
10 | public class Parameters { |
---|
11 | protected Configuration config; |
---|
12 | protected String name; |
---|
13 | protected Dispatcher dispatcher; |
---|
14 | protected EntityOwner owner; |
---|
15 | |
---|
16 | |
---|
17 | |
---|
18 | public Parameters(Configuration config, String name, Dispatcher dispatcher, EntityOwner owner) { |
---|
19 | this.config = config; |
---|
20 | this.name = name; |
---|
21 | this.dispatcher = dispatcher; |
---|
22 | this.owner = owner; |
---|
23 | } |
---|
24 | |
---|
25 | public Parameters(Parameters parameters) { |
---|
26 | config = parameters.config; |
---|
27 | name = parameters.name; |
---|
28 | dispatcher = parameters.dispatcher; |
---|
29 | owner = parameters.owner; |
---|
30 | } |
---|
31 | |
---|
32 | public final Configuration getConfig() { |
---|
33 | return config; |
---|
34 | } |
---|
35 | |
---|
36 | public final String getName() { |
---|
37 | return name; |
---|
38 | } |
---|
39 | |
---|
40 | public static void constructFramsClass(FramsClass.Constructor constructor) { |
---|
41 | constructor.method("getName"); |
---|
42 | } |
---|
43 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.