1 | void setMessageChoice(String choice) {↵ | | 1 | void setInputFile(String file) {↵
|
2 | setProperty(MESSAGE_CHOICE, choice);↵ | | 2 | setProperty(INPUT_FILE, file);↵
|
3 | }↵ | | 3 | }↵
|
|
4 | /**↵ | | 4 | /**↵
|
5 | * return the source of the message↵ | | 5 | * return the path of the input file↵
|
6 | * ↵ | | 6 | * ↵
|
7 | */↵ | | 7 | */↵
|
8 | public String getMessageChoice() {↵ | | 8 | public String getInputFile() {↵
|
9 | return getPropertyAsString(MESSAGE_CHOICE);↵ | | 9 | return getPropertyAsString(INPUT_FILE);↵
|
10 | }↵ | | 10 | }↵
|
|
11 | /**↵ | | 11 | /**↵
|
12 | * set the input file for the publisher↵ | | 12 | * set the random path for the messages↵
|
13 | * ↵ | | 13 | * ↵
|
14 | * @param file↵ | | 14 | * @param path↵
|
15 | */↵ | | 15 | */↵
|
16 | public void setInputFile(String file) {↵ | | 16 | public void setRandomPath(String path) {↵
|
17 | setProperty(INPUT_FILE, file);↵ | | 17 | setProperty(RANDOM_PATH, path);↵
|
18 | }↵ | | 18 | }↵
|
|
19 | /**↵ | | 19 | /**↵
|
20 | * return the path of the input file↵ | | 20 | * return the random path for messages↵
|
21 | * ↵ | | 21 | * ↵
|
22 | */↵ | | 22 | */↵
|
23 | public String getInputFile() {↵ | | 23 | public String getRandomPath() {↵
|
24 | return getPropertyAsString(INPUT_FILE);↵ | | 24 | return getPropertyAsString(RANDOM_PATH);↵
|
25 | } | | 25 | }
|