- accept() - Method in class BasicIO.BasicForm
-
The form is made visible with the default buttons and the program is suspended, putting the form into User has
Control state.
- accept(String...) - Method in class BasicIO.BasicForm
-
The form is made visible with the specified buttons and the program is suspended, putting the form into User has
Control state.
- addCanvas(String, String, int, int, int, int) - Method in class BasicIO.BasicForm
-
Adds a canvas with specified name, label, size, and x,y co-ordinates to the form.
- addCanvas(String, String, int, int) - Method in class BasicIO.BasicForm
-
- addCanvas(String, String) - Method in class BasicIO.BasicForm
-
- addCanvas(String) - Method in class BasicIO.BasicForm
-
- addCanvas(String, int, int, int, int) - Method in class BasicIO.BasicForm
-
- addCanvas(String, int, int) - Method in class BasicIO.BasicForm
-
- addCanvas(int, int, int, int) - Method in class BasicIO.BasicForm
-
- addCanvas(int, int) - Method in class BasicIO.BasicForm
-
- addCanvas() - Method in class BasicIO.BasicForm
-
- addCheckBox(String, String, int, int) - Method in class BasicIO.BasicForm
-
Adds a checkbox with the specified name, label and x,y co-ordinate to the form.
- addCheckBox(String, String) - Method in class BasicIO.BasicForm
-
- addCheckBox(String) - Method in class BasicIO.BasicForm
-
- addCheckBox(String, int, int) - Method in class BasicIO.BasicForm
-
- addCheckBox(int, int) - Method in class BasicIO.BasicForm
-
- addCheckBox() - Method in class BasicIO.BasicForm
-
- addCustomComponent(JComponent) - Method in class BasicIO.BasicForm
-
Adds any JComponent to the form.
- addField(String, String, Format, int) - Method in class BasicIO.ReportPrinter
-
Adds a field to the report with specified name, label, default format and field width.
- addField(String, String, Format) - Method in class BasicIO.ReportPrinter
-
- addField(String, String) - Method in class BasicIO.ReportPrinter
-
- addField(String) - Method in class BasicIO.ReportPrinter
-
- addField(String, Format, int) - Method in class BasicIO.ReportPrinter
-
- addField(String, Format) - Method in class BasicIO.ReportPrinter
-
- addField(String, String, int) - Method in class BasicIO.ReportPrinter
-
- addField(String, int) - Method in class BasicIO.ReportPrinter
-
- addField(Format, int) - Method in class BasicIO.ReportPrinter
-
- addField(Format) - Method in class BasicIO.ReportPrinter
-
- addField(int) - Method in class BasicIO.ReportPrinter
-
- addField() - Method in class BasicIO.ReportPrinter
-
- addLabel(String, String, int, int) - Method in class BasicIO.BasicForm
-
Adds a label with the specified name, text and x,y co-ordinate to the form.
- addLabel() - Method in class BasicIO.BasicForm
-
- addLabel(int, int) - Method in class BasicIO.BasicForm
-
- addLabel(String) - Method in class BasicIO.BasicForm
-
- addLabel(String, int, int) - Method in class BasicIO.BasicForm
-
- addLabel(String, String) - Method in class BasicIO.BasicForm
-
- addRadioButtons(String, String, boolean, int, int, String...) - Method in class BasicIO.BasicForm
-
Adds a group of radio buttons with the specified name, label orientation and x,y co-ordinate to the form.
- addRadioButtons(String, String, boolean, String...) - Method in class BasicIO.BasicForm
-
- addRadioButtons(String, boolean, int, int, String...) - Method in class BasicIO.BasicForm
-
- addRadioButtons(String, boolean, String...) - Method in class BasicIO.BasicForm
-
- addRadioButtons(boolean, int, int, String...) - Method in class BasicIO.BasicForm
-
- addRadioButtons(boolean, String...) - Method in class BasicIO.BasicForm
-
- addRadioButtons(String...) - Method in class BasicIO.BasicForm
-
- addSlider(String, String, int, int, int, int, int) - Method in class BasicIO.BasicForm
-
Adds a slider with the specified name, label, range, size and x,y co-ordinate to the form.
- addSlider(String, String, int, int, int) - Method in class BasicIO.BasicForm
-
- addSlider(String, String, int, int) - Method in class BasicIO.BasicForm
-
- addSlider(String, String) - Method in class BasicIO.BasicForm
-
- addSlider(String) - Method in class BasicIO.BasicForm
-
- addSlider(String, int, int, int, int, int) - Method in class BasicIO.BasicForm
-
- addSlider(String, int, int, int) - Method in class BasicIO.BasicForm
-
- addSlider(String, int, int) - Method in class BasicIO.BasicForm
-
- addSlider(int, int, int, int, int) - Method in class BasicIO.BasicForm
-
- addSlider(int, int, int) - Method in class BasicIO.BasicForm
-
- addSlider(int, int) - Method in class BasicIO.BasicForm
-
- addSlider() - Method in class BasicIO.BasicForm
-
- addSound(String, String, Sound, int, int) - Method in class BasicIO.BasicForm
-
Adds a sound player (a button that when pressed will play the sound associated with the player) with specified name, label,
sound and x,y co-ordinate to the form.
- addSound() - Method in class BasicIO.BasicForm
-
- addSound(Sound) - Method in class BasicIO.BasicForm
-
- addSound(String) - Method in class BasicIO.BasicForm
-
- addSound(String, Sound) - Method in class BasicIO.BasicForm
-
- addSound(int, int) - Method in class BasicIO.BasicForm
-
- addSound(Sound, int, int) - Method in class BasicIO.BasicForm
-
- addSound(String, int, int) - Method in class BasicIO.BasicForm
-
- addSound(String, String) - Method in class BasicIO.BasicForm
-
- addSound(String, String, Sound) - Method in class BasicIO.BasicForm
-
- addSound(String, String, int, int) - Method in class BasicIO.BasicForm
-
- addTextArea(String, String, int, int, int, int) - Method in class BasicIO.BasicForm
-
Adds a text area, with the specified name, label, number of columns,
number of rows and x,y co-ordinate to the form.
- addTextArea(String, String, int, int) - Method in class BasicIO.BasicForm
-
- addTextArea(String, String) - Method in class BasicIO.BasicForm
-
- addTextArea(String) - Method in class BasicIO.BasicForm
-
- addTextArea(String, int, int, int, int) - Method in class BasicIO.BasicForm
-
- addTextArea(String, int, int) - Method in class BasicIO.BasicForm
-
- addTextArea(int, int, int, int) - Method in class BasicIO.BasicForm
-
- addTextArea(int, int) - Method in class BasicIO.BasicForm
-
- addTextArea() - Method in class BasicIO.BasicForm
-
- addTextField(String, String, Format, int, int, int) - Method in class BasicIO.BasicForm
-
Adds a text field with the specified name, label, default format,
size and x,y co-ordinate to the form.
- addTextField(String, String, Format, int) - Method in class BasicIO.BasicForm
-
- addTextField(String, String, Format) - Method in class BasicIO.BasicForm
-
- addTextField(String, String) - Method in class BasicIO.BasicForm
-
- addTextField(String) - Method in class BasicIO.BasicForm
-
- addTextField(String, Format, int, int, int) - Method in class BasicIO.BasicForm
-
- addTextField(String, Format, int) - Method in class BasicIO.BasicForm
-
- addTextField(String, Format) - Method in class BasicIO.BasicForm
-
- addTextField(String, String, int, int, int) - Method in class BasicIO.BasicForm
-
- addTextField(String, String, int) - Method in class BasicIO.BasicForm
-
- addTextField(String, int, int, int) - Method in class BasicIO.BasicForm
-
- addTextField(String, int) - Method in class BasicIO.BasicForm
-
- addTextField(Format, int, int, int) - Method in class BasicIO.BasicForm
-
- addTextField(Format, int) - Method in class BasicIO.BasicForm
-
- addTextField(Format) - Method in class BasicIO.BasicForm
-
- addTextField(int, int, int) - Method in class BasicIO.BasicForm
-
- addTextField(int) - Method in class BasicIO.BasicForm
-
- addTextField() - Method in class BasicIO.BasicForm
-
- ASCIIDataFile - Class in BasicIO
-
ASCIIDataFile reads data from tab deliminted text files such as produced by ASCIIOutputFile.
- ASCIIDataFile() - Constructor for class BasicIO.ASCIIDataFile
-
Constructs an ASCIIDataFile, prompting the user via Dialog Box for a file to read from.
- ASCIIDataFile(String) - Constructor for class BasicIO.ASCIIDataFile
-
Constructs an ASCIIDataFile and tries to open a file with the path provided in the String.
- ASCIIDataFile(File) - Constructor for class BasicIO.ASCIIDataFile
-
Constructs an ASCIIDataFile using the file provided.
- ASCIIDisplayer - Class in BasicIO
-
ASCIIDisplayer is used as a quick way to produce text output to the screen.
- ASCIIDisplayer() - Constructor for class BasicIO.ASCIIDisplayer
-
Constructs an ASCIIDisplayer as a form on the screen with a text area to which text may be written.
- ASCIIDisplayer(int, int) - Constructor for class BasicIO.ASCIIDisplayer
-
Constructs an ASCIIDisplayer as a form on the screen with a text area of specified number
of rows and columns, to which text may be written.
- ASCIIOutputFile - Class in BasicIO
-
ASCIIOutputFile writes unformated text to a file suitable to be read by ASCIIDataFile.
- ASCIIOutputFile() - Constructor for class BasicIO.ASCIIOutputFile
-
Constructs an ASCIIOutputFile, prompting the user via Dialog Box for a file to write to.
- ASCIIOutputFile(String) - Constructor for class BasicIO.ASCIIOutputFile
-
Constructs an ASCIIOutputFile and tries to open a file with the path provided in the String.
- ASCIIOutputFile(File) - Constructor for class BasicIO.ASCIIOutputFile
-
Constructs an ASCIIOutputFile using the file provided.
- ASCIIPrompter - Class in BasicIO
-
ASCIIPrompter is used as a quick way to get text input from the user.
- ASCIIPrompter() - Constructor for class BasicIO.ASCIIPrompter
-
Creates a form with a labeled text field to prompt the user for text input.
- ASCIIPrompter(boolean) - Constructor for class BasicIO.ASCIIPrompter
-
Creates a form with a labeled text field to prompt the user for text input.
- backward(double) - Method in class Media.Turtle
-
Moves turtle the specified number of pixels backwards.
- BasicForm - Class in BasicIO
-
BasicForm provides an easy way of giving Java applications a graphical user interface.
- BasicForm(String...) - Constructor for class BasicIO.BasicForm
-
Creates a form with the specified deafult buttons.
- BasicForm() - Constructor for class BasicIO.BasicForm
-
Creates a form with one default button labeled OK.
- BasicIO - package BasicIO
-
- BinaryDataFile - Class in BasicIO
-
BinaryDataFile reads data from binary files.
- BinaryDataFile() - Constructor for class BasicIO.BinaryDataFile
-
Constructs an BinaryDataFile, prompting the user via Dialog Box for a file to read from.
- BinaryDataFile(String) - Constructor for class BasicIO.BinaryDataFile
-
Constructs an BinaryDataFile and tries to open a file with the path provided in the String.
- BinaryDataFile(File) - Constructor for class BasicIO.BinaryDataFile
-
Constructs an BinaryDataFile using the file provided.
- BinaryOutputFile - Class in BasicIO
-
BinaryOutputFile writes binary data to a file.
- BinaryOutputFile() - Constructor for class BasicIO.BinaryOutputFile
-
Constructs an BinaryOutputFile, prompting the user via Dialog Box for a file to write to.
- BinaryOutputFile(String) - Constructor for class BasicIO.BinaryOutputFile
-
Constructs an BinaryOutputFile and tries to open a file with the path provided in the String.
- BinaryOutputFile(File) - Constructor for class BasicIO.BinaryOutputFile
-
Constructs an BinaryOutputFile using the file provided.
- clear() - Method in class BasicIO.BasicForm
-
- clear(String) - Method in class BasicIO.BasicForm
-
Clears the value displayed in the specified component on the form.
- clearAll() - Method in class BasicIO.BasicForm
-
Clears the values displayed in all components of the form.
- close() - Method in class BasicIO.ASCIIDataFile
-
Closes the file
- close() - Method in class BasicIO.ASCIIDisplayer
-
Closes the ASCIIDisplayer and frees resources when the user presses Close.
- close() - Method in class BasicIO.ASCIIOutputFile
-
Closes the file.
- close() - Method in class BasicIO.ASCIIPrompter
-
Closes the ASCIIPrompter and frees resources.
- close() - Method in class BasicIO.BasicForm
-
Closes the form and frees resources.
- close() - Method in class BasicIO.BinaryDataFile
-
Closes the file
- close() - Method in class BasicIO.BinaryOutputFile
-
Closes the file.
- close() - Method in class BasicIO.ReportPrinter
-
Prints the report by prompting user with a print dialogue box, and closes the ReportPrinter.
- close() - Method in class Media.PictureDisplayer
-
Closes the PictureDisplayer and frees resources when the user presses Close.
- close() - Method in class Media.Sound
-
Frees resources associated with the Sound.
- close() - Method in class Media.SoundPlayer
-
Closes the SoundPlayer and frees resources when the user presses Close.
- close() - Method in class Media.TurtleDisplayer
-
Closes the TurtleDisplayer and frees resources when the user presses Close.
- ComponentNotFoundException - Exception in BasicIO
-
To be thrown when a name of a component on the form was looked up but not found.
- ComponentNotFoundException() - Constructor for exception BasicIO.ComponentNotFoundException
-
Creates a new instance of ComponentNotFoundException
.
- ComponentNotFoundException(String) - Constructor for exception BasicIO.ComponentNotFoundException
-
Constructs an instance of ComponentNotFoundException
with the specified
detail message.
- getAmp() - Method in class Media.Sample
-
This method returns the amplitude of the Sample.
- getAngle() - Method in class Media.Turtle
-
Returns the current angle the turtle is facing.
- getBlue() - Method in class Media.Pixel
-
This method returns the blue value of the pixel.
- getColor() - Method in class Media.Pixel
-
This method returns all three colours of the pixel as a Colour object
- getCurrencyInstance() - Static method in class BasicIO.Formats
-
This method returns a format object to format a number as currency in the local style.
- getDateInstance() - Static method in class BasicIO.Formats
-
This method returns a format object to format a number as a date in the local style.
- getDateTimeInstance() - Static method in class BasicIO.Formats
-
This method returns a format object to format a number as a date and time in the local style.
- getDecimalInstance(int) - Static method in class BasicIO.Formats
-
This method returns a NumberFormat that will format a number to have the specified number of decimal places.
- getDistance(int, int, int) - Method in class Media.Pixel
-
This method returns the color distance between this pixel and a specified color.
- getDistance(Color) - Method in class Media.Pixel
-
This method returns the color distance between this pixel and a specified color.
- getDistance(Pixel) - Method in class Media.Pixel
-
This method returns the color distance between this and another Pixel's color.
- getFile() - Method in class BasicIO.ASCIIDataFile
-
Returns the file being used
- getFile() - Method in class BasicIO.ASCIIOutputFile
-
Returns the file being used
- getFile() - Method in class BasicIO.BinaryDataFile
-
Returns the file being used
- getFile() - Method in class BasicIO.BinaryOutputFile
-
Returns the file being used
- getFile() - Method in class Media.Picture
-
This method returns the file of the picture or null if there is no associated file.
- getFile() - Method in class Media.Sound
-
Returns the file that is associated with this sound or null if there is no
such file.
- getGreen() - Method in class Media.Pixel
-
This method returns the green value of the pixel.
- getHeight(String) - Method in class BasicIO.BasicForm
-
Returns the height in pixels of component on the form
- getHeight() - Method in class Media.Picture
-
This method returns the height of the Picture
- getIntegerInstance() - Static method in class BasicIO.Formats
-
This method returns a format object to format a number as an integer (i.e.
- getLineNumber() - Method in class BasicIO.ReportPrinter
-
Returns the current line number on the current page.
- getNumSamples() - Method in class Media.Sound
-
Returns the number of samples in the sound.
- getPageNumber() - Method in class BasicIO.ReportPrinter
-
Returns the current page number of the current page.
- getPenColor() - Method in class Media.Turtle
-
Returns the current color.
- getPenWidth() - Method in class Media.Turtle
-
Returns the width of the pen.
- getPercentInstance() - Static method in class BasicIO.Formats
-
This method returns a format object to format a number as a percentage.
- getPicture(String) - Method in class BasicIO.BasicForm
-
Gets a picture from a canvas.
- getPicture() - Method in class Media.PictureDisplayer
-
Returns the picture on the canvas
- getPixel(int, int) - Method in class Media.Picture
-
This method returns a single Pixel object
- getRed() - Method in class Media.Pixel
-
This method returns the red value of the pixel.
- getSample(int) - Method in class Media.Sound
-
Returns the Sample at a particular position in the Sound.
- getSampleRate() - Method in class Media.Sound
-
Returns the sampling (frame) rate for the sound.
- getSampleSize() - Method in class Media.Sound
-
Returns the sample (frame) size for the sound.
- getScreenX() - Method in class Media.Turtle
-
Returns the current x coordinate of the turtle.
- getScreenY() - Method in class Media.Turtle
-
Returns the current y coordinate of the turtle.
- getSound(String) - Method in class BasicIO.BasicForm
-
Gets a sound from a sound player.
- getSound() - Method in class Media.SoundPlayer
-
Returns the Sound in the SoundPlayer.
- getSpeed() - Method in class Media.Turtle
-
Returns the current drawing speed
- getTimeInstance() - Static method in class BasicIO.Formats
-
This method returns a format object to format a number as a time in the local style.
- getTransparency() - Method in class Media.Pixel
-
This method returns the transparency value of the pixel.
- getTurtle(String) - Method in class BasicIO.BasicForm
-
Gets a turtle from a canvas.
- getValue() - Method in class Media.Sample
-
- getWidth(String) - Method in class BasicIO.BasicForm
-
Returns the width in pixels of component on the form
- getWidth() - Method in class Media.Picture
-
This method returns the width of the Picture
- getX(String) - Method in class BasicIO.BasicForm
-
Returns the x co-ordinate of the top left corner of a component on the form
- getY(String) - Method in class BasicIO.BasicForm
-
Returns the y co-ordinate of the top left corner of a component on the form
- IllegalOperationException - Exception in BasicIO
-
An IllegalOperationException will be thrown when an operation is attempted
which can not be carried out.
- IllegalOperationException() - Constructor for exception BasicIO.IllegalOperationException
-
Creates a new instance of IllegalOperationException
.
- IllegalOperationException(String) - Constructor for exception BasicIO.IllegalOperationException
-
Constructs an instance of IllegalOperationException
with the specified
detail message.
- isDataEror() - Method in class BasicIO.ASCIIPrompter
-
This method returns true if the last operation failed due to a data error.
- isDataError() - Method in class BasicIO.ASCIIDataFile
-
Returns true if last operation failed because of a data error, meaning the data did not conform to format.
- isDataError() - Method in class BasicIO.BasicForm
-
Returns true if last operation failed due to being unable to convert the data to the specified type.
- isDataError() - Method in class BasicIO.BinaryDataFile
-
Returns true if last operation failed because of a data error, meaning the data did not conform to format.
- isEditable(String) - Method in class BasicIO.BasicForm
-
Returns true if the component is set to editable, false otherwise.
- isEOF() - Method in class BasicIO.ASCIIDataFile
-
Returns true if the last operation failed because of EOF, false otherwise.
- isEOF() - Method in class BasicIO.ASCIIPrompter
-
This method returns true if the last operation failed due to an end of file simulated
by the user pressing End.
- isEOF() - Method in class BasicIO.BasicForm
-
Returns true if last operation failed due to reading when at EOF.
- isEOF() - Method in class BasicIO.BinaryDataFile
-
Returns true if the last operation failed because of EOF, false otherwise.
- isFormatException() - Method in class BasicIO.BasicForm
-
Returns true if last operation failed due to being unable to format data.
- isPenDown() - Method in class Media.Turtle
-
Returns the current pen status (down == true)
- iterator() - Method in class Media.Picture
-
Creates and returns a new Iterator to iterate through the pixels.
- iterator() - Method in class Media.Sound
-
- NameAlreadyExistsException - Exception in BasicIO
-
To be thrown when a component with the same name as an already existing component is attempted to be added to the form.
- NameAlreadyExistsException() - Constructor for exception BasicIO.NameAlreadyExistsException
-
Creates a new instance of NameAlreadyExistsException
.
- NameAlreadyExistsException(String) - Constructor for exception BasicIO.NameAlreadyExistsException
-
Constructs an instance of NameAlreadyExistsException
with the specified
detail message.
- newLine() - Method in class BasicIO.ASCIIDisplayer
-
Writes a newline character so that the next write starts at the beginning of
the next line.
- newLine() - Method in class BasicIO.ASCIIOutputFile
-
Writes a newline character to the file.
- newLine(String) - Method in class BasicIO.BasicForm
-
Writes a newline character to the specified component on the form.
- newLine() - Method in class BasicIO.BasicForm
-
- newLine() - Method in class BasicIO.ReportPrinter
-
Ends the current line and the next write is done to the first field on the next line on the page.
- newPage() - Method in class BasicIO.ReportPrinter
-
Ends the current page and creates a new page with titles and field labels.
- next() - Method in class Media.Picture
-
This method returns the next Pixel in the picture.
- next() - Method in class Media.Sound
-
This method returns the next sample in the sound.
- nextLine() - Method in class BasicIO.ASCIIDataFile
-
The next read will start at the first field (or first character) of the next line.
- nextLine() - Method in class BasicIO.BasicForm
-
- nextLine(String) - Method in class BasicIO.BasicForm
-
The next read from the specified component on the form will start at the first character of the next line.
- NoComponentOnFormException - Exception in BasicIO
-
This Exception was created to be thrown when trying to read to / write from a component on the form which does not exist.
- NoComponentOnFormException() - Constructor for exception BasicIO.NoComponentOnFormException
-
Creates a new instance of NoFileOnFormException
.
- NoComponentOnFormException(String) - Constructor for exception BasicIO.NoComponentOnFormException
-
Constructs an instance of NoFileOnFormException
with the specified
detail message.
- NoFieldOnReportException - Exception in BasicIO
-
This Exception was created to be thrown when trying to read to / write from a component on the form which does not exist.
- NoFieldOnReportException() - Constructor for exception BasicIO.NoFieldOnReportException
-
Creates a new instance of NoFileOnFormException
.
- NoFieldOnReportException(String) - Constructor for exception BasicIO.NoFieldOnReportException
-
Constructs an instance of NoFileOnFormException
with the specified
detail message.
- penDown() - Method in class Media.Turtle
-
Puts the pen down.
- penUp() - Method in class Media.Turtle
-
Lifts the pen up.
- Picture - Class in Media
-
This class represents a picture that can be displayed on the screen.
- Picture() - Constructor for class Media.Picture
-
Create a picture from a file provided by a dialog.
- Picture(String) - Constructor for class Media.Picture
-
Create a picture with the specified filename
- Picture(int, int) - Constructor for class Media.Picture
-
This constructor creates a new blank (white) picture of sepcified width & height.
- PictureDisplayer - Class in Media
-
PictureDisplayer provides a quick way of getting a Picture onto the screen
by utilizing BasicForm to create a pre-designed Form with a Picture.
- PictureDisplayer() - Constructor for class Media.PictureDisplayer
-
Create a PictureDisplayer
- PictureDisplayer(Picture) - Constructor for class Media.PictureDisplayer
-
Create a PictureDisplayer with a picture on the canvas
- PictureDisplayer(int, int) - Constructor for class Media.PictureDisplayer
-
Create a PictureDisplayer with a canvas of specified size
- PictureDisplayer(Picture, int, int) - Constructor for class Media.PictureDisplayer
-
Create a PictureDisplayer with a picture on a canvass of specified size
- Pixel - Class in Media
-
A pixel is a single point (picture element) in a Picture.
- PixelOutOfBoundsException - Exception in Media
-
The exception occurs when the picture or sound cannot be loaded from the specified file.
- PixelOutOfBoundsException(String) - Constructor for exception Media.PixelOutOfBoundsException
-
- placePicture(String, Picture) - Method in class BasicIO.BasicForm
-
Places a picture onto a canvas.
- placePicture(Picture) - Method in class Media.PictureDisplayer
-
Places a picture onto the canvas in the PictureDisplayer
- placeSound(String, Sound) - Method in class BasicIO.BasicForm
-
Places a sound into a sound player on the form
- placeSound(Sound) - Method in class Media.SoundPlayer
-
Places the Sound object into the sound player on the SoundPlayer.
- placeTurtle(String, Turtle) - Method in class BasicIO.BasicForm
-
Places a turtle onto a canvas.
- placeTurtle(Turtle) - Method in class Media.TurtleDisplayer
-
Puts a turtle onto the canvas on the form.
- play() - Method in class Media.Sound
-
This method plays the sound.
- print(Graphics, PageFormat, int) - Method in class BasicIO.ReportPrinter
-
This method is used by Java for printing.
- readBoolean() - Method in class BasicIO.ASCIIDataFile
-
Reads the next field as a boolean.
- readBoolean() - Method in class BasicIO.ASCIIPrompter
-
Reads a boolean from the textfield.
- readBoolean() - Method in class BasicIO.BasicForm
-
- readBoolean(String) - Method in class BasicIO.BasicForm
-
Reads a boolean from the specified component on the form.
- readBoolean() - Method in class BasicIO.BinaryDataFile
-
Reads the next bytes in the file and returns them as a boolean.
- readByte() - Method in class BasicIO.ASCIIDataFile
-
Reads the next field as a byte.
- readByte() - Method in class BasicIO.ASCIIPrompter
-
Reads a byte from the textfield.
- readByte() - Method in class BasicIO.BasicForm
-
- readByte(String) - Method in class BasicIO.BasicForm
-
- readByte(Format) - Method in class BasicIO.BasicForm
-
- readByte(String, Format) - Method in class BasicIO.BasicForm
-
Reads a byte from the specified component on the form.
- readByte() - Method in class BasicIO.BinaryDataFile
-
Reads the next byte in the file and returns it as a byte.
- readC() - Method in class BasicIO.ASCIIDataFile
-
Reads the next char in the file, including control characters (tab, newline).
- readC() - Method in class BasicIO.ASCIIPrompter
-
Reads a char from the textfield.
- readC() - Method in class BasicIO.BasicForm
-
- readC(String) - Method in class BasicIO.BasicForm
-
Reads a char from the specified component on the form.
- readChar() - Method in class BasicIO.ASCIIDataFile
-
Reads the next field as a char.
- readChar() - Method in class BasicIO.ASCIIPrompter
-
Reads a char from the textfield.
- readChar() - Method in class BasicIO.BasicForm
-
- readChar(String) - Method in class BasicIO.BasicForm
-
Reads a char from the specified component on the form.
- readChar() - Method in class BasicIO.BinaryDataFile
-
Reads the next bytes in the file and returns them as a char.
- readDouble() - Method in class BasicIO.ASCIIDataFile
-
Reads the next field as a double.
- readDouble() - Method in class BasicIO.ASCIIPrompter
-
Reads a double from the textfield.
- readDouble() - Method in class BasicIO.BasicForm
-
- readDouble(String) - Method in class BasicIO.BasicForm
-
- readDouble(Format) - Method in class BasicIO.BasicForm
-
- readDouble(String, Format) - Method in class BasicIO.BasicForm
-
Reads a double from the specified component on the form.
- readDouble() - Method in class BasicIO.BinaryDataFile
-
Reads the next bytes in the file and returns them as a double.
- readFloat() - Method in class BasicIO.ASCIIDataFile
-
Reads the next field as a float.
- readFloat() - Method in class BasicIO.ASCIIPrompter
-
Reads a float from the textfield.
- readFloat() - Method in class BasicIO.BasicForm
-
- readFloat(String) - Method in class BasicIO.BasicForm
-
- readFloat(Format) - Method in class BasicIO.BasicForm
-
- readFloat(String, Format) - Method in class BasicIO.BasicForm
-
Reads a float from the specified component on the form.
- readFloat() - Method in class BasicIO.BinaryDataFile
-
Reads the next bytes in the file and returns them as a float.
- readInt() - Method in class BasicIO.ASCIIDataFile
-
Reads the next field as a int.
- readInt() - Method in class BasicIO.ASCIIPrompter
-
Reads an int from the textfield.
- readInt() - Method in class BasicIO.BasicForm
-
- readInt(String) - Method in class BasicIO.BasicForm
-
- readInt(Format) - Method in class BasicIO.BasicForm
-
- readInt(String, Format) - Method in class BasicIO.BasicForm
-
Reads an int from the specified component on the form.
- readInt() - Method in class BasicIO.BinaryDataFile
-
Reads the next bytes in the file and returns them as a int.
- readLine() - Method in class BasicIO.ASCIIDataFile
-
Returns an entire line, including control characters.
- readLine() - Method in class BasicIO.BasicForm
-
- readLine(String) - Method in class BasicIO.BasicForm
-
Reads a line of text as a String from the specified component on the form.
- readLong() - Method in class BasicIO.ASCIIDataFile
-
Reads the next field as a long.
- readLong() - Method in class BasicIO.ASCIIPrompter
-
Reads a long from the textfield.
- readLong() - Method in class BasicIO.BasicForm
-
- readLong(String) - Method in class BasicIO.BasicForm
-
- readLong(Format) - Method in class BasicIO.BasicForm
-
- readLong(String, Format) - Method in class BasicIO.BasicForm
-
Reads a long from the specified component on the form.
- readLong() - Method in class BasicIO.BinaryDataFile
-
Reads the next bytes in the file and returns them as a long.
- readObject() - Method in class BasicIO.BinaryDataFile
-
Reads the next bytes in the file and returns them as an Object.
- readShort() - Method in class BasicIO.ASCIIDataFile
-
Reads the next field as a short.
- readShort() - Method in class BasicIO.ASCIIPrompter
-
Reads a short from the textfield.
- readShort() - Method in class BasicIO.BasicForm
-
- readShort(String) - Method in class BasicIO.BasicForm
-
- readShort(Format) - Method in class BasicIO.BasicForm
-
- readShort(String, Format) - Method in class BasicIO.BasicForm
-
Reads a short from the specified component on the form.
- readShort() - Method in class BasicIO.BinaryDataFile
-
Reads the next bytes in the file and returns them as a short.
- readString() - Method in class BasicIO.ASCIIDataFile
-
Reads the next field, returning it as a String.
- readString() - Method in class BasicIO.ASCIIPrompter
-
Reads a String from the textfield.
- readString() - Method in class BasicIO.BasicForm
-
- readString(String) - Method in class BasicIO.BasicForm
-
Reads a String from the specified component on the form.
- readString() - Method in class BasicIO.BinaryDataFile
-
Reads the next bytes in the file and returns them as a String.
- ReportPrinter - Class in BasicIO
-
This class allows for text output to a printer in a report style.
- ReportPrinter() - Constructor for class BasicIO.ReportPrinter
-
Construct a report printer for printing in portrait orientation.
- ReportPrinter(boolean) - Constructor for class BasicIO.ReportPrinter
-
Construct a report printer for printing in portrait (true) or landscape (false) orientation.
- right(double) - Method in class Media.Turtle
-
Changes the direction the turtle faces by newAngle radians to the right.
- Sample - Class in Media
-
This is the representation of a single sample of a Sound.
- SampleOutOfBoundsException - Exception in Media
-
The exception occurs when the picture or sound cannot be loaded from the specified file.
- SampleOutOfBoundsException(String) - Constructor for exception Media.SampleOutOfBoundsException
-
- save() - Method in class Media.Picture
-
This method saves the image with the filename provided by the dialog.
- save(String) - Method in class Media.Picture
-
Saves the picture to the specified file
- save(File) - Method in class Media.Sound
-
This method saves the sound to a specified file.
- save(String) - Method in class Media.Sound
-
This method saves the sound to a specified file
- save() - Method in class Media.Sound
-
This method saves the sound to a file chosen from a dialog.
- setAmp(int) - Method in class Media.Sample
-
This method sets the amplitude of this Sample.
- setBlue(int) - Method in class Media.Pixel
-
This method sets the blue value of the pixel.
- setCanvas(GeneralCanvas) - Method in class Media.Picture
-
Used by BasicForm.
- setCanvas(GeneralCanvas) - Method in class Media.Turtle
-
Used by BasicForm.
- setColor(int, int, int) - Method in class Media.Pixel
-
This method changes all three colours in one method
- setColor(Color) - Method in class Media.Pixel
-
This method changes all three colours in one method by accepting
a Colour object as a paramter
- setEditable(String, boolean) - Method in class BasicIO.BasicForm
-
Sets the edit state of the component.
- setGreen(int) - Method in class Media.Pixel
-
This method sets the green value of the pixel.
- setJFrame(JFrame) - Method in class Media.Picture
-
Used by BasicForm.
- setJFrame(JFrame) - Method in class Media.Turtle
-
Used by BasicForm.
- setLabel(String) - Method in class BasicIO.ASCIIDisplayer
-
Changes the text of the label on the text area of the ASCIIDisplayer.
- setLabel(String) - Method in class BasicIO.ASCIIPrompter
-
Changes the text of the label (prompt) on the form.
- setLabel(String, String) - Method in class BasicIO.BasicForm
-
Changes the text of a label of a component.
- setPenColor(Color) - Method in class Media.Turtle
-
Sets the color of the pen.
- setPenWidth(int) - Method in class Media.Turtle
-
Sets the width of the pen the turtle draws with.
- setPicture(Picture) - Method in class Media.PictureDisplayer
-
- setRed(int) - Method in class Media.Pixel
-
This method sets the red value of the pixel.
- setSound(String, Sound) - Method in class BasicIO.BasicForm
-
- setSound(Sound) - Method in class Media.SoundPlayer
-
- setSpeed(int) - Method in class Media.Turtle
-
Sets the speed of the turtle
- setTitle(String) - Method in class BasicIO.BasicForm
-
Sets the title in the title bar of the form to the String passed.
- setTitle(String...) - Method in class BasicIO.ReportPrinter
-
Set the title on the report by passing a var args of strings to this method.
- setTransparency(byte) - Method in class Media.Pixel
-
This method sets the transparency value of the pixel.
- setTurtle(String, Turtle) - Method in class BasicIO.BasicForm
-
- setTurtle(Turtle) - Method in class Media.TurtleDisplayer
-
- setValue(int) - Method in class Media.Sample
-
- show() - Method in class BasicIO.ASCIIDisplayer
-
Makes the ASCIIDisplayer visible, so that it can be seen on the desktop.
- show() - Method in class BasicIO.BasicForm
-
Makes the form visible on the screen, putting the form into the Visible state.
- show() - Method in class Media.PictureDisplayer
-
Makes the PictureDisplayer visible, so that it can be seen on the desktop.
- show() - Method in class Media.SoundPlayer
-
Makes the SoundPlayer visible, so that it can be seen on the desktop.
- show() - Method in class Media.TurtleDisplayer
-
Makes the TurtleDisplayer visible, so that it can be seen on the desktop.
- skipToEOL() - Method in class BasicIO.ASCIIDataFile
-
- skipToEOL() - Method in class BasicIO.BasicForm
-
- skipToEOL(String) - Method in class BasicIO.BasicForm
-
- SLOW - Static variable in class Media.Turtle
-
- Sound - Class in Media
-
This class represents a sound that can be played.
- Sound() - Constructor for class Media.Sound
-
Create a sound opening a WAV file selected from a dialog.
- Sound(File) - Constructor for class Media.Sound
-
Create a sound from a specified WAV file.
- Sound(String) - Constructor for class Media.Sound
-
Create a sound from a specified WAV file.
- Sound(int, int, int) - Constructor for class Media.Sound
-
Create a new empty (silent, all samples 0) sound with specified length
(number of samples), sample size (frame size) and sample rate (frame rate)
- Sound(int, Sound) - Constructor for class Media.Sound
-
Create a new empty (silent, all samples 0) sound with specified length
(number of samples) and same sound parameters as another sound
- Sound(int) - Constructor for class Media.Sound
-
Create a new empty (all samples 0) sound with specified length
- SoundPlayer - Class in Media
-
Provides a quick way to put a sound on a form so it can be played.
- SoundPlayer() - Constructor for class Media.SoundPlayer
-
Creates a SoundPlayer which can have a Sound placed in it for audio playback.
- SoundPlayer(Sound) - Constructor for class Media.SoundPlayer
-
Creates a SoundPlayer with a Sound that can be played.
- successful() - Method in class BasicIO.ASCIIDataFile
-
Returns true if the last operation was succesfull, false otherwise.
- successful() - Method in class BasicIO.ASCIIOutputFile
-
Indicates whether or not the previous operation
was successful.
- successful() - Method in class BasicIO.ASCIIPrompter
-
This method returns true if the last opperation was successful, false otherwise.
- successful() - Method in class BasicIO.BasicForm
-
Returns true if the last operation (eg readxxx, writexxx) was succesful, false otherwise.
- successful() - Method in class BasicIO.BinaryDataFile
-
Returns true if the last operation was succesfull, false otherwise.
- successful() - Method in class BasicIO.BinaryOutputFile
-
Indicates whether or not the previous operation
was successful.
- toString() - Method in class Media.Pixel
-
This method returns a string representation of the Pixel object
- toString() - Method in exception Media.PixelOutOfBoundsException
-
- toString() - Method in exception Media.SampleOutOfBoundsException
-
- toString() - Method in exception Media.UnableToLoadFileException
-
- Turtle - Class in Media
-
This class provides line drawing (vector graphics) capabilities based on Turtle
Graphics (Seymour Papert).
- Turtle(int, int, Color) - Constructor for class Media.Turtle
-
Creates a Turtle drawing at a specified speed with a pen of specified width and color.
- Turtle(int, int) - Constructor for class Media.Turtle
-
Creates a Turtle drawing at a specified speed with a black pen of specified width.
- Turtle(int, Color) - Constructor for class Media.Turtle
-
Creates a Turtle drawing at a specified speed with a pen of specified color and width 1.
- Turtle(int) - Constructor for class Media.Turtle
-
Creates a Turtle drawing at a specified speed with a black pen of width 1.
- Turtle(Color) - Constructor for class Media.Turtle
-
Creates a Turtle drawing at slow speed with a pen of specified color and width 1.
- Turtle() - Constructor for class Media.Turtle
-
Creates a Turtle drawing at a slow speed with a black pen of width 1.
- TurtleDisplayer - Class in Media
-
TurtleDisplayer provides a quick way of getting a turtle to draw on the screen
by creating a BasicForm with a Canvas and additional components that give
feedback on the turtle's status.
- TurtleDisplayer(Turtle, int, int) - Constructor for class Media.TurtleDisplayer
-
Creates a TurtleDisplayer with a Canvas for a Turtle with the specified
width and height.
- TurtleDisplayer(Turtle) - Constructor for class Media.TurtleDisplayer
-
Creats a form with the specified Turtle on a Canvas of size 300x300,
accompanied by other componentsgiving feedback on the turtle's status
- TurtleDisplayer() - Constructor for class Media.TurtleDisplayer
-
Creates a form with a Canvas of size 300x300, accompanied by other components
giving feedback on the turtle's status
- waitForUser() - Method in class BasicIO.ASCIIDisplayer
-
Waits for the user to finish using the ASCIIDisplayer and press OK.
- waitForUser() - Method in class Media.PictureDisplayer
-
Waits for the user to finish using the PictureDisplayer and press OK.
- waitForUser() - Method in class Media.SoundPlayer
-
Waits for the user to finish using the SoundPlayer and press OK.
- waitForUser() - Method in class Media.TurtleDisplayer
-
Waits for the user to finish using the TurtleDisplayer and press OK.
- writeBoolean(boolean) - Method in class BasicIO.ASCIIDisplayer
-
Writes a boolean to the displayer.
- writeBoolean(boolean) - Method in class BasicIO.ASCIIOutputFile
-
Writes a boolean to the file
- writeBoolean(boolean) - Method in class BasicIO.BasicForm
-
- writeBoolean(String, boolean) - Method in class BasicIO.BasicForm
-
Writes a boolean value to the specified component on the form.
- writeBoolean(boolean) - Method in class BasicIO.BinaryOutputFile
-
Writes a boolean to the file
- writeBoolean(String, boolean, Format) - Method in class BasicIO.ReportPrinter
-
Writes the boolean value to the field with the specified name and left justifying the output.
- writeBoolean(String, boolean) - Method in class BasicIO.ReportPrinter
-
- writeBoolean(boolean, Format) - Method in class BasicIO.ReportPrinter
-
- writeBoolean(boolean) - Method in class BasicIO.ReportPrinter
-
- writeByte(byte) - Method in class BasicIO.ASCIIDisplayer
-
Writes a byte to the displayer.
- writeByte(byte, int) - Method in class BasicIO.ASCIIDisplayer
-
Writes a byte to the displayer.
- writeByte(byte) - Method in class BasicIO.ASCIIOutputFile
-
Writes a byte to the file
- writeByte(byte) - Method in class BasicIO.BasicForm
-
- writeByte(String, byte) - Method in class BasicIO.BasicForm
-
- writeByte(byte, Format) - Method in class BasicIO.BasicForm
-
- writeByte(String, byte, Format) - Method in class BasicIO.BasicForm
-
- writeByte(String, byte, Format, int) - Method in class BasicIO.BasicForm
-
Writes a byte value to the specified component on the form.
- writeByte(String, byte, int) - Method in class BasicIO.BasicForm
-
- writeByte(byte, Format, int) - Method in class BasicIO.BasicForm
-
- writeByte(byte, int) - Method in class BasicIO.BasicForm
-
- writeByte(byte) - Method in class BasicIO.BinaryOutputFile
-
Writes a byte to the file
- writeByte(String, byte, Format) - Method in class BasicIO.ReportPrinter
-
Writes the byte value to the field with the specified name and right justifying the output.
- writeByte(String, byte) - Method in class BasicIO.ReportPrinter
-
- writeByte(byte, Format) - Method in class BasicIO.ReportPrinter
-
- writeByte(byte) - Method in class BasicIO.ReportPrinter
-
- writeC(char) - Method in class BasicIO.ASCIIDisplayer
-
Writes a char to the displayer.
- writeC(char) - Method in class BasicIO.ASCIIOutputFile
-
Writes a char to the file without any field seperators.
- writeC(char) - Method in class BasicIO.BasicForm
-
- writeC(String, char) - Method in class BasicIO.BasicForm
-
Writes a char value to the specified component on the form.
- writeChar(char) - Method in class BasicIO.ASCIIDisplayer
-
Writes a char to the displayer.
- writeChar(char) - Method in class BasicIO.ASCIIOutputFile
-
Writes a char to the file
- writeChar(char) - Method in class BasicIO.BasicForm
-
- writeChar(String, char) - Method in class BasicIO.BasicForm
-
Writes a char value to the specified component on the form.
- writeChar(char) - Method in class BasicIO.BinaryOutputFile
-
Writes a char to the file
- writeChar(String, char, Format) - Method in class BasicIO.ReportPrinter
-
Writes the char value to the field with the specified name and left justifying the output.
- writeChar(String, char) - Method in class BasicIO.ReportPrinter
-
- writeChar(char, Format) - Method in class BasicIO.ReportPrinter
-
- writeChar(char) - Method in class BasicIO.ReportPrinter
-
- writeDouble(double) - Method in class BasicIO.ASCIIDisplayer
-
Writes a double to the displayer.
- writeDouble(double, int, int) - Method in class BasicIO.ASCIIDisplayer
-
Writes a double to the displayer.
- writeDouble(double) - Method in class BasicIO.ASCIIOutputFile
-
Writes a double to the file
- writeDouble(double) - Method in class BasicIO.BasicForm
-
- writeDouble(String, double) - Method in class BasicIO.BasicForm
-
- writeDouble(double, Format) - Method in class BasicIO.BasicForm
-
- writeDouble(String, double, Format) - Method in class BasicIO.BasicForm
-
- writeDouble(String, double, Format, int) - Method in class BasicIO.BasicForm
-
Writes a double value to the specified component on the form.
- writeDouble(String, double, int) - Method in class BasicIO.BasicForm
-
- writeDouble(double, Format, int) - Method in class BasicIO.BasicForm
-
- writeDouble(double, int) - Method in class BasicIO.BasicForm
-
- writeDouble(double) - Method in class BasicIO.BinaryOutputFile
-
Writes a double to the file
- writeDouble(String, double, Format) - Method in class BasicIO.ReportPrinter
-
Writes the double value to the field with the specified name and right justifying the output.
- writeDouble(String, double) - Method in class BasicIO.ReportPrinter
-
- writeDouble(double, Format) - Method in class BasicIO.ReportPrinter
-
- writeDouble(double) - Method in class BasicIO.ReportPrinter
-
- writeEOL() - Method in class BasicIO.ASCIIDisplayer
-
- writeEOL() - Method in class BasicIO.ASCIIOutputFile
-
- writeEOL() - Method in class BasicIO.BasicForm
-
- writeEOL(String) - Method in class BasicIO.BasicForm
-
- writeFloat(float) - Method in class BasicIO.ASCIIDisplayer
-
Writes a float to the displayer.
- writeFloat(float, int, int) - Method in class BasicIO.ASCIIDisplayer
-
Writes a float to the displayer.
- writeFloat(float) - Method in class BasicIO.ASCIIOutputFile
-
Writes a float to the file
- writeFloat(float) - Method in class BasicIO.BasicForm
-
- writeFloat(float, Format) - Method in class BasicIO.BasicForm
-
- writeFloat(String, float) - Method in class BasicIO.BasicForm
-
- writeFloat(String, float, Format) - Method in class BasicIO.BasicForm
-
- writeFloat(String, float, Format, int) - Method in class BasicIO.BasicForm
-
Writes a float value to the specified component on the form.
- writeFloat(String, float, int) - Method in class BasicIO.BasicForm
-
- writeFloat(float, Format, int) - Method in class BasicIO.BasicForm
-
- writeFloat(float, int) - Method in class BasicIO.BasicForm
-
- writeFloat(float) - Method in class BasicIO.BinaryOutputFile
-
Writes a float to the file
- writeFloat(String, float, Format) - Method in class BasicIO.ReportPrinter
-
Writes the float value to the field with the specified name and right justifying the output.
- writeFloat(String, float) - Method in class BasicIO.ReportPrinter
-
- writeFloat(float, Format) - Method in class BasicIO.ReportPrinter
-
- writeFloat(float) - Method in class BasicIO.ReportPrinter
-
- writeInt(int) - Method in class BasicIO.ASCIIDisplayer
-
Writes an int to the displayer.
- writeInt(int, int) - Method in class BasicIO.ASCIIDisplayer
-
Writes an int to the displayer.
- writeInt(int) - Method in class BasicIO.ASCIIOutputFile
-
Writes an int to the file
- writeInt(int) - Method in class BasicIO.BasicForm
-
- writeInt(int, Format) - Method in class BasicIO.BasicForm
-
- writeInt(String, int) - Method in class BasicIO.BasicForm
-
- writeInt(String, int, Format) - Method in class BasicIO.BasicForm
-
- writeInt(String, int, Format, int) - Method in class BasicIO.BasicForm
-
Writes an int value to the specified component on the form.
- writeInt(String, int, int) - Method in class BasicIO.BasicForm
-
- writeInt(int, Format, int) - Method in class BasicIO.BasicForm
-
- writeInt(int, int) - Method in class BasicIO.BasicForm
-
- writeInt(int) - Method in class BasicIO.BinaryOutputFile
-
Writes an int to the file
- writeInt(String, int, Format) - Method in class BasicIO.ReportPrinter
-
Writes the int value to the field with the specified name and right justifying the output.
- writeInt(String, int) - Method in class BasicIO.ReportPrinter
-
- writeInt(int, Format) - Method in class BasicIO.ReportPrinter
-
- writeInt(int) - Method in class BasicIO.ReportPrinter
-
- writeLine(String) - Method in class BasicIO.ASCIIDisplayer
-
Writes a String to the displayer with a newline character at the end of the String.
- writeLine(String) - Method in class BasicIO.ASCIIOutputFile
-
Writes a String to the file with a newline character at the end of the String.
- writeLine(String) - Method in class BasicIO.BasicForm
-
- writeLine(String, String) - Method in class BasicIO.BasicForm
-
Writes a string as a line to the specified component on the form.
- writeLine(String, Format) - Method in class BasicIO.ReportPrinter
-
Writes a string to the report immediately following the previous field and ending the line.
- writeLine(String) - Method in class BasicIO.ReportPrinter
-
- writeLong(long) - Method in class BasicIO.ASCIIDisplayer
-
Writes a long to the displayer.
- writeLong(long, int) - Method in class BasicIO.ASCIIDisplayer
-
Writes a long to the displayer.
- writeLong(long) - Method in class BasicIO.ASCIIOutputFile
-
Writes a long to the file
- writeLong(long) - Method in class BasicIO.BasicForm
-
- writeLong(long, Format) - Method in class BasicIO.BasicForm
-
- writeLong(String, long) - Method in class BasicIO.BasicForm
-
- writeLong(String, long, Format) - Method in class BasicIO.BasicForm
-
- writeLong(String, long, Format, int) - Method in class BasicIO.BasicForm
-
Writes a long value to the specified component on the form.
- writeLong(String, long, int) - Method in class BasicIO.BasicForm
-
- writeLong(long, Format, int) - Method in class BasicIO.BasicForm
-
- writeLong(long, int) - Method in class BasicIO.BasicForm
-
- writeLong(long) - Method in class BasicIO.BinaryOutputFile
-
Writes a long to the file
- writeLong(String, long, Format) - Method in class BasicIO.ReportPrinter
-
Writes the long value to the field with the specified name and right justifying the output.
- writeLong(String, long) - Method in class BasicIO.ReportPrinter
-
- writeLong(long, Format) - Method in class BasicIO.ReportPrinter
-
- writeLong(long) - Method in class BasicIO.ReportPrinter
-
- writeObject(Object) - Method in class BasicIO.ASCIIDisplayer
-
Writes the String representation of an Object to the displayer.
- writeObject(Object) - Method in class BasicIO.BinaryOutputFile
-
Writes an Object to the file using serialization.
- writeShort(short) - Method in class BasicIO.ASCIIDisplayer
-
Writes a short to the displayer.
- writeShort(short, int) - Method in class BasicIO.ASCIIDisplayer
-
Writes a short to the displayer.
- writeShort(short) - Method in class BasicIO.ASCIIOutputFile
-
Writes a short to the file
- writeShort(short) - Method in class BasicIO.BasicForm
-
- writeShort(short, Format) - Method in class BasicIO.BasicForm
-
- writeShort(String, short) - Method in class BasicIO.BasicForm
-
- writeShort(String, short, Format) - Method in class BasicIO.BasicForm
-
- writeShort(String, short, Format, int) - Method in class BasicIO.BasicForm
-
Writes a short value to the specified component on the form.
- writeShort(String, short, int) - Method in class BasicIO.BasicForm
-
- writeShort(short, Format, int) - Method in class BasicIO.BasicForm
-
- writeShort(short, int) - Method in class BasicIO.BasicForm
-
- writeShort(short) - Method in class BasicIO.BinaryOutputFile
-
Writes a short to the file
- writeShort(String, short, Format) - Method in class BasicIO.ReportPrinter
-
Writes the short value to the field with the specified name and right justifying the output.
- writeShort(String, short) - Method in class BasicIO.ReportPrinter
-
- writeShort(short, Format) - Method in class BasicIO.ReportPrinter
-
- writeShort(short) - Method in class BasicIO.ReportPrinter
-
- writeString(String) - Method in class BasicIO.ASCIIDisplayer
-
Writes a String to the displayer.
- writeString(String) - Method in class BasicIO.ASCIIOutputFile
-
Writes a String to the file
- writeString(String) - Method in class BasicIO.BasicForm
-
- writeString(String, Format) - Method in class BasicIO.BasicForm
-
- writeString(String, String) - Method in class BasicIO.BasicForm
-
- writeString(String, String, Format) - Method in class BasicIO.BasicForm
-
- writeString(String, int) - Method in class BasicIO.BasicForm
-
- writeString(String, Format, int) - Method in class BasicIO.BasicForm
-
- writeString(String, String, int) - Method in class BasicIO.BasicForm
-
- writeString(String, String, Format, int) - Method in class BasicIO.BasicForm
-
Writes a String value to the specified component on the form.
- writeString(String) - Method in class BasicIO.BinaryOutputFile
-
Writes a String to the file
- writeString(String, String, Format) - Method in class BasicIO.ReportPrinter
-
Writes the String value to the field with the specified name and left justifying the output.
- writeString(String, String) - Method in class BasicIO.ReportPrinter
-
- writeString(String, Format) - Method in class BasicIO.ReportPrinter
-
- writeString(String) - Method in class BasicIO.ReportPrinter
-


|
Brooklyn | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | METHOD | DETAIL: FIELD | METHOD |
public interface LocationManager
For managing and querying entities.
| Method Summary | |
|---|---|
java.lang.Object
|
createLocation(LocationSpec spec)
Creates a new location, which is tracked by the management context. |
java.lang.Object
|
createLocation(java.util.Map config, java.lang.Class type)
Convenience (particularly for groovy code) to create a location. |
Location
|
getLocation(java.lang.String id)
Returns the location under management (e.g. in use) with the given identifier (e.g. random string; and different to the LocationDefinition id). |
java.util.Collection
|
getLocations()
All locations under control of this management plane. |
boolean
|
isManaged(Location loc)
whether the location is under management by this management context |
Location
|
manage(Location loc)
Begins management for the given location and its children, recursively. |
void
|
unmanage(Location loc)
Causes the given location and its children, recursively, to be removed from the management plane (for instance because the location is no longer relevant). |
| Method Detail |
|---|
public java.lang.Object createLocation(LocationSpec spec)
public java.lang.Object createLocation(java.util.Map config, java.lang.Class type)
public Location getLocation(java.lang.String id)
public java.util.Collection getLocations()
public boolean isManaged(Location loc)
public Location manage(Location loc)
public void unmanage(Location loc)
Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.


Images in search are free to use. You have to download them and on Steemit you have to give a proper an image attribution. An image attribution is a source url linking back to a page where from you took that image.


Free public transport for all to be pledged by Greens
by Alastair DaltonFree public transport for all is to be pledged by the Scottish Greens in its election manifesto, The Scotsman has learned.
The radical move would be paid for by measures such as doubling vehicle excise duty for more polluting vehicles and scrapping the freeze on fuel duty.
It follows Luxembourg announcing it would scrap fares from next March and the successful introduction of free bus travel in the French town of Dunkirk.
The Greens will announce on Monday plans for free bus travel for under-21s as a first step towards universal free public transport.
Despite being one of the smallest parties, the Greens influence on transport policy should not be underestimated, having pushed through the workplace parking levy in Scotland as part of a budget deal with the SNP.
The Greens declined to put a timescale on introduction of the policy because of “uncertainty around Brexit and the constitution”.
A spokesman added: “Because we have pitched it at a UK level, we haven’t yet gone into what that would mean at a Scotland level. The policy follows successful trials of free services in other European countries and cities.
“It could be funded through reversing Tory policies that have fuelled a growth in traffic.
“Scottish Greens would double first-year vehicle excise duty on more polluting vehicles, reverse the fuel duty freeze and end support for domestic aviation other than lifeline services to remote and island communities - raising more than £9.5 billion a year.
“All fuel retailers would be compelled to provide charging points for electric vehicles by 2025.”
Scottish Greens co-leader Patrick Harvie said: “To tackle the climate and air pollution emergency we need to focus public funds on public transport, making it the most convenient and easiest choice.
“Imagine how liberating it would be, to hop on and off our buses, trains and ferries at will without the need for fares.
“Free public transport isn’t far-fetched.
“It is happening in cities across Europe and will be in place in whole of Luxembourg by the summer.
“What it requires, though, is political bravery.
“The climate emergency requires an emergency response. That means reducing our heaviest polluters and building a low carbon alternative, fast.”


Hiragana (平仮名, ひらがな?) is a Japanese syllabary, one component of the Japanese writing system, along with katakana, kanji, and in some cases rōmaji (Latin script). It is a phonetic lettering system. The word hiragana literally means "ordinary" or "simple" kana ("simple" originally as contrasted with kanji).
Katakana (片仮名, カタカナ?) is a Japanese syllabary, one component of the Japanese writing system along with hiragana, kanji, and in some cases the Latin script (known as romaji).


The library of UI components used for Terminus applications.
Table of Contents
This library was created to assist Terminus engineers in maintaining a consistent experience across applications while following a unified design language.
The library is open source with the hopes that others may find solutions and ideas here, as we have done while browsing so many other repositories. While we want to make decisions that are best for everyone, in the end, the needs of the Terminus engineering team must come first.
If a deviation makes sense for the feature itself, but not for Terminus, we support (and will assist in) abstracting the functionality out for generalization.
This library is heavily based on Material Design currently. This provides us a way to rely on very well thought out usability and accessibility decisions for areas we have not yet addressed internally. While we hold Material in high regard, we do not believe that all of their decisions are best for the Terminus UI specifically.
The available features table contains links for functional and usage documentation for each feature.
- :hammer: started
- :white_check_mark: available
- :hankey: deprecated
| Feature | Notes | Status | Demo | Docs | Usage |
|---|---|---|---|---|---|
| alert | |||||
| autocomplete | Input with autocomplete | :white_check_mark: | Demo | Docs | Usage |
| autofocus | Focus a focusable element on load | :white_check_mark: | Demo | Docs | Usage |
| badge | |||||
| button | :white_check_mark: | Demo | Docs | ||
| breadcrumbs | |||||
| card | :white_check_mark: | Demo | Docs | Usage | |
| chart | Charts, graphs etc | :white_check_mark: | Demo | Docs | Usage |
| chip | |||||
| checkbox | :white_check_mark: | Demo | Docs | Usage | |
| confirmation | Add a confirmation step to any ts-button |
:white_check_mark: | Demo | Docs | Usage |
| copy | :white_check_mark: | Demo | Docs | ||
| csv entry | Manually enter CSV values | :white_check_mark: | Demo | Docs | Usage |
| datepicker | See TsInputComponent |
:white_check_mark: | Demo | Docs | Usage |
| date-range | Dual inputs with calendar pop-ups | :white_check_mark: | Demo | Docs | Usage |
| dialog | |||||
| divider | |||||
| expansion | |||||
| file-upload | File upload with drag and drop | :white_check_mark: | Demo | Docs | Usage |
| icon | Supported icons: https://material.io/icons | :white_check_mark: | Demo | Docs | Usage |
| icon-button | :white_check_mark: | Demo | Docs | Usage | |
| input | :white_check_mark: | Demo | Docs | Usage | |
| link | :white_check_mark: | Demo | Docs | Usage | |
| loading overlay | Overlay with loading spinner | :white_check_mark: | Demo | Docs | |
| login form | Email/password with 'remember me' checkbox | :white_check_mark: | Demo | Docs | |
| menu | :white_check_mark: | Demo | Docs | Usage | |
| navigation | Global navigation menu | :white_check_mark: | Demo | Docs | |
| paginator | Paging controls for collections | :white_check_mark: | Demo | Docs | Usage |
| pipes | A collection of pipes for Angular | :white_check_mark: | Demo | Docs | |
| progress | |||||
| progression | i.e. Stepper, wizard | ||||
| radio-group | :white_check_mark: | Demo | Docs | Usage | |
| scrollbars | Custom scrollars for both axis' | :white_check_mark: | Demo | Docs | Usage |
| search | input with search capabilities | :white_check_mark: | Demo | Docs | |
| select | :white_check_mark: | Demo | Docs | ||
| spacing | Helpers for consistent spacing | :white_check_mark: | Demo | Docs | |
| sort | Used by table for column sorting |
:white_check_mark: | (see table demo) | Docs | Usage |
| table | :white_check_mark: | Demo | Docs | Usage | |
| tabs | |||||
| toggle | :white_check_mark: | Demo | Docs | ||
| tooltip | :white_check_mark: | Demo | Docs |
:books: Pipes Documentation
:circus_tent: Pipes Demo
| Pipe | Notes | Status |
|---|---|---|
tsDate |
short , medium , extended , timestamp |
:white_check_mark: |
tsRoundNumber |
Round a number to a specific precision | :white_check_mark: |
tsSentenceCase |
Convert string casing to sentence-case | :white_check_mark: |
tsTimeAgo |
Human-readable time span | :white_check_mark: |
tsTitleCase |
Title Case A String | :white_check_mark: |
| Feature | Notes | Status | Demo | Docs | Usage |
|---|---|---|---|---|---|
| Validators | Expose custom validation methods for reactive forms | :white_check_mark: | Demo | Docs | Usage |
| Name | Purpose |
|---|---|
creditCard |
A credit card number must be valid |
email |
An email address must be valid |
equalToControl |
A control's value must be equal to another control's value |
greaterThan |
A number must be greater than another value |
greaterThanOrEqual |
A number must be greater than or equal to another value |
lessThan |
A number must be less than another value |
lessThanOrEqual |
A number must be less than or equal to another value |
lowercase |
A value must contain a minimum amount of lowercase characters |
minDate |
A date must be after a minimum date |
maxDate |
A date must be before a maximum date |
password |
A password must meet certain requirements |
url |
A URL must be valid |
| Feature | Notes | Status | Demo | Docs | Usage |
|---|---|---|---|---|---|
TS_SPACING |
Expose our spacing sizes in TypeScript | :white_check_mark: | Demo |
| Feature | Notes | Status | Docs |
|---|---|---|---|
| animation | :hammer: | ||
| assets | :hammer: | ||
| breakpoints | :white_check_mark: | Docs | |
| colors | :white_check_mark: | Docs | |
| cursors | :white_check_mark: | Docs | |
| layout | :white_check_mark: | Docs | |
| shadows | :white_check_mark: | Docs | |
| spacing | :white_check_mark: | Docs | |
| typography | :white_check_mark: | Docs | |
| z-index | :white_check_mark: | Docs |
Install the library and required dependencies:
$ yarn add @terminus/ui @terminus/ngx-tools<EMAIL_ADDRESS><EMAIL_ADDRESS>To use the global styles, import the CSS file into your stylesheets:
@import<EMAIL_ADDRESS>To use the provided SCSS helper methods/variables/mixins, import the helpers file from @terminus/ui
:
@import '~@terminus/ui/helpers'
View the contribution documentation and the development documentation.
Thanks goes to these wonderful people (emoji key):
Benjamin Charity 💻 📖 ⚠ 🎨 🤔 👀 🔧 |
coreyterminator 💻 |
Wendy 🐛 💻 |
Brian Malinconico 🐛 🤔 |
David Harkness 💻 |
kal93 🐛 |
divyameher 🐛 |
|---|---|---|---|---|---|---|
Devon Peet 🎨 🤔 |
dean jones 💻 |
This project follows the all-contributors specification. Contributions of any kind welcome!


Zed Career Pointer
Home
Universities
Meet Professionals
Help
Username
Math
95
English
95
Recommended Courses


---
author:
display_name: JP
email<EMAIL_ADDRESS>tags:
- geocoding
- overview
date: 2012-04-11 16:47:23 -0600
title: Address Overview
categories: []
---
{% include table_overview.html name="Addressing" %}
| Address Points |
GIS Data Layer |
UGRC, Local Governments |
Address point locations in Utah. |
| Address System Quadrants |
GIS Data Layer |
UGRC |
Polygons that depict the four quadrants of each address system in Utah. |
| Utah Local Addressing System (Address Grids)
Information |
Address Coordinate Descriptions |
UGRC |
Text that describes the address coordinate systems in Utah. |
| UGRC API for Geocoding |
Geocoding API |
UGRC |
The foundational service for all Utah geocoding and query access to the SGID. |
| Official UGRC API Client for Geocoding |
Cross-Platform Desktop Geocoding Application |
UGRC |
The recommended client for geocoding Utah addresses. |
| Utah ArcGIS Geocoding Toolbox |
Geocoding Toolbox |
UGRC |
Geocoding toolbox client for ArcGIS Desktop and Pro. |


Graph
Extends:
A Graph Box allow for Plot elements to be displayed in the box using a different scale to the main axis in the world. A Graph object is created by calling the method Box.addGraph on the parent Box.
Constructor Summary
| Public Constructor | ||
| public |
constructor(box: Box, width: number, height: number, opts: object) |
Member Summary
| Public Members | ||
| public |
Axis object used to draw the graph axis. |
|
| public |
Array that stores the position of the axis. |
|
| public |
Sets the parent box where te Graph will be placed. |
|
| public |
Context of the cavas where the Graph is drawn. |
|
| public |
Sets the height of the Graph in pixels. |
|
| public |
Flag for enabling the display of the plot's legend. Usually turned on when more than one plot is being displayed. Default value is false. |
|
| public |
Sets the padding in pixels that the graph has. |
|
| public |
Array containing the plots displayed on the graph. |
|
| public |
Scale object for the -x axis. |
|
| public |
Scale object for the -y axis. |
|
| public |
Sets the title for the graph. |
|
| public |
Sets the width of the Graph in pixels. |
|
| public |
Sets the label for the -x axis. |
|
| public |
Sets the label for the -y axis. |
Method Summary
| Public Methods | ||
| public |
Adds a Plot to the graph. |
|
| public |
Controls if the legens are displayed. |
|
| public |
setAxisPosition(xPos: string, yPos: string) Sets the origin of the axis. |
|
| public |
setDimensions(width: number, height: number) Change the dimensions of the Graph object. |
|
| public |
Sets the labels for the graph. |
|
| public |
setPadding(top: number, right: number, bottom: number, left: number) Sets the padding of the Graph object. |
| Private Methods | ||
| private |
debug() Debug function used to draw a box around the dimensions of the Graph object. |
|
| private |
draw() Draw function for the Graph and Plots called by the parent box. |
|
| private |
Calculates the dimensions of the axis based on the total Graph dimensions and the padding set. |
Inherited Summary
| From class WorldElement | ||
| public |
Sets the color in HEX format of the element. |
|
| public |
Sets the cursor style when the mouse is over the element. |
|
| public |
Flag for enabling or diabling this element. |
|
| public |
Flag set when the element is being dragged around. |
|
| public |
Sets the font of the element. |
|
| public |
Sets the current height of the element. |
|
| public |
Flag for allowing the element to be dragged around. |
|
| public |
Sets the move style of the element. |
|
| public |
Flag set when the mouse is over the element. |
|
| public |
Sets a callback function for when the element is dragged around. |
|
| public |
Sets the position of the element. |
|
| public |
Sets the renderer used for the element. |
|
| public |
Sets the rotation of the element. |
|
| public |
A copy of the z-index value is stored here. |
|
| public |
Sets the drawing scale of the element. |
|
| public |
Flag for determining if the element will be a top-most element when dragged around. |
|
| public |
Flag used to determine if an object is a child of WorldElement. |
|
| public |
Sets the current width of the element. |
|
| public |
Sets the world where this element is found. |
|
| public |
Sets the z-index of the element. |
|
| public |
addPosition(x: number, y: number) Adds the provided coordinates to the position. |
|
| public |
Sets if the element is draggable. |
|
| public |
Function called when the mouse moves to check if the pointer is over the element. |
|
| public |
Sets the color in HEX format of the element. |
|
| public |
setPosition(x: number, y: number) Sets the position of the element. |
|
| public |
Sets the scale of the element. |
|
| public |
Sets the z-index of the element. |
|
| private |
resize() Function called when the canvas gets resized. |
|
| private |
Sets the world object where element will be drawn. |
|
| private |
Sets the element as a topmost element. |
Public Constructors
public constructor(box: Box, width: number, height: number, opts: object) source
Override:
WorldElement#constructorParams:
| Name | Type | Attribute | Description |
| box | Box | Parent box. |
|
| width | number | Width of the graph in pixels. |
|
| height | number | Height of the graph in pixels. |
|
| opts | object |
|
Object that contains valid Graph properties with values. Their values will be assigned at the end of the constructor. If an invalid property is passed then the value will be ignored. |
Public Members
public axisPosition: string[] source
Array that stores the position of the axis. See Graph.setAxisPosition for more details. Default value is ["left", "bottom"].
public ctx: object source
Context of the cavas where the Graph is drawn. The canvas is saved in order for the plots to be able to find it, since the parent of the Plot is this object.
public legends_enabled: boolean source
Flag for enabling the display of the plot's legend. Usually turned on when more than one plot is being displayed. Default value is false.
public padding: object source
Sets the padding in pixels that the graph has. The padding is used to display the title, x label, and y label. The padding is then adjusted depending on the value of Graph.legends_enabled to accomodate the display of the legends.
Public Methods
public addPlot(opts: object): Plot source
Adds a Plot to the graph.
Params:
| Name | Type | Attribute | Description |
| opts | object | Object that contains valid Plot properties with values. Their values will be assigned at the end of the constructor. If an invalid property is passed then the value will be ignored. |
public legends(state: boolean) source
Controls if the legens are displayed. If true, then the padding is adjusted to make space for it.
Params:
| Name | Type | Attribute | Description |
| state | boolean | Desired state for the legends. |
public setAxisPosition(xPos: string, yPos: string) source
Sets the origin of the axis. The -x axis has the following position options: center, right, left. The -y axis has the following position options: center, top, bottom.
public setDimensions(width: number, height: number) source
Change the dimensions of the Graph object.
public setLabels(title: string, xlabel: string, ylabel: string) source
Sets the labels for the graph. Usually the graph title is left blank, and the box's title is used as title.
public setPadding(top: number, right: number, bottom: number, left: number) source
Sets the padding of the Graph object.
Private Methods
private debug() source
Debug function used to draw a box around the dimensions of the Graph object. It also draws boxes around the padding sections with different fill colors in order to distinguish between them. The boxes are only drawn if the parent box has the flag Box.debug enabled.
private setAxisDimensions() source
Calculates the dimensions of the axis based on the total Graph dimensions and the padding set. Then the calculated dimensions are set to the axis.


Distributions¶
PyTorch Distributions¶
Most distributions in Pyfo are thin wrappers around PyTorch distributions.
For details on the PyTorch distribution interface, see
torch.distributions.distribution.Distribution
.
For differences between the Pfro and PyTorch interfaces, see
Distribution
.
The ..distributions
package contains parameterizable probability ..distributions
and sampling functions ..distributions.
Policy gradient methods can be implemented using the
log_prob()
method, when the probability
density function is differentiable with respect to its parameters ..distributions. A basic
method is the REINFORCE rule:
..distributions. ..distributions. math:
\Delta\theta = \alpha r \frac{\partial\log p(a|\pi^\theta(s))}{\partial\theta}
where \(\theta\) are the parameters, \(\alpha\) is the learning rate, \(r\) is the reward and \(p(a|\pi^\theta(s))\) is the probability of taking action \(a\) in state \(s\) given policy \(\pi^\theta\) ..distributions.
In practice we would sample an action from the output of a network, apply this
action in an environment, and then use log_prob
to construct an equivalent
loss function ..distributions. Note that we use a negative because optimisers use gradient
descent, whilst the rule above assumes gradient ascent ..distributions. With a categorical
policy, the code for implementing REINFORCE would be as follows:
probs = policy_network(state)
# NOTE: this is equivalent to what used to be called multinomial
m = Categorical(probs)
action = m ..distributions.sample()
next_state, reward = env ..distributions.step(action)
loss = -m ..distributions.log_prob(action) * reward
loss ..distributions.backward()
Pyfo Distributions¶
Exponential¶
-
class
Exponential
(rate, transformed=False)[source]¶ Bases:
pyfo.distributions.distribution_wrapper.TorchDistribution
Creates a Exponential distribution parameterized by rate.
Example:
>>> m = Exponential(torch.Tensor([1.0])) >>> m.sample() # Exponential distributed with rate=1 0.1046 [torch.FloatTensor of size 1]
- Parameters:
- rate (float or Tensor or Variable): rate = 1 / scale of the distribution
Binomial¶
-
class
Binomial
(total_count=1, probs=None, logits=None)[source]¶ Bases:
pyfo.distributions.distribution_wrapper.TorchDistribution
Creates a Binomial distribution parameterized by total_count and either probs or logits (but not both).
- Requires a single shared total_count for all parameters and samples.
Example:
>>> m = Binomial(100, torch.Tensor([0 , .2, .8, 1])) >>> x = m.sample() 0 22 71 100 [torch.FloatTensor of size 4]]
- Args:
- total_count (int): number of Bernoulli trials probs (Tensor or Variable): Event probabilities logits (Tensor or Variable): Event log-odds


