jason.core
Class DoorDataModel

java.lang.Object
  |
  +--java.util.AbstractCollection
        |
        +--java.util.AbstractList
              |
              +--java.util.Vector
                    |
                    +--jason.core.DoorDataModel
All Implemented Interfaces:
java.lang.Cloneable, java.util.Collection, java.util.List, java.util.RandomAccess, java.io.Serializable

public class DoorDataModel
extends java.util.Vector

Created Fri Sep 06 21:31:49 2002

This is a data model for all service container. This dataModel is available for each Domain.

See Also:
Door, Serialized Form

Field Summary
 
Fields inherited from class java.util.Vector
capacityIncrement, elementCount, elementData
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
DoorDataModel()
           
 
Method Summary
 void addDoor(Door sc)
          Store a door
 int doorCount()
           
 Door getDoorAt(int i)
           
 Door[] getState()
           
 void removeDoor(Door sc)
          Remove the service container
 
Methods inherited from class java.util.Vector
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize
 
Methods inherited from class java.util.AbstractList
iterator, listIterator, listIterator
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
iterator, listIterator, listIterator
 

Constructor Detail

DoorDataModel

public DoorDataModel()
Method Detail

getDoorAt

public Door getDoorAt(int i)
Returns:
the door for this index from 0

addDoor

public void addDoor(Door sc)
Store a door


removeDoor

public void removeDoor(Door sc)
Remove the service container


getState

public Door[] getState()
Returns:
a snapshot for available doors

doorCount

public int doorCount()
Returns:
the number of door