fr.jussieu.gla.wasa.samples.party
Class ScheduleVar
java.lang.Object
|
+--fr.jussieu.gla.wasa.core.Var
|
+--fr.jussieu.gla.wasa.samples.party.ScheduleVar
- public class ScheduleVar
- extends Var
A WASA Var
which maps a Schedule grid cell.
- Version:
- $Revision: 1.2 $ $Date: 2002/04/17 15:24:08 $
- Author:
- Laurent Caillette
Method Summary |
protected java.lang.Object |
cloneValue()
Override this method to provide custom cloning operation. |
Boat |
getGuest()
Returns the guest boat corresponding to the var. |
Boat |
getHost()
Returns the host boat corresponding to the var. |
int |
getPeriod()
Returns the period corresponding to the var. |
java.lang.Object |
getReferencedValue()
Returns the mapped cell content ( in fact an host Boat ). |
void |
setReferencedValue(java.lang.Object value)
Sets the mapped cell of the Schedule with value
( in fact, a Boat ). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ScheduleVar
public ScheduleVar(Explorer explorer,
Schedule schedule,
Boat guest,
int periodIndex)
setReferencedValue
public void setReferencedValue(java.lang.Object value)
- Sets the mapped cell of the
Schedule
with value
( in fact, a Boat
).
- Overrides:
setReferencedValue
in class Var
- Following copied from class:
fr.jussieu.gla.wasa.core.Var
- Parameters:
value
- The value to set.
getReferencedValue
public java.lang.Object getReferencedValue()
- Returns the mapped cell content ( in fact an host
Boat
).
- Overrides:
getReferencedValue
in class Var
- Returns:
- The mapped cell content ( in fact an host
Boat
)
cloneValue
protected java.lang.Object cloneValue()
throws java.lang.CloneNotSupportedException
- Description copied from class:
Var
- Override this method to provide custom cloning operation. The framework
guarantees that it won't be called if value is null.
- Overrides:
cloneValue
in class Var
- Following copied from class:
fr.jussieu.gla.wasa.core.Var
- Returns:
- A clone of value object.
- Throws:
java.lang.CloneNotSupportedException
- as Object.clone()
does.
getHost
public Boat getHost()
- Returns the host boat corresponding to the var.
- Returns:
- the host boat corresponding to the var
getGuest
public Boat getGuest()
- Returns the guest boat corresponding to the var.
- Returns:
- the guest boat corresponding to the var
getPeriod
public int getPeriod()
- Returns the period corresponding to the var.
- Returns:
- the period corresponding to the var