ESPN’s Paul Finebaum Makes His Pick For Ohio State-Penn State
by Andrew HolleranThe biggest game on college football’s Week 13 slate is taking place in Columbus, Ohio. The undefeated Ohio State Buckeyes are hosting Penn State at Ohio Stadium.
Today’s contest is essentially a Big Ten Championship Game play-in game. Ohio State clinches the Big Ten East with a win, while Penn State would just need to beat Rutgers next week (which is a virtual lock).
Ohio State enters today’s game as a sizable favorite.
ESPN college football analyst Paul Finebaum made his pick for the game.
The SEC guru is taking Ohio State to beat Penn State today, he said on SportsCenter. The Buckeyes will move to 11-0 with a win over the Nittany Lions.
Ohio State will have Chase Young back for this afternoon’s contest. He appears to be ready to go.
Ohio State and Penn State will kick off at 12 p.m. E.T.
The game will be on FOX.


Advanced Heap Exploitation: 0CTF 2015 'freenote' writeup
freenote was a pwnable worth 400 points during 0CTF 2015.
We’re provided with a binary as well as the IP address and port of the target server. Here’s an excerpt from running the binary:
$ ./freenote
== 0ops Free Note ==
1. List Note
2. New Note
3. Edit Note
4. Delete Note
5. Exit
====================
Your choice: 2
Length of new note: 10
Enter your note: AAAAAAAAA
Done.
== 0ops Free Note ==
1. List Note
2. New Note
3. Edit Note
4. Delete Note
5. Exit
====================
Your choice: 3
Note number: 0
Length of note: 15
Enter your note: BBBBBBBBBBBBBB
Done.
== 0ops Free Note ==
1. List Note
2. New Note
3. Edit Note
4. Delete Note
5. Exit
====================
Your choice: 1
0. BBBBBBBBBBBBBB
== 0ops Free Note ==
1. List Note
2. New Note
3. Edit Note
4. Delete Note
5. Exit
====================
Your choice: 5
Bye
Reversing + Bug Discovery
Reverse engineering the binary is fairly simple. Here are the key points:
- All notes are stored on the heap, chunk sizes are rounded up to the next multiple of 0x80 bytes
- There’s a table storing the pointers to the notes as well as their size and a flag indicating whether they are currently in use
- The table can store up to 256 notes and is also allocated on the heap during program initialization
- Upon deleting a note the corresponding chunk is freed and the in_use flag is cleared in the table
The bug is also fairly simple to discover: The delete_note function never checks if the note that is to be deleted is actually in use. With this we can delete a note twice, resulting in a controlled double free condition.
The heap of the target process will roughly look like this:
+----------------------------------------------+----------+----------+--------
| Table | Note 1 | Note 2 | Unused
| n | m | note1 entry | note2 entry | ... | | |
+----------------------------------------------+----------+----------+--------
Where n indicates the number of available slots in the table (256) and m holds the number of used slots (two in the above example).
Heap Basics
Glibc malloc manages heap chunks using the structure shown below.
struct malloc_chunk {
INTERNAL_SIZE_T prev_size; /* Size of previous chunk (if free). */
INTERNAL_SIZE_T size; /* Size in bytes, including overhead. */
struct malloc_chunk* fd; /* double links -- used only if free. */
struct malloc_chunk* bk;
/* Only used for large blocks: pointer to next larger size. */
struct malloc_chunk* fd_nextsize; /* double links -- used only if free. */
struct malloc_chunk* bk_nextsize;
};
The pointer returned to the client points to ‘fd’ as the two pointers, fd and bk, are only used when the chunk is free. Then they form a doubly linked list of free chunks. Since chunks sizes are always even numbers, the LSB of the size field is not used. It is thus used to indicate whether the previous chunk is in use. This allows for some elegant heap managment, I encourage you to read through the malloc implementation in glibc/malloc/malloc.c if you’re interested in this.
For the sake of this post it suffices to know that a malloc() operation returns the first free chunk for the appropriate size and unlinks it from the freelist. An unlink operation basically performs
chunk->bk->fd = chunk->fd;
chunk->fd->bk = chunk->bk;
A free() on the other hand performs roughly the following operations:
- Some basic consistency checks of the size field (i.e. size >= min_size and size <= max_size)
- Make sure there is a valid chunk following the current chunk and that the current chunk is marked as in use (next_chunk->size & 0x1 == 1)
- Make sure that the current chunk is not at the top of the corresponding freelist (indicating a double free). Note that malloc does not traverse the whole freelist (performance > security), so if the same chunk is already somewhere else in the freelist, malloc will not notice it and happily free the chunk again
- Check if the next chunk or the previous chunk are also free
- If so, coalescate the current chunk with these, unlinking the other chunks first
- Link the current chunk into the corresponding freelist by setting the FD and BK pointers
To mitigate exploitation of the unlink mechanism (which basically results in an arbitrary write when controlling both pointers, see the code above), glibc implements what is called “safe unlinking”. Basically the idea is that if FD and BK are valid pointers, then the chunk they point to will point back to the current chunk.
Chunk 1 Chunk 2
+---------------+ +---------------+
| | | |
| fd ---------------->| fd --------->
| | | |
<-------- bk |<--------------- bk |
| | | |
+---------------+ +---------------+
Here second_chunk->bk->fd points back to itself. This is what glibc verifies before performing the actual unlink.
Here’s the corresponding code from glibc
#define unlink(P, BK, FD) {
FD = P->fd;
BK = P->bk;
if (__builtin_expect (FD->bk != P || BK->fd != P, 0))
malloc_printerr (check_action, "corrupted double-linked list", P);
else {
// unlink
FD->bk = BK;
BK->fd = FD;
if (!in_smallbin_range (P->size)
&& __builtin_expect (P->fd_nextsize != NULL, 0)) {
/* not the case */
/* ... */
}
}
}
While this mechanism is pretty effective, there are still ways to exploit the unlink mechanism as this post will show.
Heap Exploitation
One way to exploit a double free condition is to turn it into a UAF: at first allocate some object and free it for the first time. Then allocate another object of approximately the same size (and preferably containing some function pointers) on top of it. Free the first object again (thus freeing the second one which is still in use by the application) and allocate a third object on top of it that allows us to control parts of the underlying second object. The trigger e.g. a function call on the second object. However, in our case there was only one type of heap object that could be allocated by the user (a note), thus preventing this scenario.
With this we are left with manipulating chunk metadata to turn our double free into something more powerful, like an arbitrary write. First, however, we need a primitive to control the chunk metadata of a chunk we are going to free. We can do this as follows:
- Allocate 2 notes, note1 and note2
- Free both notes
- Allocate a third note of size len(note1) + len(note2) that will be placed on top of the two notes
- Fill its content in a way that builds a fake chunk at the position of the former note2
- Free note2 again
So
+------------------------------+------------------------------+
| Chunk 1 | Chunk 2 |
+------------------------------+------------------------------+
0x60000 0x60080
becomes
+-------------------------------------------------------------+
| Chunk 3 |
+-------------------------------------------------------------+
0x60000 0x60080
And chunk 2 is now fully controlled and can be freed again.
There are a couple of ways to turn heap memory corruption into an arbitrary write and thus RCE. Sometimes it is possible to create a fake chunk, for example in the .bss of the binary, then allocate that fake chunk and thus be able to corrupt data structures there (e.g. the GOT). Example. There are a couple of conditions that have to be met for such an attack to be successful though which were not met in our case.
Another way would be to somehow free the chunk holding the table data structure, then allocate a note there and overwrite a second note pointer to point into the GOT. While it is possible to set the prev_size of chunk2 above in such a way that it points to the table chunk and then free it, malloc will refuse to coalescate the two chunks as the table chunk is currently in use (there are no valid fd and bk pointers).
So, what else can we do? Remember the check for safe unlinking: “FD->bk != P || BK->fd != P”. Basically we will only be able to unlink a chunk if we can find one (or two) pointer(s), pointing to that chunk. Well, there are pointers to the notes in the table, right? So what if we set FD and BK of a chunk to point back into the table? When unlinking that chunk, malloc will do
FD->bk = BK;
BK->fd = FD;
bk points into the table, fd points into the table, resulting in the table entry pointing to itself after a sucessful unlink! With this we are then able to overwrite the following entries in the table (by writing to the manipuated note), giving us an arbitrary read and write primitive.
There’s a little catch though, the pointers in the note table are “client” pointers while malloc expects internal pointers. The difference is that client pointers point to the first usable address of a chunk (and thus to the address of the FD member) while malloc pointers point to the beginning of the chunk. The two are 16 bytes apart. To solve this we can either create two notes, 16 bytes apart (we will need some heap metadata corruption for this as the notes are only allocated in multiples of 0x80) or just do the following:
- Allocate 3 chunks
- Free the second and the third and allocate a fourth one on top of the two
- Overwrite what was previously chunk 3 and change the prev_size so that it points to the beginning of the controlled data in chunk 1
- Create a fake chunk in chunk 1, set FD and BK to point back into the note table
At this point we have what looks like a valid free chunk to malloc in chunk 1:
+--------------------------+--------------------------+--------------------------+
| Chunk 1 | Chunk 2 | Chunk 3 |
+--------------------------+--------------------------+--------------------------+
0x60000 0x60080 0x60100
+--------------------------+-----------------------------------------------------+
| Chunk 1 | Chunk 4 |
+--------------------------+-----------------------------------------------------+
0x60000 0x60080 0x60100
+--------------------------+-----------------------------------------------------+
| Chunk 1 | Chunk 4 |
| Fake chunk, FD and BK | prev_size points to the |
| point into the table | fake chunk in Chunk 1 |
+--------------------------+-----------------------------------------------------+
0x60000 0x60080 0x60100
Now freeing chunk 3 again will cause malloc to coalescate it whith the fake chunk set up in chunk 1. Since coalescing involves unlinking the previous chunk, we get our unlink primitive and the table entry will afterwards point to itself. From there its easy going, point a note into the GOT, read a pointer from there and overwrite e.g. atoi with the address of system. Game over :)
The GOT is writable and at a static address, but even if the binary was compiled as PIE we could bypass that as we can leak a libc address (see below) from which the binary will be at a static offset [ref].
For the above attack to work we will have to know the address of the note table in memory. Using our first primitive, leaking a heap address is fairly simple though:
- Allocate 4 chunks.
- Free chunk 3 and chunk 1 (in that order, so that malloc writes the two pointers into chunk 1).
- Allocate another chunk of size 1 (or 8). This chunk will be placed where chunk 1 used to be and where its FD and BK pointers still are, with the BK pointer pointing to chunk 3.
- Print the notes, since this is a %s print, we can leak the FD (or BK if chosen size in step 3 was 8) pointer of chunk 1 which in our case points to chunk 3 (heap memory)!
This same technique can be used to leak a libc address (the head of the freelist is in the .bss of the libc). Simply follow the same steps, but now it suffices to allocate chunks 1 and 2 and free the first.
Putting the final exploit together
At this point we are ready for the final part, putting the exploit together. The exploit contains five steps:
- Leak the libc address with the technique described above.
- Leak a pointer into the heap, again as described already. This address is needed to calculate the position of the note table. You will have to calculate the offset beforehand, it will always be the same.
- Create a fake chunk containing pointers into the note table. Manipulate the following chunks prev_size in such a way that it points to our fake chunk. Free the second chunk, it will now write the pointers to the note table inside the note table: effectively replacing the pointer to our first chunk with a pointer to the note table itself.
- With one of the note pointers actually pointing inside the note table now, overwrite the note table: Set the pointer of one of the notes to a function in the GOT. We chose to overwrite printf@GOT. Also set the “valid” flag for this note and its length to 8, you don’t want to completely destroy the GOT.
- Edit the note from step 3. This will overwrite the printf@GOT pointer. We can write a specific address inside the libc which directly spawns /bin/sh when we jump to it (from [Dragon’s notes on CTF]). The exact address can be calculated from the leaked libc address in step 1 and an offset (which can be looked up since the libc version was given).
The exploit in action:
[+] libc @ 0x7fc0c322c7b8
[+] heap @ 0x167de50
[+] Exploiting double free
[+] Overwriting note table
[+] Overwriting printf@GOT
[+] Shell ready:
id
uid=1001(freenote) gid=1001(freenote) groups=1001(freenote)
cat /home/freenote/flag
0ctf{freenote_use_free_to_get_flag}
The full exploit code can be found here.


