Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/06/10 14:19:27 (15 years ago)
Author:
kgrading
Message:

added ToString methods (#829)

Location:
trunk/sources/HeuristicLab.Hive.Contracts/3.2/BusinessObjects
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Hive.Contracts/3.2/BusinessObjects/Client.cs

    r1998 r2607  
    4949    [DataMember]
    5050    public ClientConfig Config { get; set; }
     51
     52    public override string ToString() {
     53      return base.ToString() + ", NrOfCores: " + NrOfCores + ", NrOfFreeCores " + NrOfFreeCores + ", Login: " + Login + ", State: " + State;
     54    }
    5155  }
    5256}
  • trunk/sources/HeuristicLab.Hive.Contracts/3.2/BusinessObjects/HeartBeatData.cs

    r1449 r2607  
    3838    [DataMember]
    3939    public Dictionary<Guid, double> JobProgress { get; set; } // TODO: define Type
     40
     41    public override string ToString() {
     42      String val = "ClientId: " + ClientId + ", FreeCores: " + FreeCores;
     43      foreach (KeyValuePair<Guid, double> kvp in JobProgress) {
     44        val += "\nId" + kvp.Key + " Progress " + kvp.Value;
     45      }
     46      return val;
     47    }
    4048  }
    4149}
  • trunk/sources/HeuristicLab.Hive.Contracts/3.2/BusinessObjects/Job.cs

    r2082 r2607  
    6060    public Project Project { get; set; }
    6161
     62    public override string ToString() {
     63      return base.ToString() + "State: " + State + ", [Ressource : " + Client + " ] , DateCreated: " + DateCreated + ", DateCalculated: " + DateCalculated +
     64        "Priority: " + Priority + ", CoresNeeded: " + CoresNeeded + "AssignedResources: " + AssignedResourceIds;
     65    }
     66
    6267    public Job() {
    6368      PluginsNeeded = new List<HivePluginInfo>();
  • trunk/sources/HeuristicLab.Hive.Contracts/3.2/BusinessObjects/Resource.cs

    r1939 r2607  
    3434    [DataMember]
    3535    public string Name { get; set; }
     36
     37    public override string ToString() {
     38      return Id + " " + Name;
     39    }
    3640  }
    3741}
Note: See TracChangeset for help on using the changeset viewer.