DistributedAlgorithmSimulatorCreateNetwork Method |
Distributed Algorithm Simulator
Creates a ring network which can pass messages in either clockwise or counter-clockwise directions
Nodes are linked to their CW and CCW neighbors using a private id called linkID (which isn't a part of the algorithm)
Namespace: DistributedAlgorithmSimulatorAssembly: DistributedAlgorithmSimulator (in DistributedAlgorithmSimulator.exe) Version: 1.0.0.0 (1.0.0.0)
Syntaxprivate bool CreateNetwork(
string algorithm,
ref string errMsg
)
Parameters
- algorithm
- Type: SystemString
Algorithm type - errMsg
- Type: SystemString
Error message. "SUCCESS" if no error.
Return Value
Type:
Booleantrue, if network was successfully created,
false otherwise.
See Also