edu.cuny.cat.core
Class Shout.MutableShout

java.lang.Object
  extended by edu.cuny.cat.core.Shout
      extended by edu.cuny.cat.core.Shout.MutableShout
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<Shout>
Enclosing class:
Shout

public static class Shout.MutableShout
extends Shout

A Shout that is publically mutable.

Author:
Steve Phelps
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class edu.cuny.cat.core.Shout
Shout.MutableShout
 
Field Summary
 
Fields inherited from class edu.cuny.cat.core.Shout
child, CREATED, id, isBid, MATCHED, parent, PENDING, PLACED, price, quantity, REJECTED, specialist, state, TRACE, trader
 
Constructor Summary
Shout.MutableShout()
           
Shout.MutableShout(Shout existing)
           
 
Method Summary
 void copyFrom(Shout other)
           
 void setId(java.lang.String shoutId)
           
 void setIsBid(boolean isBid)
           
 void setPrice(double price)
           
 void setQuantity(int quantity)
           
 
Methods inherited from class edu.cuny.cat.core.Shout
clone, compareTo, equals, getChild, getId, getParent, getPrice, getQuantity, getSpecialist, getState, getStateDescription, getTrader, isAsk, isBid, isMatched, isValid, maxPrice, maxPrice, minPrice, minPrice, satisfies, setChild, setParent, setSpecialist, setState, setTrader, splat, split, toPrettyString, toString, totalVolume
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Shout.MutableShout

public Shout.MutableShout()

Shout.MutableShout

public Shout.MutableShout(Shout existing)
Method Detail

setPrice

public void setPrice(double price)
Overrides:
setPrice in class Shout

setId

public void setId(java.lang.String shoutId)
Overrides:
setId in class Shout

setQuantity

public void setQuantity(int quantity)
Overrides:
setQuantity in class Shout

setIsBid

public void setIsBid(boolean isBid)
Overrides:
setIsBid in class Shout

copyFrom

public void copyFrom(Shout other)
Overrides:
copyFrom in class Shout