|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmri.jmrit.operations.locations.Schedule
public class Schedule
Represents a car delivery schedule for a location
| Field Summary | |
|---|---|
protected String |
_comment
|
protected String |
_id
|
protected int |
_IdNumber
|
protected String |
_name
|
protected Hashtable<String,ScheduleItem> |
_scheduleHashTable
|
protected int |
_sequenceNum
|
static String |
DISPOSE
|
static String |
LISTCHANGE_CHANGED_PROPERTY
|
| Constructor Summary | |
|---|---|
Schedule(Element e)
Construct this Entry from XML. |
|
Schedule(String id,
String name)
|
|
| Method Summary | |
|---|---|
ScheduleItem |
addItem(String type)
Adds a car type to the end of this schedule |
ScheduleItem |
addItem(String item,
int sequence)
Add a schedule item at a specific place (sequence) in the schedule Allowable sequence numbers are 0 to max size of schedule; |
void |
addPropertyChangeListener(PropertyChangeListener l)
|
void |
deleteItem(ScheduleItem si)
Delete a ScheduleItem |
void |
dispose()
|
protected void |
firePropertyChange(String p,
Object old,
Object n)
|
String |
getComment()
|
String |
getId()
|
ScheduleItem |
getItemById(String id)
Get a ScheduleItem by id |
ScheduleItem |
getItemByType(String type)
Get item by car type (gets last schedule item with this type) |
List<String> |
getItemsBySequenceList()
Get a list of ScheduleItem ids sorted by schedule order |
String |
getName()
|
int |
getSize()
|
void |
moveItemDown(ScheduleItem si)
Moves a ScheduleItem later in the schedule by incrementing the sequenceId for the ScheduleItem |
void |
moveItemUp(ScheduleItem si)
Moves a ScheduleItem earlier in the schedule by decrementing the sequenceId for the ScheduleItem |
void |
propertyChange(PropertyChangeEvent e)
|
void |
register(ScheduleItem si)
Remember a NamedBean Object created outside the manager. |
void |
removePropertyChangeListener(PropertyChangeListener l)
|
void |
setComment(String comment)
|
void |
setName(String name)
|
Element |
store()
Create an XML element to represent this Entry. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected String _id
protected String _name
protected String _comment
protected Hashtable<String,ScheduleItem> _scheduleHashTable
protected int _IdNumber
protected int _sequenceNum
public static final String LISTCHANGE_CHANGED_PROPERTY
public static final String DISPOSE
| Constructor Detail |
|---|
public Schedule(String id,
String name)
public Schedule(Element e)
e - Consist XML element| Method Detail |
|---|
public String getId()
public void setName(String name)
public String toString()
toString in class Objectpublic String getName()
public int getSize()
public void setComment(String comment)
public String getComment()
public void dispose()
public ScheduleItem addItem(String type)
type -
public ScheduleItem addItem(String item,
int sequence)
item - sequence -
public void register(ScheduleItem si)
public void deleteItem(ScheduleItem si)
si - public ScheduleItem getItemByType(String type)
type -
public ScheduleItem getItemById(String id)
id -
public List<String> getItemsBySequenceList()
public void moveItemUp(ScheduleItem si)
si - public void moveItemDown(ScheduleItem si)
si - public Element store()
public void propertyChange(PropertyChangeEvent e)
propertyChange in interface PropertyChangeListenerpublic void addPropertyChangeListener(PropertyChangeListener l)
public void removePropertyChangeListener(PropertyChangeListener l)
protected void firePropertyChange(String p,
Object old,
Object n)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||