Class User

java.lang.Object
  extended byjava.lang.Thread
      extended byeduni.simjava.Sim_entity
          extended byUser
All Implemented Interfaces:
java.lang.Cloneable, java.lang.Runnable

public class User
extends eduni.simjava.Sim_entity


Field Summary
static int ParticipationRequest
           
static int ResourceInfoRequest
           
static int SendBids
           
static int SendWorkRequest
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
User(java.lang.String name, double delay, double work, double time, double budget, int NoOfSubtasks, double percenthikeINbid)
          Creates a new instance of User
 
Method Summary
 void body()
          this method is used to define behaviour sjhdkjashfkjashdjkahsdjkashdjashdjashdjsahdsaj
 boolean contains(int k)
          this method looks up Vector invalidGroups and returns true if group passed as parameter to this method is in it else false
 int getnumberoftasks()
           
 double getwork()
           
 double getworkdone()
           
 void invalidateTasks()
          finally marks all the tasks to -1 which were temporarily marked -2
 int LastTask()
           
 void Randomizetasks()
           
 void setworkdone(double workdone)
           
 int TaskPosition(int index)
           
 int TaskPosition2(int index)
           
 
Methods inherited from class eduni.simjava.Sim_entity
add_generator, add_param, add_port, clone, get_id, get_name, get_port, get_port, get_stat, run, send_on, set_invisible, set_stat, sim_cancel, sim_completed, sim_current, sim_get_next, sim_get_next, sim_hold_for, sim_hold, sim_pause_for, sim_pause_for, sim_pause_until, sim_pause_until, sim_pause, sim_process_for, sim_process_for, sim_process_until, sim_process_until, sim_process, sim_putback, sim_schedule, sim_schedule, sim_schedule, sim_schedule, sim_schedule, sim_schedule, sim_select, sim_trace, sim_wait_for, sim_wait_for, sim_wait_for, sim_wait, sim_waiting, sim_waiting
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ResourceInfoRequest

public static final int ResourceInfoRequest
See Also:
Constant Field Values

ParticipationRequest

public static final int ParticipationRequest
See Also:
Constant Field Values

SendBids

public static final int SendBids
See Also:
Constant Field Values

SendWorkRequest

public static final int SendWorkRequest
See Also:
Constant Field Values
Constructor Detail

User

public User(java.lang.String name,
            double delay,
            double work,
            double time,
            double budget,
            int NoOfSubtasks,
            double percenthikeINbid)
Creates a new instance of User

Method Detail

Randomizetasks

public void Randomizetasks()

TaskPosition

public int TaskPosition(int index)

TaskPosition2

public int TaskPosition2(int index)

contains

public boolean contains(int k)
this method looks up Vector invalidGroups and returns true if group passed as parameter to this method is in it else false


invalidateTasks

public void invalidateTasks()
finally marks all the tasks to -1 which were temporarily marked -2


LastTask

public int LastTask()

getwork

public double getwork()

getworkdone

public double getworkdone()

setworkdone

public void setworkdone(double workdone)

getnumberoftasks

public int getnumberoftasks()

body

public void body()
this method is used to define behaviour sjhdkjashfkjashdjkahsdjkashdjashdjashdjsahdsaj