Click here to Skip to main content
15,904,297 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi
can you only tell how can i implement the below part. i created a class for TM(implementing :IComponent interface ) and another class called Process(implementing :IContainer interface) and created P1 and P2 are instances of Process class. and A B A' B' as instances of TM.

is this correct?

(Two processors P1 and P2 hosting four track managers A, A’, B, B’. (Note: As this is a simulation you may simulate the use of two different processors as two ‘container’ classes).)

appreciate a reply

thanks
Posted
Comments
chandanadhikari 10-Oct-12 11:00am    
hi,
showing some code will help us understand your problem better
anisha_silva 10-Oct-12 11:16am    
TrackManger.cs

class TrackManager:IComponent
{
public TrackManager()
{

}


}


Processor.cs

class Processor:IContainer
{
TrackManager tm;
private List<icomponent> c;

public Processor()
{
tm = new TrackManager();
c = new List<icomponent>();
}

#region IContainer Members

public void Add(IComponent component, string name)
{
throw new NotImplementedException();
}

public void Add(IComponent component)
{
c.Add(component);
//throw new NotImplementedException();
}

public ComponentCollection Components
{
get { throw new NotImplementedException(); }
}

public void Remove(IComponent component)
{
c.Remove(component);
//throw new NotImplementedException();
}

#endregion

#region IDisposable Members

public void Dispose()
{
Dispose();
//throw new NotImplementedException();
}

#endregion
}

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900