org.fosstrak.epcis.captureclient
Class CaptureEvent

java.lang.Object
  extended by org.fosstrak.epcis.captureclient.CaptureEvent

public class CaptureEvent
extends Object

Implements an example event object for the EPCIS Query Interface Client.

Author:
David Gubler

Nested Class Summary
 class CaptureEvent.BizTransaction
          A BusinessTransaction conists of two elements, the BizTransTypeID and the BizTransID which are Vocabularies.
 
Constructor Summary
CaptureEvent()
           
 
Method Summary
 int getAction()
           
 String getBizLocation()
           
 String getBizStep()
           
 ArrayList<CaptureEvent.BizTransaction> getBizTransaction()
           
 String getChildEPCs()
           
 String getDescription()
           
 String getDisposition()
           
 String getEpcClass()
           
 String getEpcList()
           
 String getEventTime()
           
 String getEventTimeZoneOffset()
           
 String getParentID()
           
 int getQuantity()
           
 String getReadPoint()
           
 int getType()
           
 void setAction(int action)
           
 void setBizLocation(String location)
           
 void setBizStep(String step)
           
 void setBizTransaction(String t, String id)
          Sets the business transaction.
 void setChildEPCs(String epcs)
           
 void setDescription(String description)
           
 void setDisposition(String disp)
           
 void setEpcClass(String cls)
           
 void setEpcList(String list)
           
 void setEventTime(String time)
           
 void setEventTimeZoneOffset(String timeZoneOffset)
           
 void setParentID(String id)
           
 void setQuantity(int n)
           
 void setReadPoint(String readp)
           
 void setType(int type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CaptureEvent

public CaptureEvent()
Method Detail

setDescription

public void setDescription(String description)
Parameters:
description - Sets the description.

getDescription

public String getDescription()
Returns:
The description of the event.

setType

public void setType(int type)
Parameters:
type - Sets the event type.
0 = ObjectEvent
1 = AggregationEvent
2 = QuantityEvent
3 = TransactionEvent

getType

public int getType()
Returns:
The type of the event.
0 = ObjectEvent
1 = AggregationEvent
2 = QuantityEvent
3 = TransactionEvent

setEventTime

public void setEventTime(String time)
Parameters:
time - Sets the event time. Use ISO8601, i.e. 2006-05-23T17:45:25

getEventTime

public String getEventTime()
Returns:
The time of the event.

setEventTimeZoneOffset

public void setEventTimeZoneOffset(String timeZoneOffset)
Parameters:
timeZoneOffset - Sets the event time zone offset.

getEventTimeZoneOffset

public String getEventTimeZoneOffset()
Returns:
The time zone offset of the event.

setAction

public void setAction(int action)
Parameters:
action - Sets the action value.
0 = ADD
1 = OBSERVE
2 = DELETE

getAction

public int getAction()
Returns:
The action value.
0 = ADD
1 = OBSERVE
2 = DELETE

setBizStep

public void setBizStep(String step)
Parameters:
step - Sets the business step.

getBizStep

public String getBizStep()
Returns:
The business step.

setDisposition

public void setDisposition(String disp)
Parameters:
disp - Sets the disposition.

getDisposition

public String getDisposition()
Returns:
The disposition.

setReadPoint

public void setReadPoint(String readp)
Parameters:
readp - Sets the read point.

getReadPoint

public String getReadPoint()
Returns:
The read point.

setBizLocation

public void setBizLocation(String location)
Parameters:
location - Sets the business location.

getBizLocation

public String getBizLocation()
Returns:
The business location.

setBizTransaction

public void setBizTransaction(String t,
                              String id)
Sets the business transaction.

Parameters:
t - The type of the business transaction.
id - The id of the business transaction.

getBizTransaction

public ArrayList<CaptureEvent.BizTransaction> getBizTransaction()
Returns:
The business transaction.

setEpcList

public void setEpcList(String list)
Parameters:
list - Sets the list of EPCs (for object and transaction events).

getEpcList

public String getEpcList()
Returns:
list The list of EPCs (for object and transaction events).

setChildEPCs

public void setChildEPCs(String epcs)
Parameters:
epcs - Sets the list of children EPCs (for aggregation events).

getChildEPCs

public String getChildEPCs()
Returns:
epcs The list of children EPCs (for aggregation events).

setParentID

public void setParentID(String id)
Parameters:
id - Sets the id of the parent object (for aggregation events).

getParentID

public String getParentID()
Returns:
id The id of the parent object (for aggregation events).

setEpcClass

public void setEpcClass(String cls)
Parameters:
cls - Sets the EPC class (for quantity events).

getEpcClass

public String getEpcClass()
Returns:
cls The EPC class (for quantity events).

setQuantity

public void setQuantity(int n)
Parameters:
n - Sets the quantity (for quantity events).

getQuantity

public int getQuantity()
Returns:
quantity The quantity (for quantity events).


Copyright © 2010. All Rights Reserved.