public interface Coggable
A skeletal implementation is provided in skeletons/java/SkeletonCoggable.java for your convenience and pleasure.
Earlier versions were based on getState() and setState() methods; this made it difficult to write Coggable implementations that were also Immutable. Now you must implement toCog() and also provide a constructor that takes a single Cog argument. This allows immutables to be instantiated correctly but not changed afterwards.
If you subclass another class that implements Coggable, be aware that you must get/set the superclass's state as well. Use super(node) in your constructor and state = super.toCog() before proceeding. A skeletal implementation of that is provided in skeletons/java/SkeletonCoggableSubclass.java
Copyright 2005-2009 Partner Software, Inc.