Advertisement
Guest User

Untitled

a guest
Oct 21st, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.09 KB | None | 0 0
  1. Person.Farmer "Farmer509" is successfully created!
  2. You have successfully employ someone!
  3. We have constructed a new building!
  4.  
  5.  
  6. ------------Command test in Person------------
  7. We will execute the orders one by one
  8.  
  9.  
  10. ------------Interpreter test in Person------------
  11. Now we add animal to animal list through interpreter
  12. Employee Successfully Raised A Pig!
  13. Employee Successfully Raised A Fish!
  14. Employee Successfully Raised A Sheep!
  15. Employee Successfully Raised A Chicken!
  16. Employee Successfully Raised A Pig!
  17. Farmer Successfully Raised A Chicken!
  18. The Chicken, Fish, Sheep, Pig Number is:
  19. ------------Iterator test in Person------------
  20. 2
  21. 1
  22. 1
  23. 2
  24. add pork
  25. add pork
  26. add fish
  27. add mutton
  28. add chicken
  29. add chicken
  30. Bark
  31. The Chicken, Fish, Sheep, Pig Number is:
  32. ------------Iterator test in Person------------
  33. 2
  34. 1
  35. 1
  36. 2
  37. You just bought 3 corn seeds
  38. You just bought 3 pasture seeds
  39. You just bought 4 rice seeds
  40. Employee Number Vistor Found that there are 0employees!
  41. You have successfully employ someone!
  42. The farmer find himself an employee to help him
  43. Employee Successfully Raised A Chicken!
  44.  
  45.  
  46. ------------Interpreter test in Person------------
  47. Now we add animal to animal list through interpreter
  48. Employee Successfully Raised A Pig!
  49. Employee Successfully Raised A Fish!
  50. Employee Successfully Raised A Sheep!
  51. You have successfully employ someone!
  52. An employee become the proxy of the farmer
  53. add eggs
  54. add eggs
  55. add eggs
  56. Eggs Number: 3
  57. ChikenMeat: 2
  58. Fishmeat Number: 1
  59. Mutton Number: 1
  60. Pork Number: 2
  61. Let's see what we have in the storage now.
  62. Pasture seeds: 3 Pasture product : 0
  63. Corn seeds: 3 Corn product : 0
  64. Rice seeds: 4 Rice product : 0
  65. Pasture seeds: 3 Pasture product : 0
  66. Corn seeds: 3 Corn product : 0
  67. Rice seeds: 4 Rice product : 0
  68. Back to the room
  69. Pet dog is sleeping!
  70. Bark
  71. Back to the room
  72. Animal Chicken sleep
  73. Back to the room
  74. Animal Pig sleep
  75. Pet dog won the fight!
  76. Pet dog won the fight!
  77. Chicken is flying!
  78. Pig is running!
  79. run
  80. Chicken is running!
  81. A new Chicken is born!
  82. A new Pig is born!
  83. Chicken do shower in sand.
  84. Pig do shower in water.
  85. Chicken meat: 2
  86. Eggs: 3
  87. Pork: 2
  88. add eggs
  89. Pigs have no external product.
  90. add chicken
  91. add pork
  92. Chicken meat: 3
  93. Eggs: 4
  94. Pork: 3
  95. state is dead
  96. state is dead
  97. state is alive
  98. state is alive
  99. First, there's a pet dog in our farm.
  100.  
  101. ------------Adapter test-------------
  102. The dog is going to sleep.
  103.  
  104. Back to the room
  105. Pet dog is sleeping!
  106. ------------Singleton test------------
  107. The dog is going to bark.
  108.  
  109. Bark
  110. -----------------------------------
  111. And now a new chicken and a new pig are added into our farm.
  112. ------------Template test--------------
  113. The animals are going to sleep.
  114.  
  115. Back to the room
  116. Animal Chicken sleep
  117. Back to the room
  118. Animal Pig sleep
  119. -----------------------------------
  120. The animals are going to fight with dog.
  121.  
  122. Pet dog won the fight!
  123. Pet dog won the fight!
  124. -----------Bridge test-------------
  125. The animals are going to exercise.
  126.  
  127. Chicken is flying!
  128. Pig is running!
  129. -----------Strategy test--------------
  130. Chicken can also run after 'trained'.
  131.  
  132. run
  133. Chicken is running!
  134. -------------Prototype test------------
  135. The animals are going to breed.
  136.  
  137. A new Chicken is born!
  138. A new Pig is born!
  139. -------------Chain of Responsibility test--------------
  140. The animals are going to do shower.
  141.  
  142. Chicken do shower in sand.
  143. Pig do shower in water.
  144. ------------Abstract Factory test--------------
  145. Let's see how many product do we have before animals produce products.
  146.  
  147. Chicken meat: 3
  148. Eggs: 4
  149. Pork: 3
  150. -----------------------------------
  151. The animals are going to produce external product.
  152.  
  153. add eggs
  154. Pigs have no external product.
  155. -----------------------------------
  156. The animals are going to produce internal product.
  157.  
  158. add chicken
  159. add pork
  160. -----------------------------------
  161. Let's see how many product do we have after animals produce products.
  162.  
  163. Chicken meat: 4
  164. Eggs: 5
  165. Pork: 4
  166. ------------Memento test------------
  167. Now let's check the states of the animals.
  168.  
  169. state is dead
  170. state is dead
  171. I missed them, so I told the god to give them back to me.
  172. The dead animals regain life.
  173.  
  174. state is alive
  175. state is alive
  176. Let's see what we have in the storage now.
  177. Pasture seeds: 3 Pasture product : 0
  178. Corn seeds: 3 Corn product : 0
  179. Rice seeds: 4 Rice product : 0
  180.  
  181.  
  182. ------------Singleton test in Person------------
  183. The program should begin with creating a Farmer!
  184.  
  185.  
  186. ------------FlyWeight test in Person------------
  187. Now the Farmer can employ some hardworking employees.
  188. You have successfully employ someone!
  189. You have successfully employ someone!
  190.  
  191.  
  192. ------------Builder test in Item------------
  193. As there are some people, they together can build a farmland!
  194. We have constructed a new building!
  195.  
  196.  
  197. ------------Proxy test in Person------------
  198. The farmer is really lazy, so all the work can only be done by employee
  199.  
  200.  
  201. ------------Command test in Person------------
  202. We will execute the orders one by one
  203.  
  204.  
  205. ------------Interpreter test in Person------------
  206. Now we add animal to animal list through interpreter
  207. Employee Successfully Raised A Pig!
  208. Employee Successfully Raised A Fish!
  209. Employee Successfully Raised A Sheep!
  210. Employee Successfully Raised A Chicken!
  211. Employee Successfully Raised A Pig!
  212.  
  213.  
  214. ------------Decorator test in Person------------
  215. When all the employee is not available, the farmer can do his work via a decorator.
  216. Farmer Successfully Raised A Chicken!
  217. The Chicken, Fish, Sheep, Pig Number is:
  218. ------------Iterator test in Person------------
  219. 7
  220. 3
  221. 3
  222. 7
  223.  
  224.  
  225. ------------Observer test in Person------------
  226. The farmer is getting hungry, so the employee kill the animals for meet.
  227. add pork
  228. add pork
  229. add pork
  230. add pork
  231. add pork
  232. add pork
  233. add pork
  234. add fish
  235. add fish
  236. add fish
  237. add mutton
  238. add mutton
  239. add mutton
  240. add chicken
  241. add chicken
  242. add chicken
  243. add chicken
  244. add chicken
  245. add chicken
  246. add chicken
  247. Bark
  248. The Chicken, Fish, Sheep, Pig Number is:
  249. ------------Iterator test in Person------------
  250. 7
  251. 3
  252. 3
  253. 7
  254.  
  255. Now the farmer is tired of the meet, he want some plants instead.
  256. Before we plant anything, we should shop some seeds
  257. You just bought 3 corn seeds
  258. You just bought 3 pasture seeds
  259. You just bought 4 rice seeds
  260.  
  261.  
  262. ------------------Abstract Factory in Plant------------------
  263. Let's get different kinds of new plants!
  264. you've got a new corn!
  265. you've got a new corn!
  266. you've got a new corn!
  267. you've got a new corn!
  268. you've got a new corn!
  269. you've got a new rice!
  270. you've got a new rice!
  271. you've got a new rice!
  272. you've got a new rice!
  273. you've got a new rice!
  274. you've got a new rice!
  275. you've got a new rice!
  276. you've got a new rice!
  277. You don't have any rice seed. go buy some
  278. you've got a new pasture!
  279. you've got a new pasture!
  280. Now we got different plants!
  281. Let's see what we have in the storage now.
  282. Pasture seeds: 4 Pasture product : 0
  283. Corn seeds: 1 Corn product : 0
  284. Rice seeds: 0 Rice product : 0
  285.  
  286.  
  287. ------------------Composite in Plant------------------
  288. Every corn has one reproductive organ, aka flower, which contains one pistil and one stamen.
  289. this is the flower.
  290. this is the pistil.
  291. this is the stamen.
  292.  
  293.  
  294. ------------------State & Template Method in Plant------------------
  295. Let's fertilize those plants!
  296. the growing Corn is now mature.
  297. the growing Corn is now mature.
  298. the growing Corn is now mature.
  299. the growing Corn is now mature.
  300. the growing Corn is now mature.
  301. the growing Pasture is now mature.
  302. the growing Pasture is now mature.
  303. Those pastures need to be fertilized twice.
  304. Let's try to fertilize them again.
  305. This mature Corn needs to be pollinated. Stop fertilizing it.
  306. This mature Corn needs to be pollinated. Stop fertilizing it.
  307. This mature Corn needs to be pollinated. Stop fertilizing it.
  308. This mature Corn needs to be pollinated. Stop fertilizing it.
  309. This mature Corn needs to be pollinated. Stop fertilizing it.
  310. the growing Rice is now mature.
  311. the growing Rice is now mature.
  312. the growing Rice is now mature.
  313. the growing Rice is now mature.
  314. the growing Rice is now mature.
  315. the growing Rice is now mature.
  316. the growing Rice is now mature.
  317. the growing Rice is now mature.
  318. the mature Pasture is now harvestable.
  319. the mature Pasture is now harvestable.
  320. Now they are harvestable. Let's harvest them!
  321. This Corn hasn't been harvestable yet.
  322. This Corn hasn't been harvestable yet.
  323. This Corn hasn't been harvestable yet.
  324. This Corn hasn't been harvestable yet.
  325. This Corn hasn't been harvestable yet.
  326. This Rice hasn't been harvestable yet.
  327. This Rice hasn't been harvestable yet.
  328. This Rice hasn't been harvestable yet.
  329. This Rice hasn't been harvestable yet.
  330. This Rice hasn't been harvestable yet.
  331. This Rice hasn't been harvestable yet.
  332. This Rice hasn't been harvestable yet.
  333. This Rice hasn't been harvestable yet.
  334. the harvestable Pasture has been harvested. now it's dead.
  335. By harvesting this pasture, you got 5 pasture product.
  336. the harvestable Pasture has been harvested. now it's dead.
  337. By harvesting this pasture, you got 5 pasture product.
  338. Let's see what we have in the storage now.
  339. Pasture seeds: 4 Pasture product : 10
  340. Corn seeds: 1 Corn product : 0
  341. Rice seeds: 0 Rice product : 0
  342.  
  343.  
  344. ------------------Mediator & State & Strategy in Plant------------------
  345. Oops, those corns and rices need to be pollinated.
  346. one corn is successfully spontaneous pollinated. the mature Corn is now harvestable.
  347. one corn is successfully spontaneous pollinated. the mature Corn is now harvestable.
  348. one corn is successfully spontaneous pollinated. the mature Corn is now harvestable.
  349. one corn is successfully spontaneous pollinated. the mature Corn is now harvestable.
  350. one corn is successfully spontaneous pollinated. the mature Corn is now harvestable.
  351. one rice is successfully artificial pollinated.the mature Rice is now harvestable.
  352. one rice is successfully artificial pollinated.the mature Rice is now harvestable.
  353. one rice is successfully artificial pollinated.the mature Rice is now harvestable.
  354. one rice is successfully artificial pollinated.the mature Rice is now harvestable.
  355. one rice is successfully artificial pollinated.the mature Rice is now harvestable.
  356. one rice is successfully artificial pollinated.the mature Rice is now harvestable.
  357. one rice is successfully artificial pollinated.the mature Rice is now harvestable.
  358. one rice is successfully artificial pollinated.the mature Rice is now harvestable.
  359.  
  360. We just pollinated those corns. Let's harvest them!
  361. the harvestable Corn has been harvested. now it's dead.
  362. By harvesting this corn, you got 5 corn seeds and 1 corn product.
  363. the harvestable Corn has been harvested. now it's dead.
  364. By harvesting this corn, you got 5 corn seeds and 1 corn product.
  365. the harvestable Corn has been harvested. now it's dead.
  366. By harvesting this corn, you got 5 corn seeds and 1 corn product.
  367. the harvestable Corn has been harvested. now it's dead.
  368. By harvesting this corn, you got 5 corn seeds and 1 corn product.
  369. the harvestable Corn has been harvested. now it's dead.
  370. By harvesting this corn, you got 5 corn seeds and 1 corn product.
  371. the harvestable Rice has been harvested. now it's dead.
  372. By harvesting this rice, you got 5 rice seeds and 1 rice product.
  373. the harvestable Rice has been harvested. now it's dead.
  374. By harvesting this rice, you got 5 rice seeds and 1 rice product.
  375. the harvestable Rice has been harvested. now it's dead.
  376. By harvesting this rice, you got 5 rice seeds and 1 rice product.
  377. the harvestable Rice has been harvested. now it's dead.
  378. By harvesting this rice, you got 5 rice seeds and 1 rice product.
  379. the harvestable Rice has been harvested. now it's dead.
  380. By harvesting this rice, you got 5 rice seeds and 1 rice product.
  381. the harvestable Rice has been harvested. now it's dead.
  382. By harvesting this rice, you got 5 rice seeds and 1 rice product.
  383. the harvestable Rice has been harvested. now it's dead.
  384. By harvesting this rice, you got 5 rice seeds and 1 rice product.
  385. the harvestable Rice has been harvested. now it's dead.
  386. By harvesting this rice, you got 5 rice seeds and 1 rice product.
  387. Let's see what we have in the storage now.
  388. Pasture seeds: 4 Pasture product : 10
  389. Corn seeds: 26 Corn product : 5
  390. Rice seeds: 40 Rice product : 8
  391.  
  392.  
  393. ------------Visitor test in Person------------
  394. The employee know little about math, so they can only get employee number via visitor!
  395. Employee Number Vistor Found that there are 2employees!
  396.  
  397.  
  398. ------------Facade test in Person------------
  399. The Farm can order the employee to raise animals
  400. You have successfully employ someone!
  401. The farmer find himself an employee to help him
  402. Employee Successfully Raised A Chicken!
  403.  
  404.  
  405. ------------Interpreter test in Person------------
  406. Now we add animal to animal list through interpreter
  407. Employee Successfully Raised A Pig!
  408. Employee Successfully Raised A Fish!
  409. Employee Successfully Raised A Sheep!
  410. You have successfully employ someone!
  411. An employee become the proxy of the farmer
  412. add eggs
  413. add eggs
  414. add eggs
  415. add eggs
  416. add eggs
  417. add eggs
  418. add eggs
  419. add eggs
  420. Let's see what we get by growing plants and raising animals
  421. Eggs Number: 13
  422. ChikenMeat: 11
  423. Fishmeat Number: 4
  424. Mutton Number: 4
  425. Pork Number: 11
  426. Let's see what we have in the storage now.
  427. Pasture seeds: 4 Pasture product : 10
  428. Corn seeds: 26 Corn product : 5
  429. Rice seeds: 40 Rice product : 8
  430.  
  431. Process finished with exit code 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement