#                              -*- Mode: Perl -*- 
# Disjoint.pm -- 
# ITIID           : $ITI$ $Header $__Header$
# Author          : Ulrich Pfeifer
# Created On      : Fri Sep 13 14:00:01 1996
# Last Modified By: Ulrich Pfeifer
# Last Modified On: Sun Nov 22 18:44:37 1998
# Language        : CPerl
# Update Count    : 5
# Status          : Unknown, Use with caution!
# 
# Copyright (c) 1996-1997, Ulrich Pfeifer
# 

package WAIT::Table::Disjoint;
use vars qw(@ISA);

@ISA = qw(WAIT::Table);

sub insert {
  my $self   = shift;
  my $weight = shift;
  
  $self->SUPER::insert(_weight => $weight, @_);
}

sub fetch {
  my $self = shift;
  my $key   = shift;
  my $name = $self->{name};
  
  my %tp = $self->SUPER::fetch($key);
  if (%tp) {
    $tp{'_ee'} = join ('_', map($tp{$_} || 'undef', @{$self->{djk}}))."_$key";
  }
  %tp;
}

1;
