Reproduce this behaviour by calling appropriate methods

Assignment Help JAVA Programming
Reference no: EM132126329

PART A Specification - Robot Simulation

PART A Requirements

To complete this assignment you will use the supplied eclipse project Robot P1/. It is already set up to execute a simple arm movement loop which you will build upon to create the full solution.

NOTE: The primary requirements specifications are the supplied videos which show the EXACT behaviour you should reproduce.

However, some points worth noting about the displayed behaviour:

INITIALISATION:

After the init() method is called with valid array parameters:

- Blocks are placed in order (bottom to top) from the supplied (hard coded) blockHeights array, into the far right source column (column 10) (Control.SRC_COLUMN).
- Bars are placed in order from the supplied (hard coded) barHeights array from left to right (from Control.FIRST_BAR_COLUMN to a maximum of Control.LAST_BAR_COLUMN).
- This initialisation is done AUTOMATICALLY by the supplied RobotImpl.jar

BLOCK PLACMENT:

You must reproduce this behaviour by calling methods on the Robot. Further hints are given in the section HOW TO PROCEED below.

- Blocks are picked from the source column from top to bottom until there are no blocks remaining. You will need to control the robot movement to do this.
- Blocks are dropped (placed) as follows:
Yellow (Size 1) blocks are placed on the top of column 1 (Dest 1). Red (Size 2) blocks are placed on the top of column 2 (Dest 2).
Blue (Size 3) blocks are placed on top of bars starting at the left most bar (Control.FIRST_BAR_COLUMN) and progressing to the right most bar (Control.LAST_BAR_COLUMN).
- Blocks are lowered to the drop position using the raise()/lower() methods to move Arm3.
- If less bars than columns are supplied, blocks can still be placed on the empty column and should still be laid out as described above from Control.FIRST_BAR_COLUMN to Control.LAST_BAR_COLUMN

HEIGHT OPTIMISATION (ARM1 movement):

Again, you must reproduce this behaviour by calling appropriate methods on the Robot.

- Arm 2 (the horizontal arm controlled by extend()/contract()) should always be at the lowest height to clear any obstacles (i.e. the top of any column). This is achieved by using the up()/down() methods on Arm1.
- This is set before moving to make a pick (or after any drop) so that the arm can JUST clear any obstacles as it moves to the source column.
- The height is then rechecked as soon as you make a pick taking into account the picked block and the additional clearance it needs as it moves to the drop destination.

Code Quality Assessment

As well as functional correctness (robot behaviour matches video requirements) you will also be assessed based on the following code quality requirements:

- Use meaningful / descriptive identifiers (eg variable and method names).
- Demonstrate understanding of local variables versus class attributes and prefer local scope where possible.
- Demonstrate the use of defined constants in Control.java (Rather than using
magic numbers)
- Avoid code repetition. (THIS IS THE MOST IMPORTANT ONE!)
- Write small private methods to avoid code other than one or more method calls going in the RobotControl.control() method.
- Appropriate use of comments (but remember that easily understandable code is better than a comment).
- Include a comment at the top of RobotControl.java class stating your name and student number.

Attachment:- Assignment part.rar

Reference no: EM132126329

Questions Cloud

What comes to mind when you hear the word globalization : What comes to mind when you hear the word 'globalization'? What associations, ideas, concepts or images are associated with this term?
What is the probability the first car shown : What is the probability the first car shown was red, the second was black, and the third was red again?
What is the probability that the sample average : What is the probability that the sample average would be as high, or higher, than $1,742 if the true average of all claims was $1,500
Where do cfos get their money news : Where do CFOs get their money news? According to Robert Half International, 47% get their money news from newspapers, 15% get it from communication/colleagues
Reproduce this behaviour by calling appropriate methods : COSC1073 – Programming - You must reproduce this behaviour by calling methods on the Robot - Blocks are picked from the source column from top to bottom
Ompare open skies arrangements with bilateral agreements : Discuss how the Air Transportation Safety and System Stabilization Act and the Homeland Security Act both financially assisted the airlines .
What proportion of children : What proportion of children 10 to 15 years of age has total cholesterol between 180 and 190?
Which one do you think has the greatest potential : Of the six worldwide regions displayed, which one do you think has the greatest potential for airline growth, and why?
What about the novel is engaging for you : What about the novel is engaging for you as a reader? What parts of the novel are you having a difficult time understanding or connecting with?

Reviews

Write a Review

JAVA Programming Questions & Answers

  Create a class called triplestring

Create a class called TripleString. TripleString will consist of three private member Strings as its basic data. There will be few instance methods to support

  Size of the frame to be set a little bit larger than content

I need the size of the frame to be set a little bit larger than its content, which is a label. Also, the location could be set so that it could be appeared not at the upper left corner of the screen. And we can set the foreground and background co..

  Implement a generic class set

Implement a generic class Set that maintains a set of items of generic type T using the class LinkedList in the Java API. Your Set class must provide the subsequent functionality:

  Write a program that asks user how many students to process

Write a program that asks the user how many students to process (must be at least 1, but no more than 20) and then reads in the scores for three items, an exam average score (double number), lab average score (double number) and homework average s..

  Make the program especially well structured and readable

Make the program especially well structured and readable. Enhance to functionality of the program in various ways, even small ways.

  Program 2 classes one called student one called grades

program 2 classes one called student one called grades functional requirements ask for how many students u need to

  Computing the time complexity using the big-o notation

You are required to calculate the time complexity using the big-O notation of the Algorithm_2 given by the following methods defined by the following Java code.

  Write a java class that asks the user to enter three numbers

CS101- Write a java class that asks the user to enter three numbers N1, N2, N3 , obtains the numbers, then calculates and displays the largest number Max followed by the text "is the largest" and the smallest number.

  Implement a class quiz

Implement a class Quiz that implements the Measurable interface.

  Java statement to initialize a variable square

Write a Java statement to initialize a variable square with a rectangle object whose top left corner is (10, 20) and whose sides all have length 40. Then write a statement that replaces square with a rectangle of the same size and top left corner ..

  Write a java program to demonstrate the singleton pattern

Write a Java program (non-GUI i.e only Java class) to demonstrate the Singleton pattern.The key parts of the singleton pattern are:A private static variable to store the single instance called the singleton.A public static method for callers to get a..

  Design and develop a class to capture information

Design and develop a class to capture this information. Then a program to follow to find the average marks scored by students in a given discipline across

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd