SHARE
TWEET

Untitled

a guest Dec 17th, 2018 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Server1 STORAGE 100
  2. Server2 STORAGE 100
  3. Server3 STORAGE 100
  4.  
  5. Processed1 VARIABLE 0
  6. Processed2 VARIABLE 0
  7. Processed3 VARIABLE 0
  8.  
  9. GENERATE 100,50
  10.  
  11. Connections MATRIX ,1,3
  12. INITIAL MX$Connections(1,1),0
  13. INITIAL MX$Connections(1,2),0
  14. INITIAL MX$Connections(1,3),0
  15.  
  16. Weight MATRIX ,1,3
  17. ;Weight = {4 1 1}
  18. INITIAL MX$Weight(1,1),1
  19. INITIAL MX$Weight(1,2),1
  20. INITIAL MX$Weight(1,3),3
  21.  
  22. ;Connections = {S$Server1 S$Server2 S$Server3}
  23. MSAVEVALUE Connections 1 1 S$Server1
  24. MSAVEVALUE Connections 1 2 S$Server2
  25. MSAVEVALUE Connections 1 3 S$Server3
  26.  
  27. Idx VARIABLE 1
  28. TEST G (MX$Connections(1,1) # MX$Weight(1,2)),(MX$Connections(1,2) # MX$Weight(1,1)),T2
  29. ASSIGN Idx 2
  30. T2 TEST G (MX$Connections(1,1) # MX$Weight(1,3)),(MX$Connections(1,3) # MX$Weight(1,1)),T3
  31. ASSIGN Idx 3
  32. T3 TEST G (MX$Connections(1,2) # MX$Weight(1,3)),(MX$Connections(1,3) # MX$Weight(1,2)),LBL_NEXT
  33. ASSIGN Idx 3
  34.  
  35. LBL_NEXT TEST NE Idx,2,Into2
  36. TEST NE Idx,3,Into3
  37.  
  38. ENTER Server1
  39. ADVANCE 2000,400
  40. LEAVE Server1
  41. SAVEVALUE Processed1+,1
  42. TERMINATE 1
  43.  
  44. Into2   ENTER Server2
  45.     ADVANCE 2000,400
  46.     LEAVE Server2
  47.     SAVEVALUE Processed2+,1
  48.     TERMINATE 1
  49.  
  50. Into3   ENTER Server3
  51.     ADVANCE 2000,400
  52.     LEAVE Server3
  53.     SAVEVALUE Processed3+,1
  54.     TERMINATE 1
  55.  
  56. START 500
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top