public class Order
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
buyorder
The flag indicating if it is a buy (or sell) order.
|
protected jadex.bridge.service.types.clock.IClockService |
clock
The clock.
|
protected java.util.Date |
deadline
The deadline.
|
static java.lang.String |
DONE
The state done.
|
protected java.util.Date |
exedate
The execution date.
|
protected java.lang.Integer |
exeprice
The execution price.
|
static java.lang.String |
FAILED
The state failed.
|
protected int |
limit
The limit price.
|
static java.lang.String |
OPEN
The state open.
|
jadex.commons.SimplePropertyChangeSupport |
pcs
The helper object for bean events.
|
protected int |
startprice
The startprice.
|
protected long |
starttime
The starttime.
|
protected java.lang.String |
state
The state.
|
protected java.lang.String |
title
The book title.
|
Constructor and Description |
---|
Order(java.lang.String title,
java.util.Date deadline,
int start,
int limit,
boolean buyorder,
jadex.bridge.service.types.clock.IClockService clock)
Create a new order.
|
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(jadex.commons.beans.PropertyChangeListener listener)
Add a PropertyChangeListener to the listener list.
|
java.util.Date |
getDeadline()
Get the deadline.
|
java.util.Date |
getExecutionDate()
Get the execution date.
|
java.lang.Integer |
getExecutionPrice()
Get the execution price.
|
int |
getLimit()
Get the limit.
|
int |
getStartPrice()
Getter for startprice
|
long |
getStartTime()
Get the start time.
|
java.lang.String |
getState()
Get the order state.
|
java.lang.String |
getTitle()
Get the title.
|
boolean |
isBuyOrder()
Test if it is a buyorder.
|
void |
removePropertyChangeListener(jadex.commons.beans.PropertyChangeListener listener)
Remove a PropertyChangeListener from the listener list.
|
void |
setBuyOrder(boolean buyorder)
Set the order type.
|
void |
setDeadline(java.util.Date deadline)
Set the deadline.
|
void |
setExecutionDate(java.util.Date exedate)
Set the execution date.
|
void |
setExecutionPrice(java.lang.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 |
setState(java.lang.String state)
Set the state.
|
void |
setTitle(java.lang.String title)
Set the title.
|
java.lang.String |
toString()
Get a string representation of the order.
|
public static final java.lang.String OPEN
public static final java.lang.String DONE
public static final java.lang.String FAILED
protected java.lang.String title
protected java.util.Date deadline
protected int limit
protected int startprice
protected long starttime
protected java.lang.Integer exeprice
protected java.util.Date exedate
protected boolean buyorder
protected java.lang.String state
protected jadex.bridge.service.types.clock.IClockService clock
public jadex.commons.SimplePropertyChangeSupport pcs
public Order(java.lang.String title, java.util.Date deadline, int start, int limit, boolean buyorder, jadex.bridge.service.types.clock.IClockService clock)
title
- The title.deadline
- The deadline.limit
- The limit.start
- The start pricepublic java.lang.String getTitle()
public void setTitle(java.lang.String title)
title
- The title.public java.util.Date getDeadline()
public void setDeadline(java.util.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 java.lang.Integer getExecutionPrice()
public void setExecutionPrice(java.lang.Integer exeprice)
exeprice
- The execution price.public java.util.Date getExecutionDate()
public void setExecutionDate(java.util.Date exedate)
exedate
- The execution date.public boolean isBuyOrder()
public void setBuyOrder(boolean buyorder)
buyorder
- True for buyorder.public java.lang.String getState()
public void setState(java.lang.String state)
state
- The state.public java.lang.String toString()
toString
in class java.lang.Object
public void addPropertyChangeListener(jadex.commons.beans.PropertyChangeListener listener)
listener
- The PropertyChangeListener to be added.public void removePropertyChangeListener(jadex.commons.beans.PropertyChangeListener listener)
listener
- The PropertyChangeListener to be removed.