26.08.2013 Views

3.1 MB - Evernote

3.1 MB - Evernote

3.1 MB - Evernote

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Appendix E: Documentation of selected classes – LogicalProcess<br />

!"#$ initialize%Partition &'()#)#"*+<br />

"(,-"./01)20.-&("'1)#!0-1"(0-,("3&-4("3& 5",#1'56("10774("3&+<br />

SimulationController 7#835')#"*9"*)("550(+<br />

Configuration 1"*:#,3(')#"*;<br />

Initializes the Logical Process.<br />

&(")01)0$ !"#$ needToCancelBackTransactions%5"*, 1"3*);<br />

Cancel back a certain number of Transactions.<br />

!"#$ receiveGvt%5"*, ,!)+ .""50'* 5&116("1077#*,('&&0(<br />

Called by SimulationController to send the calculated<br />

GVT (global virtual time).<br />

receiveTransaction%Transaction ?'1)+ .""50'* 3*$";<br />

Public method that is used by other Logical Processes<br />

to send a Transaction or anti-Transaction to this Logical<br />

Process.<br />

LocalGvtParameter requestGvtParameter%;<br />

Returns the parameters of this Logical Process required<br />

for the GVT calculation.<br />

&(")01)0$ !"#$ rollbackState%5"*, )#80;<br />

Rolls the state of the simulation engine back to the state<br />

for the given time or the next later state.<br />

!"#$ runActivity%"(,-"./01)20.-&("'1)#!0-="$@ ."$@;<br />

&(")01)0$ !"#$ saveCurrentState%;<br />

Implements the main activity loop of the Active Object<br />

Saves the current state of the simulation engine into the<br />

local state list (unless an unconfirmed end of simulation has<br />

124

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!