@import play.api.Play.current @import play.api.i18n.Messages.Implicits._ @import controllers.GameController.UserData @import services.AccuracyStats @(userDataForm: Form[UserData], accuracyStats: List[AccuracyStats])
Small demo using the Play framework and Web Sockets.
@if(accuracyStats != Nil) {| Name | Average |
| @(stats.name) | @(stats.average) |
Click "Start or Join" and then click the archery target as many times as you can, as quickly as you can. Clicks nearer the center of the target produce higher scores. The first player to extend his progress bar across the screen wins.
Please enter your name below.


Three children stolen in Anambra state rescued at the point of sale (Photo)
by Damilola IsmailThree children stolen and trafficked from Enugu-Otu village, Anambra state have been rescued at the point of sale.
Following intelligence report Police detectives attached to Ogidi Division arrested two female suspects in Nkpor, Anambra State while they were attempting to sell three children they had stolen.
They were arrested on 22/11/2019 at about 1:30pm with three kids,(two boys and a girl ) whose age ranges between 1 and 5 years respectively while negotiating on how to sell the children.
Follow us on Facebook – @Lailasnews; Twitter – @LailaIjeoma for updates


Concrete implementation of an INetworkNode.
More...
|
| | NetworkNode (uint id, NodeType nodeType, int activationFnId) |
| | Constructs with the provided node ID, type and activation function ID. More...
|
| |
| | NetworkNode (uint id, NodeType nodeType, int activationFnId, double[] auxState) |
| | Constructs with the provided node ID, type, activation function ID and auxiliary state data. More...
|
| |
Concrete implementation of an INetworkNode.
◆ NetworkNode() [1/2]
| SharpNeat.Network.NetworkNode.NetworkNode |
( |
uint |
id, |
|
|
NodeType |
nodeType, |
|
|
int |
activationFnId |
|
) |
| |
Constructs with the provided node ID, type and activation function ID.
◆ NetworkNode() [2/2]
| SharpNeat.Network.NetworkNode.NetworkNode |
( |
uint |
id, |
|
|
NodeType |
nodeType, |
|
|
int |
activationFnId, |
|
|
double[] |
auxState |
|
) |
| |
Constructs with the provided node ID, type, activation function ID and auxiliary state data.
◆ ActivationFnId
| int SharpNeat.Network.NetworkNode.ActivationFnId |
|
get |
◆ AuxState
| double [] SharpNeat.Network.NetworkNode.AuxState |
|
get |
Optional auxiliary node state. Null if no aux state is present. Note. Radial Basis Function center and epsilon values are stored here.
◆ Id
| uint SharpNeat.Network.NetworkNode.Id |
|
get |
Gets the node's unique ID.
◆ NodeType
| NodeType SharpNeat.Network.NetworkNode.NodeType |
|
get |
The documentation for this class was generated from the following file:
- src/SharpNeatLib/Network/NetworkNode.cs


Here at Resume Hackers, we like things done the easy way. That's why we've built this easy to use platform to generate the resume of your dreams.  And that's a guarantee.


MKPASSWD(1) Debian GNU/Linux MKPASSWD(1) NAME mkpasswd - Overfeatured front end to crypt(3) SYNOPSIS mkpasswd PASSWORD SALT DESCRIPTION mkpasswd encrypts the given password with the crypt(3) libc function using the given salt. OPTIONS -S, --salt=STRING Use the STRING as salt. It must not contain prefixes such as $1$. -R, --rounds=NUMBER Use NUMBER rounds. This argument is ignored if the method chosen does not support variable rounds. For the OpenBSD Blowfish method this is the logarithm of the number of rounds. -m, --method=TYPE Compute the password using the TYPE method. If TYPE is help then the available methods are printed. -5 Like --method=md5. -P, --password-fd=NUM Read the password from file descriptor NUM instead of using get‐ pass(3). If the file descriptor is not connected to a tty then no other message than the hashed password is printed on stdout. -s, --stdin Like --password-fd=0. ENVIRONMENT MKPASSWD_OPTIONS A list of options which will be evalued before the ones specified on the command line. BUGS If the --stdin option is used, passwords containing some control charac‐ ters may not be read correctly. This programs suffers of a bad case of featuritis. SEE ALSO passwd(1), passwd(5), crypt(3), getpass(3) AUTHOR mkpasswd and this man page were written by Marco d'Itri<EMAIL_ADDRESS>and are licensed under the terms of the GNU General Public License, version 2 or higher. Marco d'Itri 21 March 2008 MKPASSWD(1)


|
|
virtual bool | AddPath (const Path &pg, PolyType PolyTyp, bool Closed) |
| |
|
bool | AddPaths (const Paths &ppg, PolyType PolyTyp, bool Closed) |
| |
|
virtual void | Clear () |
| |
|
IntRect | GetBounds () |
| |
|
bool | PreserveCollinear () |
| |
|
void | PreserveCollinear (bool value) |
| |
|
|
typedef std::vector< LocalMinimum > | MinimaList |
| |
|
typedef std::priority_queue< cInt > | ScanbeamList |
| |
|
|
void | DisposeLocalMinimaList () |
| |
|
TEdge * | AddBoundsToLML (TEdge *e, bool IsClosed) |
| |
|
virtual void | Reset () |
| |
|
TEdge * | ProcessBound (TEdge *E, bool IsClockwise) |
| |
|
void | InsertScanbeam (const cInt Y) |
| |
|
bool | PopScanbeam (cInt &Y) |
| |
|
bool | LocalMinimaPending () |
| |
|
bool | PopLocalMinima (cInt Y, const LocalMinimum *&locMin) |
| |
|
OutRec * | CreateOutRec () |
| |
|
void | DisposeAllOutRecs () |
| |
|
void | DisposeOutRec (PolyOutList::size_type index) |
| |
|
void | SwapPositionsInAEL (TEdge *edge1, TEdge *edge2) |
| |
|
void | DeleteFromAEL (TEdge *e) |
| |
|
void | UpdateEdgeIntoAEL (TEdge *&e) |
| |
|
|
MinimaList::iterator | m_CurrentLM |
| |
|
MinimaList | m_MinimaList |
| |
|
bool | m_UseFullRange |
| |
|
EdgeList | m_edges |
| |
|
bool | m_PreserveCollinear |
| |
|
bool | m_HasOpenPaths |
| |
|
PolyOutList | m_PolyOuts |
| |
|
TEdge * | m_ActiveEdges |
| |
|
ScanbeamList | m_Scanbeam |
| |
The documentation for this class was generated from the following files:


XERAC AC- aluminum chloride liquid
Person and Covey
Disclaimer: Most OTC drugs are not reviewed and approved by FDA, however they may be marketed if they comply with applicable regulations and policies. FDA has not evaluated whether this product complies.
OTC - PURPOSE SECTION
For topical application as an antiperspirant (anhidrotic).
INDICATIONS & USAGE SECTION
For patients suffering from hyperhidrosis, or patients whose jobs or sports activities cause excessive sweating that exacerbates other skin problems.
DOSAGE & ADMINISTRATION SECTION
Xerac AC when applied to the underarms, should be applied to absolutely dry skin. Only apply Xerac AC before bedtime, since medication should be kept on the skin for 6-8 hours. To reduce irritation, let the alcohol evaporate, leaving a thin film of antiperspirant on the skin. Wear a T-shirt, while sleeping to prevent medication from being rubbed off on the bed linens. Do not apply Xerac AC to broken, irritated or recently shaved skin. Wash the treated area next morning with soap and water. Do not apply other deodorants or antiperspirants while using Xerac AC.
OTC - KEEP OUT OF REACH OF CHILDREN SECTION
Yes. If swallowed, get medical help or contact a Poison Control Center right away.
WARNINGS SECTION
For external use only. Avoid contact with eyes. If contact occurs, wash eyes thoroughly with water. If irritation or sensitization occurs, discontinue use or contact a physician. Xerac AC may be harmful to cotton fibers and certain metals.
OTC - ACTIVE INGREDIENT SECTION
Aluminum Chloride Hexahydrate
INACTIVE INGREDIENT SECTION
Anhydrous ethanol
PACKAGE LABEL.PRINCIPAL DISPLAY PANEL
Xerac 35cc.jpg
PACKAGE LABEL.PRINCIPAL DISPLAY PANEL
Xerac 60cc.jpg


Welcome to my website! I am a Ph.D. student in Dr. Nathan Kraft's Plant Community Ecology Lab in the Department of Ecology and Evolutionary Biology at UCLA. I received my B.S. in Biology at Brown University, where I was a member of Dr. Dov Sax's Conservation Science Lab. My research interests are broadly in plant community ecology and biogeography. Some topics that I am interested in exploring include:
- The relative importance of different fundamental ecological processes (e.g. niche selection, ecological drift, dispersal) in determining community dynamics along ecological gradients and across spatial scales.
- How local coexistence mechanisms and regional community assembly processes can interact to jointly influence community structure and dynamics.
- The utility of functional or demographic information for better understanding species' large-scale environmental tolerances (i.e. climatic niches) and geographic distributions.


If the application X doesn't start, the possible causes could be: 1. Maven is not installed. 2. Not enough disk space. 3. Not enough memory.


Please complete your business profile below. Your information will only be saved once you click the Save button at the end of the page.
|
|
Update your BCeID information |
Your Legal Business Name and Business Number are imported from BCeID. If there is an error or change in this information, you must contact BCeID to correct it.
All other information can be changed on this Business Profile page.
The Security Programs Division will collect your personal information for the purpose of fulfilling the requirements of the Pill Press and Related Equipment Control Act and associated regulations in Pill Press registration, compliance and enforcement matters in accordance with Sections 26 (a) and (c) of the Freedom of Information and Protection of Privacy Act. Should you have any questions about the collection, use, or disclosure of personal information, please contact the Senior Policy Analyst, Security Programs Division via mail to PO Box 9217 Stn Prov Govt Victoria, BC V8W 9J1; email to<EMAIL_ADDRESS>or by telephone at 1-855-587-0185.


---
layout: archive
title: Lean Prover Zulip Chat Archive
permalink: 113488general/42049ABAB.html
---
The archive URL format has changed. Please find this page at:
https://leanprover-community.github.io/archive/stream/113488-general/topic/.C2.AC(A.20.E2.88.A7.20B).20.E<IP_ADDRESS>.C2.AC.20A.20.E2.88.A8.20.C2.AC.20B.html


--- layout: post title: 'Case Study: Migrating Netty 3 to Netty 4 APIs' date: 2014-08-12 17:29:10.000000000 -07:00 categories: [] tags: [] status: draft type: post published: false ---
In this blog post I walk through some of the issues I encountered when upgrading a customer socket server with a custom socket protocol from Netty 3 to Netty 4 high performance Java networking library.
Firstly I recommend you read the guide for the basics of Netty 4.
The following are some of the more obvious areas of difference from Netty 3:
References
[1] nowucca/shurly@1d6be43 for a commit that shows changes required to upgrade spanning a server, client, encoders and decoders.