A More Complex Robot World:
We consider a more complex but still two-dimensional world, in which robots may be free-standing or they may travel around the grid in 'robot ships'. The robot ships are themselves named objects and they have an internal state as well as a number of
methods, similar to robots. Figure shows a grid containing three robot ships, each potentially containing a number of robots, together with one individual robot.
A robot ship object can contain up to five robots. Its internal data consists of the robot objects it holds, together with a count of how many objects there are available. Viewed in terms of their internal state, the robot ships in the above grid can be represented as shown in Figure .
![2382_Complex robort worldrobot world2.png](https://www.expertsmind.com/../CMSImages/2382_Complex robort worldrobot world2.png)
All free-standing robots have an internal state indicating their position, as before. Robots enclosed in a robot ship will all have the same internal state, since they have the same position (as far as this crude grid is concerned). We will need the further assumption that a robot behaves differently depending on whether it is embarked (currently in a ship) or disembarked (not in a ship). Otherwise we could have robots emerging from ships in all directions!
![1335_Complex robort worldrobot world1.png](https://www.expertsmind.com/CMSImages/1335_Complex%20robort%20worldrobot%20world1.png)
We would expect a robot ship to respond to similar movement requests and position-reporting requests as for an individual robot. Additionally, a robot ship should be able to do a number of additional operations. For example, to embark a robot we could invoke a method as follows:
enterprise.embark(artoo);
The following example shows how to disembark a robot (if there are any):
argo.disembark();
Java Assignment Help - Java Homework Help
Struggling with java programming language? Are you not finding solution for your A more complex robot world homework and assignments? Live A more complex robot world experts are working for students by solving their doubts & questions during their course studies and training program. We at Expertsmind.com offer A more complex robot world homework help, java assignment help and A more complex robot world projects help anytime from anywhere for 24x7 hours. Computer science programming assignments help making life easy for students.
Why Expertsmind for assignment help
- Higher degree holder and experienced experts network
- Punctuality and responsibility of work
- Quality solution with 100% plagiarism free answers
- Time on Delivery
- Privacy of information and details
- Excellence in solving java programming language queries in excels and word format.
- Best tutoring assistance 24x7 hours