public class Scheduling
extends java.lang.Object
implements org.eclipse.ui.IWorkbenchWindowActionDelegate
IWorkbenchWindowActionDelegate
Modifier and Type | Field and Description |
---|---|
boolean |
ioEventOverlap |
boolean |
shiftedDispatch |
boolean |
shiftedStart |
Constructor and Description |
---|
Scheduling()
The constructor.
|
Scheduling(L_Process process) |
Scheduling(SchedulingPolicy policy) |
Modifier and Type | Method and Description |
---|---|
int |
CalculateHyperPeriod() |
int |
CalculateMinumumInterval() |
boolean |
CalPeriodicThreadInstance(I_ThreadInstance iCTI,
L_MSTA lMSTA) |
boolean |
calThreadInstanceList(AL_ThreadInstance alThreadInstance) |
boolean |
checkExistence(java.lang.Object object,
java.lang.String className,
java.lang.String funcName) |
void |
CompleteIProcessWithIOTimeSpec() |
java.util.ArrayList<AL_ThreadInstance> |
CreatePOrderedThreadInstanceList(I_Process iProcess,
SchedulingPolicy schedulingPolicy) |
void |
dispose()
We can use this method to dispose of any system resources we previously
allocated.
|
void |
ExportASME2SSME(L_AffineClocks lAffineClocks) |
void |
ExportSchedule2Text(L_MSTA msta) |
void |
ExportSchedule2VCD(L_MSTA msta) |
int |
getGreatestCommonDivisor(java.util.ArrayList<java.lang.Integer> iIntegerList) |
int |
getGreatestCommonDivisor(int i1,
int i2) |
int |
getInstantNumberOnMSTA(int absTime) |
int |
getLeastCommonMultiple(java.util.ArrayList<java.lang.Integer> iIntegerList) |
int |
getLeastCommonMultiple(int i1,
int i2) |
java.util.ArrayList<java.lang.Integer> |
getPeriodListFromLProcess() |
void |
GetProcess(L_Process lprocess1) |
void |
init(org.eclipse.ui.IWorkbenchWindow window)
We will cache window object in order to be able to provide parent shell
for the message dialog.
|
char[] |
initChar(char[] tChar) |
void |
Initialize() |
void |
InitializeIProcess(boolean shiftedDispatch,
boolean shiftedStart,
boolean ioEventOverlap) |
void |
InitializeLMSTA() |
boolean |
isSchedulable() |
int |
locateTIInSQ(java.util.ArrayList<java.lang.Integer> indexList,
I_ThreadInstance iTICPO) |
void |
MainSchedulingAlgorithm(SchedulingPolicy schedulingPolicy) |
L_AffineClocks |
MapToSignalAffineClocks(L_MSTA msta,
I_Process iProcess) |
boolean |
performScheduling() |
I_Process |
performScheduling(L_Process lprocess1) |
void |
run(org.eclipse.jface.action.IAction action)
The action has been activated.
|
void |
selectionChanged(org.eclipse.jface.action.IAction action,
org.eclipse.jface.viewers.ISelection selection)
Selection in the workbench has been changed.
|
void |
SetSchedulingPolicy() |
void |
showDebugInfo(boolean bShow,
java.lang.String str) |
void |
ShowIndexedSchedulingResultInConsole() |
void |
showProgressInfo(boolean bShow,
java.lang.String str) |
void |
ShowSchedulingResultInConsole() |
java.lang.String |
trimShowStr(int i) |
java.lang.String |
trimString(java.lang.String str,
int length) |
public boolean shiftedDispatch
public boolean shiftedStart
public boolean ioEventOverlap
public Scheduling()
public Scheduling(L_Process process)
public Scheduling(SchedulingPolicy policy)
public void run(org.eclipse.jface.action.IAction action)
run
in interface org.eclipse.ui.IActionDelegate
IActionDelegate.run(org.eclipse.jface.action.IAction)
public void selectionChanged(org.eclipse.jface.action.IAction action, org.eclipse.jface.viewers.ISelection selection)
selectionChanged
in interface org.eclipse.ui.IActionDelegate
IActionDelegate.selectionChanged(org.eclipse.jface.action.IAction, org.eclipse.jface.viewers.ISelection)
public void dispose()
dispose
in interface org.eclipse.ui.IWorkbenchWindowActionDelegate
IWorkbenchWindowActionDelegate.dispose()
public void init(org.eclipse.ui.IWorkbenchWindow window)
init
in interface org.eclipse.ui.IWorkbenchWindowActionDelegate
IWorkbenchWindowActionDelegate.init(org.eclipse.ui.IWorkbenchWindow)
public boolean performScheduling()
public void Initialize()
public void SetSchedulingPolicy()
public void MainSchedulingAlgorithm(SchedulingPolicy schedulingPolicy)
public boolean CalPeriodicThreadInstance(I_ThreadInstance iCTI, L_MSTA lMSTA)
public boolean calThreadInstanceList(AL_ThreadInstance alThreadInstance)
public java.util.ArrayList<AL_ThreadInstance> CreatePOrderedThreadInstanceList(I_Process iProcess, SchedulingPolicy schedulingPolicy)
public int locateTIInSQ(java.util.ArrayList<java.lang.Integer> indexList, I_ThreadInstance iTICPO)
public boolean isSchedulable()
public int CalculateHyperPeriod()
public java.util.ArrayList<java.lang.Integer> getPeriodListFromLProcess()
public int getLeastCommonMultiple(java.util.ArrayList<java.lang.Integer> iIntegerList)
public int getLeastCommonMultiple(int i1, int i2)
public int getGreatestCommonDivisor(int i1, int i2)
public int getGreatestCommonDivisor(java.util.ArrayList<java.lang.Integer> iIntegerList)
public int CalculateMinumumInterval()
public void ExportSchedule2Text(L_MSTA msta)
public void ExportSchedule2VCD(L_MSTA msta)
public L_AffineClocks MapToSignalAffineClocks(L_MSTA msta, I_Process iProcess)
public void ExportASME2SSME(L_AffineClocks lAffineClocks)
public void InitializeIProcess(boolean shiftedDispatch, boolean shiftedStart, boolean ioEventOverlap)
public void InitializeLMSTA()
public int getInstantNumberOnMSTA(int absTime)
public boolean checkExistence(java.lang.Object object, java.lang.String className, java.lang.String funcName)
public void showDebugInfo(boolean bShow, java.lang.String str)
public void showProgressInfo(boolean bShow, java.lang.String str)
public void ShowSchedulingResultInConsole()
public void ShowIndexedSchedulingResultInConsole()
public java.lang.String trimString(java.lang.String str, int length)
public char[] initChar(char[] tChar)
public java.lang.String trimShowStr(int i)
public void CompleteIProcessWithIOTimeSpec()
public void GetProcess(L_Process lprocess1)