|
Jadex 0.96 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjadex.examples.booktrading.common.Order
public class Order
The order for purchasing or selling books.
Field Summary | |
---|---|
static String |
DONE
The state done. |
static String |
FAILED
The state failed. |
static String |
OPEN
The state open. |
SimplePropertyChangeSupport |
pcs
The helper object for bean events. |
Constructor Summary | |
---|---|
Order(String title,
Date deadline,
int start,
int limit,
boolean buyorder)
Create a new order. |
Method Summary | |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Add a PropertyChangeListener to the listener list. |
Date |
getDeadline()
Get the deadline. |
Date |
getExecutionDate()
Get the execution date. |
Integer |
getExecutionPrice()
Get the execution price. |
int |
getLimit()
Get the limit. |
int |
getStartPrice()
Getter for startprice |
long |
getStartTime()
Get the start time. |
String |
getState()
Get the order state. |
String |
getTitle()
Get the title. |
boolean |
isBuyOrder()
Test if it is a buyorder. |
void |
removePropertyChangeListener(PropertyChangeListener listener)
Remove a PropertyChangeListener from the listener list. |
void |
setBuyOrder(boolean buyorder)
Set the order type. |
void |
setDeadline(Date deadline)
Set the deadline. |
void |
setExecutionDate(Date exedate)
Set the execution date. |
void |
setExecutionPrice(Integer exeprice)
Set the execution price. |
void |
setLimit(int limit)
Set the limit. |
void |
setStartPrice(int startprice)
Setter for startprice. |
void |
setStartTime(long starttime)
Set the start time. |
void |
setTitle(String title)
Set the title. |
String |
toString()
Get a string representation of the order. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String OPEN
public static final String DONE
public static final String FAILED
public SimplePropertyChangeSupport pcs
Constructor Detail |
---|
public Order(String title, Date deadline, int start, int limit, boolean buyorder)
title
- The title.deadline
- The deadline.limit
- The limit.start
- The start priceMethod Detail |
---|
public String getTitle()
public void setTitle(String title)
title
- The title.public Date getDeadline()
public void setDeadline(Date deadline)
deadline
- The deadline.public int getLimit()
public void setLimit(int limit)
limit
- The limit.public int getStartPrice()
public void setStartPrice(int startprice)
startprice
- The Order.java value to setpublic long getStartTime()
public void setStartTime(long starttime)
starttime
- The start time.public Integer getExecutionPrice()
public void setExecutionPrice(Integer exeprice)
exeprice
- The execution price.public Date getExecutionDate()
public void setExecutionDate(Date exedate)
exedate
- The execution date.public boolean isBuyOrder()
public void setBuyOrder(boolean buyorder)
buyorder
- True for buyorder.public String getState()
public String toString()
toString
in class Object
public void addPropertyChangeListener(PropertyChangeListener listener)
listener
- The PropertyChangeListener to be added.public void removePropertyChangeListener(PropertyChangeListener listener)
listener
- The PropertyChangeListener to be removed.
|
Jadex 0.96 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (C) 2002-2007 Lars Braubach, Alexander Pokahr - University of Hamburg. Use is subject to license terms.