| Home >> All |
| | uk.ac.* (402) | | uk.co.* (1) | | uk.ltd.* (64) | | uk.org.* (16) |
Package Samples:
uk.ac.soton.itinnovation.taverna.enactor.broker.test: Provides classes associated with taking an XScufl workflow definition, converting it to the myGrid enactor conceptual model and submitting it to the core enactor module.
uk.ac.soton.itinnovation.taverna.enactor.entities.test: Provides all the Taverna specific tasks that are executable by the myGrid workflow enactor core.
uk.ac.warwick.coresoft
uk.ac.warwick.coresoft.cache
uk.ac.warwick.dcs.cobalt.boss
uk.ac.warwick.dcs.cobalt.boss.client
uk.ac.warwick.dcs.cobalt.boss.client.staff
uk.ac.warwick.dcs.cobalt.boss.client.student
uk.ac.warwick.dcs.cobalt.boss.errors
uk.ac.warwick.dcs.cobalt.boss.server
uk.ac.warwick.dcs.cobalt.boss.servertest
uk.ac.warwick.dcs.cobalt.boss.testing
uk.ac.warwick.dcs.cobalt.metrics
uk.ac.warwick.dcs.cobalt.security
uk.ac.warwick.dcs.cobalt.settings
uk.ac.warwick.dcs.cobalt.sherlock
uk.ac.warwick.dcs.cobalt.sherlock.freetext
uk.ac.warwick.dcs.cobalt.web.exception
uk.ac.warwick.dcs.cobalt.web.tags
uk.ac.warwick.dcs.cobalt.web.util
Classes:
PulseScheduler: The PulseScheduler is a scheduler that is used when the time accuracy is not of great importance. This will ensure that the scheduled items can be dequeued in pulses. The aim of this type of Scheduler is to allow a large number of items to be enqueued using a large number of threads. The fact that there is a large number of threads means that the Registry will issue a large number of interrupts to dequeuers. The aim of the PulseScheduler is to ensure that the number of thread interrupts issued is kept low. It achives this by ensuring that threads that are enqueuing objects have timeouts that are ...
Scheduler: The Scheduler is used for scheduling arbitrary objects. When arbitrary objects are enqueued into a Scheduler the Scheduler object will guarantee that that object will not be dequeued until its timeout has expired. This guarantees that an object is returned when the dequeue method is invoked. If there are no objects within the Scheduler then the thread that invoked this dequeue method will wait until there is an object to dequeue. If however there is an object within the Scheduler the dequeue method will block the thread until such time as the objects timeout has expired or if another object has ...
CacheReference: This is used so that objects in the Cache can be removed when all references to it are gone. The CacheReference is a special type of reference. Once an object is enqueued into the Cache then that object is wrapped in a CacheReference and scheduled for removal. Once the objects time in the queue has finished then the reference is obtained. The CacheReference is then searched to see if it still holds the cached item. If it does not hold the cached item then that item must have lost all its references because the semantics of the java.lang.ref.SoftReference says that it will release an object for ...
Registry: This is used by the Scheduler to manage the threads that are dequeuing from the Scheduler . This allows threads to be added to an dequeuers list. When a thread is waiting to dequeue an object from the Scheduler it registers itself with the Registry by calling the sleeping method and specifing when the object will wake. This Registry allows threads to be interrupted from a sleeping state. When a thread is waiting on an objects timeout to expire it may be interrupted. The interrupt method is there to allow an enqueuer to say that there is a new object being enqueued which has a timeout that may be ...
GenericComponent: An assessment contains one or more constituent components . Each is either a simple component, coded here as a Problem , or is a set of sub-components, of which some or all must be attempted (a ``multi-component''), It contains the following attributes: the assessment of which the component is a part; a code to identify the component; a maximum mark for the component; The class is subclassed by MultiComponent and by Problem . If the maximum mark for a component disagrees with the mark computed from the constituent components, it is assumed that a scaling will take place. In particular, during the ...
Cache: This is a LRU, Least Recently Used, Cache used to store objects. This ensures that the Cache does not allow too many objects to be cached. This does not account for anything other than the number of lockable regions, i.e. synchronized Least Recently Used lists, and the maximum number of items a region can have before it removes the least recently used objects. When objects are cached they can be cached for a specified number of miliseconds, when this expires then the Cache removes the item, this removal is very accurate to the timeout specified for the object. If no time out is given a default ...
DWRServlet: This is the main servlet that handles all the requests to DWR. It is on the large side because it can't use technologies like JSPs etc since it all needs to be deployed in a single jar file, and while it might be possible to integrate Velocity or similar I think simplicity is more important, and there are only 2 real pages both script heavy in this servlet anyway. There are 5 things to do, in the order that you come across them: The index test page that points at the classes The class test page that lets you execute methods The interface javascript that uses the engine to send requests The engine ...
DefaultProcessor: This is the main servlet that handles all the requests to DWR. It is on the large side because it can't use technologies like JSPs etc since it all needs to be deployed in a single jar file, and while it might be possible to integrate Velocity or similar I think simplicity is more important, and there are only 2 real pages both script heavy in this servlet anyway. There are 5 things to do, in the order that you come across them: The index test page that points at the classes The class test page that lets you execute methods The interface javascript that uses the engine to send requests The engine ...
ProcessKiller: Hack of a background thread to destroy processes that have been left running after automatic tests because they were poorly written. Calls 'ps' to determine which processes need killing, and then uses 'kill' to destroy them. It checks the OS when it starts and should only run on Linux, to fix the problems we have had with the process.destroy() method not killing the children of its process. If Java ever implements a way of killing child processes of a shell, then this should be changed as it's not platform-independent and it relies on a lot of specifics about the ps version used on BOSS. See http://developer.java.sun.com/developer/bugParade/bugs/4770092.html ...
MatchTreeNode: Tree node representing a match. There are three kinds of forms which a node can take: 1. Root node, named after the source directory, other fields will be either empty strings or default value if it's a primitive type. 2. Node representing a pair, named in the form of "filename1 & filename2", other strings fields are empty, the presentage is the sum of percentages of all matches for this pair. 3. Node representing a match, named after the pre-processed version that this match was found in, followed by the line number pairs, percentage & a boolean indicating whether this match is considered to be ...
TokeniseFiles: Runs the files in the source directory through the selected tokenisers. Multiple static parser instances are created in this class, i.e. NoWhite, NoComment, Comment and cplusplus, however, they tend to share the same SimpleCharStream.java class which is generated by Javacc automatically. This class is set to be static by default, in which case the parsers couldn't reinitialise themselves without reinitialise this class. Reinitialisation of this class is not possible as it doesn't have any such methods. One way to solve this problem instead of using non-static parsers is to simply remove ALL 'static' ...
PDFGraphics: This class is our implementation of AWT's Graphics class. It provides a Java standard way of rendering into a PDF Document's Page. Note: This class is abstract, because if it wasn't, this would fail when compiled under Java2. To allow this to compile under JDK1.1.x or Java2, we have two subclasses. The JDK1.1.x class is empty, the other has the additional methods to bring it in line. It consists of four parts: Constructor handling initialisation, and parenting of child instances Graphics implementation, which translates between Java and PDF Extensions containing useful PDF operators Optimizer which ...
SchedulerQueue: This is a SchedulerQueue used to schedule objects enqueued. This queue is a PriorityQueue . It ensures the object with the highest priority value will leave the queue first. This prioritizes the entry into a PriorityQueue so that objects that are removed can be synchronized if there are multiple threads removing from the queue. It is important to note that this SHOULD not cap the prioritys be cause the queue that is being used will only remove objects that are highest in priority at the moment of PriorityQueue.dequeue so if the prioritys are all capped then it becomes impossible to remove some ...
DynamicTreeTableModel: An implementation of TreeTableModel that uses reflection to answer TableModel methods. This works off a handful of values. A TreeNode is used to answer all the TreeModel related methods (similiar to AbstractTreeTableModel and DefaultTreeModel). The column names are specified in the constructor. The values for the columns are dynamically obtained via reflection, you simply provide the method names. The methods used to set a particular value are also specified as an array of method names, a null method name, or null array indicates the column isn't editable. And the class types, used for the TableModel ...
BOSSMailer: Title: BOSS Mailer Description: This class is a wrapper around uk.ac.warwick.dcs.util.Email . You create a BOSS Mailer object with BOSSMailer = new BOSSMailer("bob@customer.com", "A new email", bodyVector, properties) The properties file should contain: mailhost - the hostname of an SMTP server email - who the mail should look like it has come from bcc_address - who the mail should be copied too ( optional ) Copyright: Copyright (c) 2003 University of Warwick Company: University of Warwick
Assessment: A single piece of work for a module, such as a coursework assignment or an exam. It contains the following attributes: the delivered module of which it forms part; a code unique within the delivered module; a descriptive name ; a maximum mark ; a deadline ; a start date and an end date during which the assessment is ``live''; a list of deadline extensions ; a list of markers ; a list of moderators ; a collection of tasks comprising the assessment.
PrintOut: Construct print out evidence for a pair of suspicious submissions. This is a series of documents, their structure is like a linked list. Please refer to MultiDoc's API doc for details. This structure makes it easy to insert a new page into the print out, no matter what form this new page is in. Note: Some of the sections of the print out are commented out because existing bugs in JDK caused them to be printed incorrectly/to generate runtime exceptions. You can find detailed comments in the code where these code are commented out. If you'd like to put them back to use, the order of the sections ...
Marking: Stores markings for a given data set, i.e. which pairs have been marked as suspicious. It stores the indices of these suspicious matches in an linked list. This class handles the savings & loadings of marks. The marking are saved as lines of strings where each line represent a match, these lines are obtained from the output() method in Match class. When loaded, these lines will be stored in a linked list, after the matches is assigned for this object, the generate() method will find out the indices of the matches which have the same string output from the output() method. These indices points to ...
ExampleFileFilter: A convenience implementation of FileFilter that filters out all files except for those type extensions that it knows about. Extensions are of the type ".foo", which is typically found on Windows and Unix boxes, but not on Macinthosh. Case is ignored. Example - create a new filter that filerts out all files but gif and jpg image files: JFileChooser chooser = new JFileChooser(); ExampleFileFilter filter = new ExampleFileFilter( new String{"gif", "jpg"}, "JPEG & GIF Images") chooser.addChoosableFileFilter(filter); chooser.showOpenDialog(this);
SentenceLocation: Holds the locations of Sentence objects within the MyStyledDocument that is displaying them. Basically it is just a convenient way of converting between the coordinate system used by the parser and that used by standard Swing Text Components. In the parser, coordinates are given as a line number and a column number on that line. In text components, the coordinate is simply a number of characters from the start of the document. Title: Sherlock 2000 Description: Plagiarism Detection Software Copyright: Copyright (c) 2002 Company: University of Warwick
SherlockProcessCallback: This interface is implemented by the ProgressWindow and Sherlock, the command line module, to receive exceptions that are thrown by either of the SherlockProcesses, TokeniseFiles or Samelines. Exceptions must be handled in this manner due to the fact that a SherlockProcess is a thread, so they can not simply be thrown in the usual manner. The controlling class can then decide how to handle the situation - it will probably kill the thread. Just prior to calling exceptionThrown, the SherlockProcess will pause itself to wait for further guidance.
MyHashtable: A simple extension to the java.util.Hashtable object which ensures that when Integer objects are key and String objects are the value then no values are overwritten. The put method now searches for the first empty space after the required one. This must be remembered when calling get since get may not return the object you require if it is has been placed somewhere else. Title: Sherlock 2000 Description: Plagiarism Detection Software Copyright: Copyright (c) 2002 Company: University of Warwick
BOSSComponentFrame: Creates an empty internal frame and toolbar and provides abstract methods for filling the frame, toolbar and for initialising and saving data. Also provides functionality and variables common to all BOSS component frames. The following methods need to be implemented: protected void createInfoPanel() protected void createToolBar() protected void initialiseData() protected boolean hasChanged() protected void saveData()
Comparison: Class which carries out the business of comparing document objects to one another in order to detect plagiarism. This class is called by the Samelines class in Sherlock during a detection run and implements a different detection algorithm tailored to natural language plagiarism detection. Title: Sherlock 2000 Description: Plagiarism Detection Software Copyright: Copyright (c) 2002 Company: University of Warwick
| Home | Contact Us | Privacy Policy | Terms of Service |