All Classes

Class
Description
An IAccumulator that holds an Object as its internal value and who's string representation is the string representation of that value.
Represents an instrument as a name and an integer value
Parses an abc file into IPhrase music structures
Usage:
ABCParser parser = new ABCParser("/data/aMusicFile.abc");
IPhrase phrase = parser.parse();
Cases handled:
- single notes with and without accidentals and naturals with regards to measures
- chords
- dotted notes
- grace notes
- repeats, including first and second repeats.
- triplets
- tuplets
- all headers
- quoted text
- D.C.
Tokenizer for the abc music language.
Singleton utility class that has methods for parsing, reading file content and getting the list of instruments.
Returns a copy of the list where the single integer parameter is added to all elements
Mid-level abstraction of a dispatcher that establishes the ability to hold and manage observers in a thread-safe manner.
Factory that dynamically class loads and instantiates an object of type ReturnT
Command-based implementation of IPhraseVisitor that uses IPhraseVisitorCmds stored in a hash table.
Common aspects of all sequence player implementations.
A abstract mutable IStringLogEntryProcessor class that enables the string formatter in use to be both accessed and changed.
A visitor to an Token that implements ITokVisitor using a dictionary of commands.
A collection of notes that make up a Chord.
Accumulates the values into a list, starting with an empty list.
Returns a copy of the list
Returns the count of the number of elements in the list
An ISeqList that transparently routes the visitor execution to its decoree.
The view for the Visitor Demo system
Dyad<F,​S>
A class that represents a dyad (pair) of elements of possibly different types.
A concrete implementation of IFileContents.
The class is used to implement "Da Capo al fine" or "D.C.
Performs the fold-left (forward accumulation) algorithm using the given IAccumulator The general forward accumulation algorithm would not take an accumulator as a top-level input parameter, instead the accumulator would be hidden inside the algorithm.
Performs the fold-right (reverse accumulation) algorithm using the given IAccumulator.
An abc Header.
A concrete host type
A concrete host type
A concrete host type
An accumulator for use in FoldR and FoldL.
An interface that represents an affine transform drawable image object.
Abstract representation of an entity with an integer width and height.
Top-level abstraction of a Dispatcher which is the Observable in the Observer-Observable Design Pattern without the requirement to set the state before sending a message to the observers.
IDyad<F,​S>
A representation of a pair of objects
A Serializable container for the byte stream of a file.
Interface that represents the abstract host type
Represents the abstract list structure with a hook method to call on the extrinsic behaviors represented as visitors.
Represents an abstract algorithm to be executed by a host IList.
Represents a complete log entry with a log level, code location and a message.
A functional which will convert an ILogEntry into a String representation.
Represents an object that processes a log entry.
Represents a logger object that is the head node of a chain of logger objects.
 
A class that models the mathematical notion of a "predicate", i.e.
The visitor to an ILogicalHost that has cases for the true and false states of the host.
The adapter from the model to the view
The view's adapter to the model
Adapter to the model from the view
Note interface for Notes and collections of Notes.
Abstraction of the dynamic class loading process for a particular type of entity (class or interface).
Top-level abstraction of the Observer in the Observer-Observable Design Pattern.
Top level of a piece of abc music.
Interface for a Phrase visitor.
The command used by APhraseVisitor that is associated with a host or hosts.
Top-level abstraction of a utility to generate various random values.
Interface for sequential lists of IPhrases.
Abstract sequence player to create and play MIDI music sequences.
Command that is used to notify a user that a track has stopped playing.
Top-level abstraction of the generation of sinusoidally varying numerical values.
An abstract log entry processor that converts a log entry into a String that is then displayed, stored, transmitted, etc.
Tokenizer that only returns string tokens.
Abstract factory to produce tokens
Extract and return an appropriate Token from some given source.
Interface for a token visitor.
A command for use in ATokVisitors
Utilities for working with 2-D vectors.
The view to model adapter
The adapter interface to the view from the model
Adapter to the view from the model
An abstract visitor to an IHost object.
Utility class to simplify dealing with key signatures
Usage:
KeySignature keySig = new KeySignature(aKey); // aKey is a string representing a key, e.g.
Accumulates (saves) the last negative number given to it.
Controller for the ListFW demo app
The view for the ListFW demo app
ListFW demo app model
DEVELOPER CODE SHOULD NOT INSTANTIATE THIS CLASS DIRECTLY! USE ILoggerControl TO INSTANTIATE A BASIC ILogger INSTANCE.
Simple display panel for logger output.
The controller for the demo app
An ILogicalHost that represents the logical AND of two ILogicalHosts.
An ILogicalHost that represents the logical NOT of the given ILogicalHost.
An ILogicalHost that represents the logical OR of two ILogicalHosts.
An ILogicalHost that represents the logical XOR of two ILogicalHosts.
Enumeration values for classifying log messages.
Example view class that has the ability to add a LoggerPanel.
The model for the demo
Represents the unique empty list using the singleton pattern.
An empty sequence list.
Represents non-empty lists.
A non-empty ("cons") sequence list.
Basic class representing musical Notes.
A collection of multiple notes ---------------------------------------------- A collection of Notes
Factory that dynamically class loads and instantiates an object of type ReturnT This is a non-recursive object loader that should be used when the fully qualified name of the desired class can be determined BEFORE the object loader is invoked.
An IObjectLoader implementation that will walk through multiple locations, defined by multiple classname prefixes, to load an object of the specified type.
A dispatcher that updates its observers in parallel if possible on multiple threads.
Accumulates the product of the values, starting with a total of 1.
Algo to calculate the product of all the elements in a list of integers.
Concrete implementation of IRandomizer
A basic sequence player to create and play MIDI music sequences.
An advanced sequence player to create and play MIDI music sequences.
Interface that represents a playable entity.
A simple dispatcher that updates its observers sequentially on a single thread.
A utility class that can be used to create smoothly varying sinusoidal numerical data.
Special tokenizer that converts a stream of various types of tokens from StreamTokenizer and converts them into a stream of strings.
Accumulates the sum of the values, starting with a total of 1.
Returns the sum of a list of integers using forward accumulation.
Returns the sum of a list of integers using reverse accumulation.
Multiple Decorator ISeqList where the active decoree (the "target") is toggled (cycled, actually) through all the available decorees.
Represents a token in the language.
Concrete factory to create tokens
Computes a String representation of IList showing a left parenthesis followed by elements of the IList separated by commas, ending with with a right parenthesis.
Helps ToStringAlgo compute the String representation of the rest of the list.
TriConsumer<T,​U,​V>
A Consumer-type function that takes 3 inputs
A musical triplet.
Class that represents a tuplet, a series of notes played in a fraction of their normal total time.
Implementation of IVectorUtil
A visitor that returns a String that says "This is the result from HostX, where HostX is the type of the IHost object executing this visitor.
A visitor that sets the paint cmd in the VisitorDemoModel to a cmd that draws various shapes.
The controller for the Visitor Demo system.
The main model object for the Visitor Demo system.