Source code: com/arranger/jarl/shell/commands/StatusCommand.java
1 package com.arranger.jarl.shell.commands;
2
3 import com.arranger.jarl.shell.models.BaseModel;
4
5 import java.util.Map;
6 import java.util.Iterator;
7
8 /**
9 * StatusCommand created on Apr 17, 2003
10 */
11 public class StatusCommand extends BaseCommand {
12
13 public String getHelpText() {
14 return "provides status of the current models";
15 }
16
17 public String getCommand() {
18 return "status";
19 }
20
21 public void invoke(String[] args) throws Exception {
22 Map models = m_jarlShell.getModels();
23 for (Iterator it = models.keySet().iterator(); it.hasNext();) {
24 String name = (String)it.next();
25 BaseModel baseModel = (BaseModel)models.get(name);
26
27 m_jarlShell.out("Status for model: " + name);
28 m_jarlShell.out(baseModel.getStatusText());
29 }
30 }
31 }