public class ProcessCalendar
extends org.eclipse.ui.part.ViewPart
implements org.eclipse.jface.viewers.IDoubleClickListener
Modifier and Type | Field and Description |
---|---|
ArrayList<DayProfile> |
helpList |
ArrayList<ArrayList<DayProfile>> |
scenarioDayProfilesLists |
org.palladiosimulator.pcm.usagemodel.UsageScenario |
selectedScenario |
Constructor and Description |
---|
ProcessCalendar()
the constructor which sets the parameters
and specificates the 365 days of the year.
|
Modifier and Type | Method and Description |
---|---|
String |
calculateUnit(double t)
calculates the string of the form "hh:mm:ss" to
a given time of double.
|
void |
createPartControl(org.eclipse.swt.widgets.Composite parent)
implements the ui elements in this class, the group to load a model,
the comboBox to choose a Scenario, the calendar and the buttons to edit
day profiles and to switch to the ActorCalendarView.
|
void |
doubleClick(org.eclipse.jface.viewers.DoubleClickEvent event) |
ArrayList<DayProfile> |
getDayprofiles() |
ArrayList<Day> |
getDays() |
int |
getIndex(String date)
this method gets the index of the day in the list of days
of a given String date
|
String |
getOldTimeUnit() |
ArrayList<ProcessTriggerPeriodSpecification> |
getPeriodList() |
String |
getSelectedTimeUnit() |
void |
open(String textU)
this method is performed, when the Button "Process Calendar" is clicked
on the view ActorCalendar.
|
void |
setDayprofiles(ArrayList<DayProfile> dayprofiles) |
void |
setFocus() |
void |
setSelectedTimeUnit(String time) |
getViewSite, init, init, saveState, setInitializationData
addPartPropertyListener, addPropertyListener, dispose, getAdapter, getContentDescription, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, getTitleToolTip, removePartPropertyListener, removePropertyListener, setPartProperty, showBusy
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public ArrayList<ArrayList<DayProfile>> scenarioDayProfilesLists
public ArrayList<DayProfile> helpList
public org.palladiosimulator.pcm.usagemodel.UsageScenario selectedScenario
public ProcessCalendar()
public ArrayList<DayProfile> getDayprofiles()
public void setDayprofiles(ArrayList<DayProfile> dayprofiles)
public void createPartControl(org.eclipse.swt.widgets.Composite parent)
createPartControl
in interface org.eclipse.ui.IWorkbenchPart
createPartControl
in class org.eclipse.ui.part.WorkbenchPart
parent
- the parent composite of this view
(non-Javadoc)WorkbenchPart.createPartControl(org.eclipse.swt.widgets.Composite)
public int getIndex(String date)
date
- the date of which the index is to getpublic void setFocus()
setFocus
in interface org.eclipse.ui.IWorkbenchPart
setFocus
in class org.eclipse.ui.part.WorkbenchPart
public void doubleClick(org.eclipse.jface.viewers.DoubleClickEvent event)
doubleClick
in interface org.eclipse.jface.viewers.IDoubleClickListener
public ArrayList<ProcessTriggerPeriodSpecification> getPeriodList()
public String getSelectedTimeUnit()
public void setSelectedTimeUnit(String time)
public String getOldTimeUnit()
public String calculateUnit(double t)
It calculates the string with respect to the time unit.
t
- given time in a time unitpublic void open(String textU)
textU
- the location of the UsageModel in the
same Project as the OrganizationEnvironmentModel in the
ActorCalendar