SOMA.resourceManagement
Class SetThresholdCommand

java.lang.Object
  extended bySOMA.network.connection.Command
      extended bySOMA.resourceManagement.SetThresholdCommand
All Implemented Interfaces:
java.lang.Runnable, java.io.Serializable

public class SetThresholdCommand
extends Command

Comando che setta i valori di soglia dei consumi delle varie risorse.

Author:
Silvia Vecchi
See Also:
Serialized Form

Field Summary
(package private)  java.lang.String resName
           
(package private)  float val
           
 
Fields inherited from class SOMA.network.connection.Command
env, ReturnConnection
 
Constructor Summary
SetThresholdCommand(java.lang.String resName, float val)
          Costruttore dato il nome della risorsa e il vaore da settare.
 
Method Summary
 void run()
          Setta la soglia della risorsa, il cui nome è passato come argomento, ad un nuovo valore, passato anch'esso come argomento.
 
Methods inherited from class SOMA.network.connection.Command
Return, start, startOnError
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

resName

java.lang.String resName

val

float val
Constructor Detail

SetThresholdCommand

public SetThresholdCommand(java.lang.String resName,
                           float val)
Costruttore dato il nome della risorsa e il vaore da settare.

Method Detail

run

public void run()
Setta la soglia della risorsa, il cui nome è passato come argomento, ad un nuovo valore, passato anch'esso come argomento.

Specified by:
run in interface java.lang.Runnable
Specified by:
run in class Command


Copyright © 2004 Luca Foschini