C# Class Spinach.SwarmMemory

Exibir arquivo Open project: shranjan/pinac Class Usage Examples

Public Methods

Method Description
AddTaskIndex ( int index ) : void
BroadcastError ( string error_ ) : void
BroadcastError ( string num, string error ) : void
BroadcastPlot ( string plot ) : void
BroadcastResult ( string result ) : void
ClearTask ( ) : void
GetError ( string error ) : void
GetError ( string num, string error ) : void
GetTaskIndexCount ( ) : int
InitializeThePeer ( string changes ) : void
Lock ( ) : void
PeerGone ( string IPPort ) : void
ReRunClicked ( string myIP, string myPort ) : bool
RunClicked ( string myIP, string myPort ) : bool
SwarmMemory ( SwarmConnection c ) : System
acceptParallelfor ( string data, string body, string index, string range ) : void
addPermissionRequest ( string myIP, string myPort, string inputcode, string IPPort, string read, string write ) : void
adder ( string IPPort, string read, string write ) : void
changePermissionRequest ( string myIP, string myPort, string IPPort, string read, string write ) : void
changeTheOwner ( string IPPort, string myIP, string myPort ) : void
clearMasterBackup ( bool x ) : void
createTheObjects ( string _Pid, string myIP, string myPort ) : void
distributeParallelCode ( int start, int end, string data, string body, string range ) : void
getBackUp ( ) : string
getFinalResult ( string result ) : void
getMaster ( ) : string
getOnePermission ( string IPPort ) : string[]
getOwner ( ) : string
getPermissions ( ) : Hashtable
getPid ( ) : string
getPlot ( string plot ) : void
getRunFlag ( ) : bool
getSourceChanges ( string chng ) : void
getStartFlag ( ) : String
incomingResult ( string result, string index ) : void
outgoingResult ( string index, string result ) : void
programClosed ( ) : void
removePermissionRec ( string IPPort ) : void
setBackUp ( string _BackUp ) : void
setMaster ( string _Master ) : void
setOwner ( string _owner ) : void
setPermissions ( Hashtable newPermissons ) : void
setRunFlag ( bool x ) : void
setStartFlag ( String x ) : void
sourceCodeChanged ( string lno, string inputs, string mod, string uname ) : void
splitIndex ( int start, int end, int number, List &lhs, List &rhs ) : int
writePrivilege ( string uname ) : bool

Private Methods

Method Description
BuildList ( ) : void
InitialXMLString ( ) : string
Peers ( ) : List
changePermissionMessage ( string IPPort, string read, string write ) : string
computationDone ( ) : void
createParallelDistributionMessage ( string index ) : string
createParallelDistributionMessage ( string start, string end ) : string
createParallelResultMessage ( Hashtable subresult ) : string
createParallelResultMessage ( string index, string result ) : string
getMasterBackUpXML ( ) : string
selectBackUp ( ) : string

Method Details

AddTaskIndex() public method

public AddTaskIndex ( int index ) : void
index int
return void

BroadcastError() public method

public BroadcastError ( string error_ ) : void
error_ string
return void

BroadcastError() public method

public BroadcastError ( string num, string error ) : void
num string
error string
return void

BroadcastPlot() public method

public BroadcastPlot ( string plot ) : void
plot string
return void

BroadcastResult() public method

public BroadcastResult ( string result ) : void
result string
return void

ClearTask() public method

public ClearTask ( ) : void
return void

GetError() public method

public GetError ( string error ) : void
error string
return void

GetError() public method

public GetError ( string num, string error ) : void
num string
error string
return void

GetTaskIndexCount() public method

public GetTaskIndexCount ( ) : int
return int

InitializeThePeer() public method

public InitializeThePeer ( string changes ) : void
changes string
return void

Lock() public method

public Lock ( ) : void
return void

PeerGone() public method

public PeerGone ( string IPPort ) : void
IPPort string
return void

ReRunClicked() public method

public ReRunClicked ( string myIP, string myPort ) : bool
myIP string
myPort string
return bool

RunClicked() public method

public RunClicked ( string myIP, string myPort ) : bool
myIP string
myPort string
return bool

SwarmMemory() public method

public SwarmMemory ( SwarmConnection c ) : System
c SwarmConnection
return System

acceptParallelfor() public method

public acceptParallelfor ( string data, string body, string index, string range ) : void
data string
body string
index string
range string
return void

addPermissionRequest() public method

public addPermissionRequest ( string myIP, string myPort, string inputcode, string IPPort, string read, string write ) : void
myIP string
myPort string
inputcode string
IPPort string
read string
write string
return void

adder() public method

public adder ( string IPPort, string read, string write ) : void
IPPort string
read string
write string
return void

changePermissionRequest() public method

public changePermissionRequest ( string myIP, string myPort, string IPPort, string read, string write ) : void
myIP string
myPort string
IPPort string
read string
write string
return void

changeTheOwner() public method

public changeTheOwner ( string IPPort, string myIP, string myPort ) : void
IPPort string
myIP string
myPort string
return void

clearMasterBackup() public method

public clearMasterBackup ( bool x ) : void
x bool
return void

createTheObjects() public method

public createTheObjects ( string _Pid, string myIP, string myPort ) : void
_Pid string
myIP string
myPort string
return void

distributeParallelCode() public method

public distributeParallelCode ( int start, int end, string data, string body, string range ) : void
start int
end int
data string
body string
range string
return void

getBackUp() public method

public getBackUp ( ) : string
return string

getFinalResult() public method

public getFinalResult ( string result ) : void
result string
return void

getMaster() public method

public getMaster ( ) : string
return string

getOnePermission() public method

public getOnePermission ( string IPPort ) : string[]
IPPort string
return string[]

getOwner() public method

public getOwner ( ) : string
return string

getPermissions() public method

public getPermissions ( ) : Hashtable
return System.Collections.Hashtable

getPid() public method

public getPid ( ) : string
return string

getPlot() public method

public getPlot ( string plot ) : void
plot string
return void

getRunFlag() public method

public getRunFlag ( ) : bool
return bool

getSourceChanges() public method

public getSourceChanges ( string chng ) : void
chng string
return void

getStartFlag() public method

public getStartFlag ( ) : String
return String

incomingResult() public method

public incomingResult ( string result, string index ) : void
result string
index string
return void

outgoingResult() public method

public outgoingResult ( string index, string result ) : void
index string
result string
return void

programClosed() public method

public programClosed ( ) : void
return void

removePermissionRec() public method

public removePermissionRec ( string IPPort ) : void
IPPort string
return void

setBackUp() public method

public setBackUp ( string _BackUp ) : void
_BackUp string
return void

setMaster() public method

public setMaster ( string _Master ) : void
_Master string
return void

setOwner() public method

public setOwner ( string _owner ) : void
_owner string
return void

setPermissions() public method

public setPermissions ( Hashtable newPermissons ) : void
newPermissons System.Collections.Hashtable
return void

setRunFlag() public method

public setRunFlag ( bool x ) : void
x bool
return void

setStartFlag() public method

public setStartFlag ( String x ) : void
x String
return void

sourceCodeChanged() public method

public sourceCodeChanged ( string lno, string inputs, string mod, string uname ) : void
lno string
inputs string
mod string
uname string
return void

splitIndex() public method

public splitIndex ( int start, int end, int number, List &lhs, List &rhs ) : int
start int
end int
number int
lhs List
rhs List
return int

writePrivilege() public method

public writePrivilege ( string uname ) : bool
uname string
return bool