| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectsysModel.fish.DynamicFishFactory
public class DynamicFishFactory
AFish factory to dynamically create new fish.
| Field Summary | |
|---|---|
| private  java.awt.Color | _curColor | 
| private  java.lang.String | _curName | 
| private  ISecurityAdapter | _securityAdapter | 
| Constructor Summary | |
|---|---|
| DynamicFishFactory(java.lang.String name,
                                     java.awt.Color color,
                                     ISecurityAdapter sa)Construct a new factory. | |
| Method Summary | |
|---|---|
|  AFish | createFish()Create a new fish. | 
|  void | setName(java.awt.Color newColor)Mutator for the color. | 
|  void | setName(java.lang.String newName)Mutator for the name. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
private java.lang.String _curName
private java.awt.Color _curColor
private ISecurityAdapter _securityAdapter
| Constructor Detail | 
|---|
public DynamicFishFactory(java.lang.String name,
                          java.awt.Color color,
                          ISecurityAdapter sa)
name - initial namecolor - initial colorsa - security adapter| Method Detail | 
|---|
public void setName(java.lang.String newName)
newName - new namepublic void setName(java.awt.Color newColor)
newColor - new colorpublic AFish createFish()
createFish in interface IFishFactory| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||