org.cougaar.util

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Science » Cougaar12_4 » org.cougaar.util 
org.cougaar.util
Java Source File NameTypeComment
Arguments.javaClass A "name=value" parser.

Note that Arguments instances are unmodifiable, like Strings.

Example use:

 Arguments args = new Arguments("x=y, q=one, q=two, z=99");
 String x = args.getString("x");
 assert "y".equals(x);
 int z = args.getInt("z", 1234);
 assert z == 99;
 List<String> q = args.getStrings("q");
 assert q != null && q.size() == 2;
 

The Cougaar component model includes built-in support to invoke an optional "setArguments" method.

ArrayListFoundation.javaClass A copy of java.util.ArrayList, modified so that previously private data members are here declared protected and which does not use iterators to walk itself p> This allows extending classes to have efficient access to the actual data storage elements so that the supported API extensions have first-class access.
ArrayMap.javaClass An implementation of Map that maintains the elements in the order they were added, as opposed to the random order of a HashMap. An ArrayMap is a Map, and can be used exactly like a typical Map.
BackedEnumerator.javaClass An Enumeration which is backed by an Iterator over a copy of an original collection.
BitSet2D.javaClass A two dimensional set of bits.
CallerTracker.javaClass A set of utilities for tracking method invocations by stack.
ChainingIterator.javaClass An Iterator implementation which successively iterates over a list of iterators.
CircularQueue.javaClass Implements a traditional circular queue, except that it will enlarge backing array if it runs out of space. Also implements the Collection API, except for remove methods. This implementation leaves all synchronization to the caller. The implementation is optimized to make add(Object) and Object next() operations as cheap as possible.
CollectionDelegate.javaClass
Collectors.javaClass Collectors is a class of static methods for applying a Thunk to various sorts of collection-like data structures.
ConfigFinder.javaClass ConfigFinder provides utilitites to search for a named file in several specified locations, returning the first location where a file by that name is found.

Files are found and opened by the open() method.

Configuration.javaClass Configuration is a holder of a collection of static configuration utility methods, mostly for use by ConfigFinder et al.
CSVUtility.javaClass
DBConnectionPool.javaClass A database connection manager that creates pools of db connections that can be reused to improve performance.
DBProperties.javaClass This utility extends java.util.Properties by doing parameter substitutions after loading a .q file.
DemoMetalTheme.javaClass Extends DefaultMetalTheme to specify fonts appropriate for the demo UI displays.
DynamicUnaryPredicate.javaInterface DynamicUnaryPredicate marks a UnaryPredicate as testing for mutable features of objects.
Empty.javaClass Holding class for providing singleton collection-like objects.
EmptyEnumeration.javaClass
EmptyIterator.javaClass
Enumerator.javaClass An Enumeration which is backed by an Iterator.
FastString.javaClass A string wrapper which serializes the enclosed string more efficiently...
FilteredEnumeration.javaClass
FilteredIterator.javaClass
Filters.javaClass Filters is a class of static methods for filtering (subsetting) Collections.
FutureResult.javaClass A container that allows one thread to wait for the processing result of a parallel thread.
GC.javaClass A utility for requesting a GC in various ways.
GenericStateModel.javaInterface GenericStateModel interface.
GenericStateModelAdapter.javaClass A full implementation of GenericStateModel.
IdentityHashSet.javaClass Hash set based upon object "==" identity.
INIParser.javaClass Utility for reading MSWindows-style .ini files.
IntrospectionTest.javaClass Class for testing Bean introspection in general and Asset/PG introspection in particular.
IsInstanceOf.javaClass General purpose dynamic 'instanceof' predicate.
KeyedSet.javaClass KeyedSet is a custom collection which looks like a Set, but allows redefinition of the key to use.
LinkedByteOutputStream.javaClass Replacement for ByteArrayOutputStream which grows a linked list of multiple byte[]s instead of a single byte[].

The advantage of this implementation is that it grows in size more efficiently than a single byte[].

LockFlag.javaClass LockFlag class adapted from sample in "Java Threads" -- Scott Oaks and Henry Wong.
LRUCache.javaClass LRUCache is a simple extension of the standard LinkedHashMap to implement a fixed-size, access-ordered LRU Cache.
LRUExpireMap.javaClass An LRUExpireMap is a simple least-recently-used cache that also expires entries based on the system time.

Entries are put in the map with an explicit expiration time.

Mapping.javaInterface
Mappings.javaClass
MDBConfigWriter.javaClass
MEIWriter.javaClass
Memo.javaClass A "memoization" utility - as long as the specified condition object doesn't change, then the result doesn't change.
MinMaxPanel.javaClass
MoreMath.javaClass Additional math functions.
MutableTimeSpan.javaClass
NaturalOrderComparator.javaClass A sorting comparator to sort strings numerically, ie [1, 2, 10], as opposed to [1, 10, 2].
NewTimeSpan.javaInterface
NonOverlappingTimeSpanSet.javaClass A Collection which implements a set of TimeSpan elements which are maintained sorted first by start time and then by end time.
NumericDocument.javaClass
NumericListDocument.javaClass
OptionPane.javaClass This fixes bugs in JOptionPane.showOptionDialog and JOptionPane.showInputDialog that sizes the dialog too small when using larger demo fonts.
Parameters.javaClass COUGAAR Parameter String utilities.
PipedInputStream.javaClass An efficient replacement for java.io.PipedInputStream.
PipedOutputStream.javaClass
PropertyParser.javaClass
PropertyTree.javaClass A PropertyTree is an ArrayMap that limits it's keys to Strings and it's values to:
  1. null
  2. String
  3. wrapped Java primitive (Integer, Boolean, etc)
  4. another PropertyTree
  5. a Serializable Collection of elements, each element matching one of the above criterion
. An ArrayMap is a java.util.Map, and can be used exactly like a typical Map.
Random.javaClass
RarelyModifiedList.javaClass A "double buffered" List implementation, optimized for cases where the contents rarely change. This implementation acts superficially like a normal list except that it actually is implemented by always creating a new private copy of the list on each modification. This allows iteration and such to never have to worry about comodification exceptions.
ReaderInputStream.javaClass Adapts a Reader as an InputStream.
ReadOnlyCollection.javaClass Wraps a Set disabling all mutator methods.
ReadOnlySet.javaClass Wraps a Set disabling all mutator methods.
ReadOnlySortedSet.javaClass Wraps a SortedSet disabling all mutator methods.
Reflect.javaClass Some utilities for java reflection that are more efficient and/or slightly different functionality then the jdk equivalents.
ReusableThread.javaClass A Thread class which can be restarted to rerun it's (settable) runnable object.
ReusableThreadPool.javaClass Provide a pool of reusable threads to reduce the overhead of construction/destruction of large numbers of standard thread, particularly on VM implementation which use OS-level thread implementations.
SelfDescribingBeanInfo.javaClass A useful base class which allows an object to be it's own BeanInfo class.
ShortDateFormat.javaClass Short form date formatter, using "month/day/year" (e.g.
SingleElementEnumeration.javaClass
Sortings.javaClass Sortings is a set of utility methods which provide simple and/or fixed sorting functionality to JDK Collections Framework.
Spinner.javaClass A control with arrows to cycle through a set of values and an entry field for direct entry of the value.
StackElements.javaClass Wrapper around a Throwable for stack-based equality.
StackMachine.javaClass
StateMachine.javaClass A little state machine framework to allow proper sequencing of a set of logical states.
StateModelException.javaClass Thrown by GenericStateModel state transition methods when transition is not possible, usually because the ending state cannot be reached directly from the starting state.
StringKey.javaClass Wrapper around a String for use as a key in a hash table (hashMap, etc).
Strings.javaClass
StringUtility.javaClass Utility knife for efficiently parsing stuff out of strings.
SynchronizedTimeSpanSet.javaClass
SyncTriggerModelImpl.javaClass A standard TriggerModel that batches "trigger()" requests for a single-threaded client Trigger, plus provides support for "suspend()/resume()" and "start()/stop()".

Only one "clientTrigger.trigger()" will be run at a time, so the client Trigger can be non-synchronized.

TableMap.javaClass
TableSorter.javaClass
TestAnnotations.javaClass
TestArguments.javaClass
TestChainingIterator.javaClass
TestCircularQueue.javaClass
TestCSVUtility.javaClass
TestDBProperties.javaClass
TestMappings.javaClass
TestNonOverlappingTimeSpanSet.javaClass
TestPropertyTree.javaClass
TestRarelyModifiedList.javaClass
TestShortDateFormat.javaClass
TestStackMachine.javaClass
TestStateMachine.javaClass
TestStringUtility.javaClass
TestTimeSpanSet.javaClass
TestWaitQueue.javaClass
ThemeFactory.javaClass ThemeFactory - Convenience class for establishing common look and feel for the UI.
Thunk.javaInterface A Thunk is small piece of code to be executed repeatedly, often gathering state for later perusal.
TimeSpan.javaInterface An abstraction of an object which starts at a known point in time and ends before a known point in time. Note that the interval is closed with respect to the start point, open with respect to the end point and start must be strictly less than end. An interval where start==end is illegal, as it would indicate a negative 1 millisecond duration.
TimeSpans.javaClass Collection of utility methods for manipulation and construction of TimeSpan objects.
TimeSpanSet.javaClass A Collection which implements a set of TimeSpan elements which are maintained sorted first by start time and then by end time.
ToStringMemo.javaClass A hack for computing a complex object's toString as needed, but without keeping it around for ever.
Translations.javaClass Translations holds a set of static methods for translating between various representations of objects, primarily collection-like things.
Trigger.javaInterface Generic callback interface.
TriggerModel.javaInterface An interface for a Trigger that's also a GenericStateModel.

The result of "trigger()" will depend upon the current model state.

TriggerRegistry.javaInterface A simple "registry" API for triggers, which is used by implementations of TriggerModel.
UnaryPredicate.javaInterface UnaryPredicate is an interface for implementing Unary testing operations.
UtilTest.javaClass
WaitQueue.javaClass Implement an asynchronous wait/notify map with value pass-through, selected by an opaque key.
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.