|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.cau.cs.kieler.sim.kiem.config.data.ScheduleData
public class ScheduleData
Holds all data needed to manage a specific schedule.
Field Summary | |
---|---|
static int |
DEFAULT_PRIORITY
default priority on schedule creation. |
static int |
MIN_PRIORITY
The minimum priority of supported editors. |
Constructor Summary | |
---|---|
ScheduleData(IPath newLocation)
Create a new Scheduling data. |
Method Summary | |
---|---|
static ScheduleData |
fromString(String input)
Parses a ScheduleData object from an input String that was constructed with the toString() method. |
static int |
getDefaultPriority()
Returns the default priority. |
String |
getExtendedName()
Getter for a user friendly name. |
String |
getId()
Getter for the id. |
IPath |
getLocation()
Getter for the location. |
String |
getName()
Getter for a user friendly name. |
String |
getPluginId()
Getter for the pluginId. |
String |
getShortName()
Creates a short version of the name. |
int |
getSupportedPriority(EditorIdWrapper editorId)
Get the supported priority of the given editor. |
boolean |
isImported()
Checks whether this ScheduleData is imported (fixed added schedule). |
boolean |
isLocked()
Determines whether this schedule is an imported one and thus should not be removed or changed. |
void |
removeEditor(EditorIdWrapper editorId)
Remove an editor from the list of supported priorities. |
void |
setEditorSupport(EditorIdWrapper editorId,
int newPriority)
Set the supported priority of the given editor. |
void |
setLocation(IPath locationParam)
Set the location of the schedule. |
void |
setPluginId(String pluginIdParam)
Setter for the pluginId. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int DEFAULT_PRIORITY
public static final int MIN_PRIORITY
Constructor Detail |
---|
public ScheduleData(IPath newLocation)
newLocation
- the new id and locationMethod Detail |
---|
public String getId()
public IPath getLocation()
public boolean isLocked()
public void setPluginId(String pluginIdParam)
pluginIdParam
- the pluginId to setpublic String getPluginId()
public String getName()
public String getExtendedName()
public boolean isImported()
public String getShortName()
public int getSupportedPriority(EditorIdWrapper editorId)
The priority indicates the usefulness of a schedule for a given editor type.
editorId
- the id of the editor to look for
public void setEditorSupport(EditorIdWrapper editorId, int newPriority)
The priority indicates the usefulness of a schedule for a given editor type.
editorId
- the editor id to change.newPriority
- the new priority of the editor.public void setLocation(IPath locationParam)
locationParam
- the new locationpublic static ScheduleData fromString(String input) throws KiemParserException
input
- the input string.
KiemParserException
- if the input is emptypublic String toString()
toString
in class Object
public void removeEditor(EditorIdWrapper editorId)
editorId
- The id of the editor to remove.public static int getDefaultPriority()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |