public class FibonacciNumber
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected jadex.commons.beans.PropertyChangeSupport |
pcs
The property change support.
|
protected int |
sequence
The sequence number.
|
protected long |
value
The value.
|
Constructor and Description |
---|
FibonacciNumber(int sequence)
Create a new FibonacciNumber.
|
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(jadex.commons.beans.PropertyChangeListener listener)
Add a PropertyChangeListener to the listener list.
|
int |
getSequence()
Get the sequence number.
|
long |
getValue()
Get the value.
|
void |
removePropertyChangeListener(jadex.commons.beans.PropertyChangeListener listener)
Remove a PropertyChangeListener from the listener list.
|
void |
setValue(long value)
Set the value.
|
java.lang.String |
toString()
Get the string representation.
|
protected int sequence
protected long value
protected jadex.commons.beans.PropertyChangeSupport pcs
public FibonacciNumber(int sequence)
sequence
- Thepublic int getSequence()
public void setValue(long value)
value
- The value.public long getValue()
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.