|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.meiglobal.ebds.api.pub.Acceptor
public class Acceptor
Main API class used to communicate with the Device, this class is a wrapper of the actual Device class.
Constructor Summary | |
---|---|
Acceptor()
Deprecated. Default constructor. |
Method Summary | |
---|---|
void |
addAcceptorEventListener(AcceptorEventListener listener)
Deprecated. Adds a listener for the events fired by the acceptor. |
void |
calibrate()
Deprecated. Issues a calibration command to the device for it to perform the calibration process. |
void |
clearCashBoxTotal()
Deprecated. Issues a command to the device to clear the cashbox total |
void |
close()
Deprecated. Closes the connection with the device. |
void |
escrowReturn()
Deprecated. Informs the device that the escrowed bill should be returned. |
void |
escrowStack()
Deprecated. Informs the device that the escrowed bill should be stacked. |
void |
flashDownload(java.lang.String filePath)
Deprecated. Downloads a flash file to the Device |
java.lang.String |
getApplicationId()
Deprecated. Retrieves the application Id from the device. |
java.lang.String |
getApplicationPN()
Deprecated. Retrieves the device's part number. |
java.lang.String |
getAssetNumber()
Deprecated. Returns the asset number |
AuditLifeTimeTotals |
GetAuditLifeTimeTotals()
Deprecated. Used to retrieve the device's audit life time totals |
AuditPerformance |
GetAuditPerformance()
Deprecated. Used to retrieve the device's performance values |
AuditQP |
GetAuditQP()
Deprecated. Used to retrieve the device's Audit QP |
boolean |
getAutoStack()
Deprecated. Getter for the Auto Stack property |
java.lang.String |
getBarCode()
Deprecated. Getter for the bar code value for the escrowed document. |
Bill |
getBill()
Deprecated. Getter for the Bill object for the escrowed document. |
java.util.List<java.lang.Boolean> |
getBillTypeEnables()
Deprecated. Returns a List of the bill types that are enabled on the the device. |
java.util.List<Bill> |
getBillTypes()
Deprecated. Returns a List of the bill types for the device. |
java.util.List<java.lang.Boolean> |
getBillValueEnables()
Deprecated. Returns a list of the bill values that are enabled on the device. |
java.util.List<Bill> |
getBillValues()
Deprecated. Returns a list of the bill values on the device. |
BNFStatus |
GetBNFStatus()
Deprecated. Returns the device's BNF status. |
java.lang.String |
getBootPN()
Deprecated. Returns the device's Boot PN. |
boolean |
getCapApplicationId()
Deprecated. Getter for the device's application id capability. |
boolean |
getCapApplicationPN()
Deprecated. Getter for the device's application PN capability. |
boolean |
getCapAssetNumber()
Deprecated. Getter for the device's asset number capability. |
boolean |
getCapAudit()
Deprecated. Getter for the device's auditing capability. |
boolean |
getCapBarCodes()
Deprecated. Getter for the device's bar code support. |
boolean |
getCapBarCodesExt()
Deprecated. Getter for the device's bar codes extended support. |
boolean |
getCapBNFStatus()
Deprecated. Getter for the device's BNF status capability. |
boolean |
getCapBookmark()
Deprecated. Getter for the device's Bookmark capability. |
boolean |
getCapBootPN()
Deprecated. Getter for the device's Boot PN capability. |
boolean |
getCapCalibrate()
Deprecated. Getter for the device's calibration capability. |
boolean |
getCapCashBoxTotal()
Deprecated. Getter for the device's cash box total capability. |
boolean |
getCapCouponExt()
Deprecated. Getter for the device's coupon extention capability. |
boolean |
getCapDevicePaused()
Deprecated. Getter for the device's paused capability. |
boolean |
getCapDeviceResets()
Deprecated. Getter for the device's reset count capability. |
boolean |
getCapDeviceSerialNumber()
Deprecated. Getter for the device's serial number capability. |
boolean |
getCapDeviceSoftReset()
Deprecated. Getter for the device's soft reset capability. |
boolean |
getCapDeviceType()
Deprecated. Getter for the device's type support. |
boolean |
getCapEasitrax()
Deprecated. Getter for the device's Easitrax capability. |
boolean |
getCapEscrowTimeout()
Deprecated. Getter for the device's escrow timeout capability. |
boolean |
getCapFlashDownload()
Deprecated. Getter for the device's flash upgrade capability. |
boolean |
getCapNoPush()
Deprecated. Getter for the device's no push capability. |
boolean |
getCapNoteRetrieved()
Deprecated. Getter for the device's note retrieved capability. |
boolean |
getCapOrientationExt()
Deprecated. Getter for the device's orientation extention support. |
boolean |
getCapPupExt()
Deprecated. Getter for the device's PUP extention. |
boolean |
getCapSetBezel()
Deprecated. Getter for the device's set bezel support. |
boolean |
getCapTestDoc()
Deprecated. Getter for the device's test document support. |
boolean |
getCapVariantId()
Deprecated. Getter for the device's variant id capability. |
boolean |
getCapVariantPN()
Deprecated. Getter for the device's variant PN capability. |
boolean |
getCashBoxAttached()
Deprecated. Getter for the device's cash box status. |
boolean |
getCashBoxFull()
Deprecated. Getter for the device's cash box full status. |
long |
getCashBoxTotal()
Deprecated. Getter for the device's cash box total. |
boolean |
getConnected()
Deprecated. Getter for the Device's connected status. |
Coupon |
getCoupon()
Deprecated. Returns the device's escrowed coupon |
boolean |
getDebugLog()
Deprecated. Getter for the device's debug log status. |
java.lang.String |
getDebugLogPath()
Deprecated. Getter for the debug log file path. |
boolean |
getDeviceBusy()
Deprecated. Informs wether the device is busy. |
long |
getDeviceCRC()
Deprecated. Retrieves the device CRC value. |
boolean |
getDeviceFailure()
Deprecated. Informs wether the device has failed. |
boolean |
getDeviceJammed()
Deprecated. Informs wether the device is jammed. |
long |
getDeviceModel()
Deprecated. Returns the device Model. |
boolean |
getDevicePaused()
Deprecated. Informs wether the device is paused. |
java.lang.String |
getDevicePortName()
Deprecated. Retrieves the device port name. |
PowerUp |
getDevicePowerUp()
Deprecated. Informs of the device power up option. |
long |
getDeviceResets()
Deprecated. Retrieves the device's total resets. |
long |
getDeviceRevision()
Deprecated. Retrieves the device's revision. |
java.lang.String |
getDeviceSerialNumber()
Deprecated. Retrieves the device's serial number. |
boolean |
getDeviceStalled()
Deprecated. Informs wether the device is stalled. |
State |
getDeviceState()
Deprecated. Informs the currrent device state. |
java.lang.String |
getDeviceType()
Deprecated. Retrieves the device type. |
int |
getDisconnectTimeout()
Deprecated. Gets the Disconnect Timeout property in milliseconds. |
DocumentType |
getDocType()
Deprecated. Informs of the escrowed document type. |
int |
getDownloadTimeout()
Deprecated. Informs the download timeout. |
boolean |
getEnableAcceptance()
Deprecated. Returns the device current acceptance status. |
boolean |
getEnableBarCodes()
Deprecated. Informs of the device's barcode acceptance. |
boolean |
getEnableBookmarks()
Deprecated. Informs the device's bookmarks status. |
boolean |
getEnableCouponExt()
Deprecated. Informs the device's Coupon extension status. |
boolean |
getEnableNoPush()
Deprecated. Informs the device's No Push status. |
Orientation |
getEscrowOrientation()
Deprecated. Returns the device's escrow orientation. |
boolean |
getHighSecurity()
Deprecated. Returns the device's high security status. |
OrientationControl |
getOrientationControl()
Deprecated. Informs the device's orientation control. |
OrientationControl |
getOrientationCtlExt()
Deprecated. Informs the device's orientation control ext. |
boolean |
getSupressStandardPoll()
Deprecated. Informs if the standard poll has been supressed. |
int |
getTransactionTimeout()
Deprecated. Transaction timeout no longer has meaning |
java.lang.String |
getVariantId()
Deprecated. Retrieves the device's variant id. |
java.util.List<java.lang.String> |
getVariantNames()
Deprecated. Retrieves the device's variant name. |
java.lang.String |
getVariantPN()
Deprecated. Retrieves the device's part number. |
static java.lang.String |
getVersion()
Deprecated. Retrieves the API's version. |
boolean |
isInSoftResetWaitForReply()
Deprecated. Informs if the device is in soft reset. |
static java.lang.String[] |
listPorts()
Deprecated. Return a list of available ports. |
void |
log(java.util.logging.Level level,
java.lang.String message)
Deprecated. Logs a message. |
void |
open(java.lang.String port,
PowerUp powerUp)
Deprecated. Opens the connection between the host and the device |
byte[] |
rawTransaction(byte[] command)
Deprecated. Allows the Host to send a raw transaction. |
void |
removeAcceptorEventListener(AcceptorEventListener listener)
Deprecated. Removes a previously added listener for the events fired by the acceptor. |
void |
setAssetNumber(java.lang.String asset)
Deprecated. Sets the device's asset number. |
void |
setAutoStack(boolean autoStack)
Deprecated. Setter for the Auto Stack property |
void |
setBezel(Bezel bezel)
Deprecated. Sets the bezeil policy for the device. |
void |
setBillTypesEnables(java.util.List<java.lang.Boolean> enablesTypes)
Deprecated. Sets the List of enabled bill types on the device. |
void |
setBillValueEnables(java.util.List<java.lang.Boolean> enablesValue)
Deprecated. Sets the List of enabled bill values on the device. |
void |
setDebugLog(boolean newVal)
Deprecated. Sets the status for the debug log. |
void |
setDebugLogPath(java.lang.String debugLogPath)
Deprecated. Setter for the debug log file path. |
void |
setDisconnectTimeout(int timeout)
Deprecated. Sets the Disconnect Timeout property in milliseconds. |
void |
setDownloadTimeout(int downloadTimeout)
Deprecated. Sets the download timeout. |
void |
setEnableAcceptance(boolean enableAcceptance)
Deprecated. Sets the device's acceptance status. |
void |
setEnableBarCodes(boolean enableBarCodes)
Deprecated. Sets the device's barcode acceptance. |
void |
setEnableBookmarks(boolean enableBookmarks)
Deprecated. Sets the device's bookmarks status. |
void |
setEnableCouponExt(boolean enableCouponExt)
Deprecated. Sets the device's coupon extension status. |
void |
setEnableNoPush(boolean enableNoPush)
Deprecated. Sets the device's No Push status. |
void |
setHighSecurity(boolean highSecurity)
Deprecated. Sets the device's high security status. |
void |
setOrientationControl(OrientationControl orientationControl)
Deprecated. Sets the device's orientation control. |
void |
SetOrientationCtlExt(OrientationControl orientationControlExt)
Deprecated. Sets the device's orientation control ext. |
void |
setTransactionTimeout(int timeout)
Deprecated. Can no longer modify transaction timeout |
void |
SoftReset()
Deprecated. Performs a soft reset on the device. |
void |
specifyEscrowTimeout(int billTimeout,
int barcodeTimeout)
Deprecated. Specifies the escrow timeout for the device. |
void |
specifyPupExt(char pupMode,
PupExt preEscrow,
PupExt atEscrow,
PupExt postEscrow,
PupExt preStack)
Deprecated. This feature is not supported |
boolean |
stopDownload()
Deprecated. Stops the download process. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Acceptor()
Method Detail |
---|
public boolean getSupressStandardPoll()
public void open(java.lang.String port, PowerUp powerUp) throws AcceptorException
port
- the name of the port to usepowerUp
- the type of powerup
AcceptorException
- If an error occurs during connection.public void close()
public void escrowReturn() throws AcceptorException
AcceptorException
- if the device is not connected.public void escrowStack() throws AcceptorException
AcceptorException
- if the device is not connected.public java.lang.String getApplicationId() throws AcceptorException
AcceptorException
- if this property is not supported or there is an error with the device.public java.lang.String getApplicationPN() throws AcceptorException
AcceptorException
- if this property is not supported or there is an error with the device.public AuditLifeTimeTotals GetAuditLifeTimeTotals() throws AcceptorException
AcceptorException
- if this property is not supported or there is an error with the device.public AuditPerformance GetAuditPerformance() throws AcceptorException
AcceptorException
- if this property is not supported or there is an error with the device.public AuditQP GetAuditQP() throws AcceptorException
AcceptorException
- if this property is not supported or there is an error with the device.public boolean getAutoStack()
public void setAutoStack(boolean autoStack) throws AcceptorException
autoStack
- the new value for the property
AcceptorException
- if the device is not connected.public java.lang.String getBarCode() throws AcceptorException
AcceptorException
- if the document type is not a barcodepublic Bill getBill() throws AcceptorException
AcceptorException
- if the document type is not a billpublic java.util.List<Bill> getBillTypes()
public java.util.List<java.lang.Boolean> getBillTypeEnables()
public void setBillTypesEnables(java.util.List<java.lang.Boolean> enablesTypes) throws AcceptorException
enablesTypes
- The list of enabled bill types.
AcceptorException
- if the device is not connected, or the size of the enabled bill types is different from the bill types list.public java.util.List<Bill> getBillValues()
public java.util.List<java.lang.Boolean> getBillValueEnables()
public void setBillValueEnables(java.util.List<java.lang.Boolean> enablesValue) throws AcceptorException
enablesValue
- The list of enabled bill values to set.
AcceptorException
- if the device is not connected.public BNFStatus GetBNFStatus() throws AcceptorException
AcceptorException
- if the property is not allowed or an error occurs.public java.lang.String getBootPN() throws AcceptorException
AcceptorException
- if the property is not allowed or an error occurs.public boolean getCapApplicationId()
public boolean getCapApplicationPN()
public boolean getCapDeviceSoftReset()
public boolean getCapAssetNumber()
public boolean getCapAudit()
public boolean getCapBarCodes()
public boolean getCapBarCodesExt()
public boolean getCapBNFStatus()
public boolean getCapBookmark()
public boolean getCapBootPN()
public boolean getCapCalibrate()
public boolean getCapCashBoxTotal()
public boolean getCapCouponExt()
public boolean getCapEasitrax()
public boolean getCapDevicePaused()
public boolean getCapDeviceType()
public boolean getCapDeviceResets()
public boolean getCapDeviceSerialNumber()
public boolean getCapEscrowTimeout()
public boolean getCapFlashDownload()
public boolean getCapNoPush()
public boolean getCapNoteRetrieved()
public boolean getCapOrientationExt()
public boolean getCapPupExt()
public boolean getCapTestDoc()
public boolean getCapSetBezel()
public boolean getCapVariantId()
public boolean getCapVariantPN()
public boolean getCashBoxAttached()
public boolean getCashBoxFull()
public long getCashBoxTotal() throws AcceptorException
AcceptorException
- it the property is not supported or if there is an error.public boolean getConnected()
public Coupon getCoupon() throws AcceptorException
AcceptorException
- if the document type is not a couponpublic boolean getDebugLog()
public void setDebugLog(boolean newVal) throws AcceptorException
newVal
- the status to set.
AcceptorException
- If there is a problem with the debug log file.public java.lang.String getDebugLogPath()
public void setDebugLogPath(java.lang.String debugLogPath)
debugLogPath
- the path for the file.public boolean getDeviceBusy()
public long getDeviceCRC() throws AcceptorException
AcceptorException
- If the proerty is not allowed or an error occurs.public boolean getDeviceFailure()
public boolean getDeviceJammed()
public long getDeviceModel()
public boolean getDevicePaused()
public java.lang.String getDevicePortName()
public PowerUp getDevicePowerUp()
public long getDeviceResets() throws AcceptorException
AcceptorException
- if the property is not supported or there is a communications error.public long getDeviceRevision()
public java.lang.String getDeviceSerialNumber() throws AcceptorException
AcceptorException
- If ther property is not supported or a communications error occurs.public boolean getDeviceStalled()
public State getDeviceState()
public java.lang.String getDeviceType() throws AcceptorException
AcceptorException
- If the property is not supported or there is an error.public DocumentType getDocType()
public int getTransactionTimeout()
public void setTransactionTimeout(int timeout)
timeout
- The timeout to set.public int getDisconnectTimeout()
public void setDisconnectTimeout(int timeout) throws AcceptorException
timeout
- Timeout in milliseconds
AcceptorException
- if the timeout value is less than or equal to zero.public int getDownloadTimeout()
public void setDownloadTimeout(int downloadTimeout)
downloadTimeout
- The timeout to set.public boolean getEnableAcceptance()
public void setEnableAcceptance(boolean enableAcceptance) throws AcceptorException
enableAcceptance
- The status to set.
AcceptorException
public boolean getEnableBarCodes()
public void setEnableBarCodes(boolean enableBarCodes) throws AcceptorException
enableBarCodes
- Value to set.
AcceptorException
public boolean getEnableBookmarks()
public void setEnableBookmarks(boolean enableBookmarks) throws AcceptorException
enableBookmarks
- The status to set.
AcceptorException
public boolean getEnableCouponExt()
public void setEnableCouponExt(boolean enableCouponExt) throws AcceptorException
enableCouponExt
- The status to set.
AcceptorException
public boolean getEnableNoPush()
public void setEnableNoPush(boolean enableNoPush) throws AcceptorException
enableNoPush
- The status to set.
AcceptorException
public Orientation getEscrowOrientation()
public boolean getHighSecurity()
public void setHighSecurity(boolean highSecurity)
highSecurity
- The status to set.public OrientationControl getOrientationControl()
public void setOrientationControl(OrientationControl orientationControl)
orientationControl
- The orientation control to set.public OrientationControl getOrientationCtlExt()
public void SetOrientationCtlExt(OrientationControl orientationControlExt)
orientationControlExt
- The orientation control to set.public java.util.List<java.lang.String> getVariantNames() throws AcceptorException
AcceptorException
- If the property is not supported or there is an error.public java.lang.String getVariantId() throws AcceptorException
AcceptorException
- If the property is not supported or there is an error.public java.lang.String getVariantPN() throws AcceptorException
AcceptorException
- If the property is not supported or there is an error.public static java.lang.String getVersion()
public void calibrate() throws AcceptorException
AcceptorException
- If an error occurspublic void flashDownload(java.lang.String filePath) throws AcceptorException
filePath
- The path to the flash file
AcceptorException
- If an error occurs, the file is not found or is not possible to read it.public byte[] rawTransaction(byte[] command) throws AcceptorException
command
- The command to send.
AcceptorException
- If an error occurs during communication.public void clearCashBoxTotal() throws AcceptorException
AcceptorException
public java.lang.String getAssetNumber() throws AcceptorException
AcceptorException
- If the device is not connectedpublic void setAssetNumber(java.lang.String asset) throws AcceptorException
asset
- The asset number to set.
AcceptorException
- If the device is not connected or an error occurs.public void setBezel(Bezel bezel) throws AcceptorException
bezel
- The bezel to set.
AcceptorException
- If the device is not connected or an error occurs.public void SoftReset() throws AcceptorException
AcceptorException
- If an error occurs.public void specifyEscrowTimeout(int billTimeout, int barcodeTimeout) throws AcceptorException
billTimeout
- Timeout for bills.barcodeTimeout
- Timeout for barcode documents.
AcceptorException
- If the device is not connected or an error occurs.public void specifyPupExt(char pupMode, PupExt preEscrow, PupExt atEscrow, PupExt postEscrow, PupExt preStack) throws AcceptorException
pupMode
- PUP mode to set.preEscrow
- PUP mode to set for preEscrow state.atEscrow
- PUP mode to set during escrow.postEscrow
- PUP mode to set for post escrow state.preStack
- PUP mode to set for pre Stack state.
AcceptorException
- If the device is not connected or an error occurs.public void log(java.util.logging.Level level, java.lang.String message)
level
- Log levelmessage
- Message to log.public void addAcceptorEventListener(AcceptorEventListener listener)
listener
- The listeren to add.public void removeAcceptorEventListener(AcceptorEventListener listener)
listener
- listener to removepublic boolean isInSoftResetWaitForReply()
public static java.lang.String[] listPorts()
public boolean stopDownload()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |